Bully-Board

Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: bullymodder74 on September 02, 2015, 06:36:06 PM

Title: Help bully is : script.lua : 25 unepected symbo one near " _"
Post by: bullymodder74 on September 02, 2015, 06:36:06 PM
ImportScript("Library/LibTable.lua")
ImportScript("Library/LibTrigger.lua")
ImportScript("Library/LibSchool.lua")
ImportScript("SGlFunc.lua")
ImportScript("SZone.lua")
local l_0_0 = false

MissionSetup = function()
  AreaTransitionXYZ(0,270,-110,6)
end

function MissionSetup()
  AreaTransitionXYZ(0,270,-110,6)
  LoadAnimationGroup("GS_Male_A")
  PedSetActionTree(gPlayer,"/Global/GS_Male_A","Act/Anim/GS_Male_A.act")
end

function main()
  while PedIsAlive(gPlayer) do
    Wait(0)
  end
end

PlayerSwapModel ("GenericWrestler")

SoundPlayStream("MS_FightingJocks.rsm", 0.69999998807907) -
TextPrintString("Bob Mod Enjoy", 4, 1) -
Title: Re: Help bully is : script.lua : 25 unepected symbo one near " _"
Post by: SWEGTA on September 02, 2015, 07:54:56 PM
(http://i.imgur.com/3BGT8Na.png)
Well there is your problem.

Code: [Select]
ImportScript("Library/LibTable.lua")
ImportScript("Library/LibTrigger.lua")
ImportScript("Library/LibSchool.lua")
ImportScript("SGlFunc.lua")
ImportScript("SZone.lua")
local l_0_0 = false

MissionSetup = function()
  AreaTransitionXYZ(0,270,-110,6)
end

function MissionSetup()
  AreaTransitionXYZ(0,270,-110,6)
  LoadAnimationGroup("GS_Male_A")
  PedSetActionTree(gPlayer,"/Global/GS_Male_A","Act/Anim/GS_Male_A.act")
end

function main()
  while PedIsAlive(gPlayer) do
    Wait(0)
  end
end

PlayerSwapModel ("GenericWrestler")

SoundPlayStream("MS_FightingJocks.rsm", 0.69999998807907)
TextPrintString("Bob Mod Enjoy", 4, 1)

Try that^
Title: Re: Help bully is : script.lua : 25 unepected symbo one near " _"
Post by: DaBOSS54320 on September 02, 2015, 08:47:31 PM
On top of what SWEGTA said, you have 2 functions named MissionSetup, how is the game supposed to know which one to run? You should only have one of each function. Just combine the stuff in both of them into one.
Title: Re: Help bully is : script.lua : 25 unepected symbo one near " _"
Post by: Unknownsoldier on September 04, 2015, 02:38:44 PM
Code: [Select]
ImportScript("Library/LibTable.lua")
ImportScript("Library/LibTrigger.lua")
ImportScript("Library/LibSchool.lua")
ImportScript("SGlFunc.lua")
ImportScript("SZone.lua")
local l_0_0 = false

MissionSetup = function()
  AreaTransitionXYZ(0,270,-110,6)
  PlayerSwapModel ("GenericWrestler")
  LoadAnimationGroup("GS_Male_A")
  PedSetActionTree(gPlayer,"/Global/GS_Male_A","Act/Anim/GS_Male_A.act")
  SoundPlayStream("MS_FightingJocks.rsm", 0.69999998807907)
  TextPrintString("Bob Mod Enjoy", 4, 1)
end

function main()
  while PedIsAlive(gPlayer) do
    Wait(0)
  end
end