News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: Help bully is : script.lua : 25 unepected symbo one near " _"  (Read 2158 times)

0 Members and 3 Guests are viewing this topic.

Offline bullymodder74

  • Jr. Member
  • **
  • Posts: 51
  • Gender: Male
  • Bully Mods
    • View Profile
Help bully is : script.lua : 25 unepected symbo one near " _"
« 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) -

Offline SWEGTA

  • Da Forum Luffs Me!
  • *****
  • Posts: 6,422
  • Gender: Male
  • Swee Gee Tee Ayy
    • View Profile
    • Bully & GTA videos
Re: Help bully is : script.lua : 25 unepected symbo one near " _"
« Reply #1 on: September 02, 2015, 07:54:56 PM »

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^

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: Help bully is : script.lua : 25 unepected symbo one near " _"
« Reply #2 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.

Offline Unknownsoldier

  • Hero Member
  • ****
  • Posts: 2,773
    • View Profile
Re: Help bully is : script.lua : 25 unepected symbo one near " _"
« Reply #3 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