Bully-Board

Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: FaZe on November 01, 2013, 11:15:14 AM

Title: Can someone Check I've done this right, I have errors again.
Post by: FaZe on November 01, 2013, 11:15:14 AM
Code: [Select]
ImportScript("\\Library\\LibTable.lua")
ImportScript("\\Library\\LibPed.lua")
local l_0_0 = false
 
MissionSetup = function()
  local l_1_0 = 270
  local l_1_1 = -110
  local l_1_2 = 6.4000000953674
 
  AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2)
  TextPrintString("Destinys Random Crazy Stuff", 5, 1)
  PlayerSetHealth(1000)
  PedSetWeapon(gplayer, 396, 1)
  VehicleCreateXYZ(278, 270, 110, 6.4000000953674)
  PedCreateXYZ(217, 270 , 110 , 6.4000000953674)
end
 
MissionCleanup = function()
end
 
main = function()
  repeat
    Wait(0)
  until l_0_0 ~= false
  Wait(3000)
  MissionSucceed()
end

Thanks..
Title: Re: Can someone Check I've done this right, I have errors again.
Post by: c00ld0c26 on November 01, 2013, 11:19:46 AM
What Error exactly?
Title: Re: Can someone Check I've done this right, I have errors again.
Post by: FaZe on November 01, 2013, 11:24:48 AM
Unexpected Symbol near ' '
Title: Re: Can someone Check I've done this right, I have errors again.
Post by: c00ld0c26 on November 01, 2013, 11:26:28 AM
Unexpected Symbol near ' '

What line?
Title: Re: Can someone Check I've done this right, I have errors again.
Post by: FaZe on November 01, 2013, 11:28:56 AM
I don't know, When I try and compile it, it gives me that error. I don't know the exact problem. Can you help.
Title: Re: Can someone Check I've done this right, I have errors again.
Post by: c00ld0c26 on November 01, 2013, 11:31:35 AM
I can help but I need you to give me the line.

Example :

luac: Test.lua:3225: `end' expected (to close `function' at line 2158) near `<eo
f>'

I marked where the line number should be at.
Title: Re: Can someone Check I've done this right, I have errors again.
Post by: FaZe on November 01, 2013, 11:36:54 AM
luac: randomcrazystuff.lua:1: unexpected symbol near ' ' `
Title: Re: Can someone Check I've done this right, I have errors again.
Post by: c00ld0c26 on November 01, 2013, 11:43:09 AM
I dont see any error at line 1 or 2 (Sometimes it says error at line X but its an error at a line above it or under it).
Try copying your whole script into a new file.
Title: Re: Can someone Check I've done this right, I have errors again.
Post by: FaZe on November 01, 2013, 11:46:56 AM
I've tried this, It don't work, Shay, If you want to put credit in there for you and then compile it for me and send it back, that would be great.
You get credit for compiling and you can keep the mod, but I'll be releasing this piece of crap.

Thanks
Title: Re: Can someone Check I've done this right, I have errors again.
Post by: c00ld0c26 on November 01, 2013, 11:56:12 AM
The compile went good, without any problems or errors.
Create a new .lua file and paste it there.
Then compile.
Title: Re: Can someone Check I've done this right, I have errors again.
Post by: WhenLifeGivesYouLemons on November 01, 2013, 12:04:25 PM
when you are writing out your mods make sure you write them out on a progream like Notepad++ and change your coding language to Lua.
Title: Re: Can someone Check I've done this right, I have errors again.
Post by: FaZe on November 01, 2013, 12:05:51 PM
I know, and that's what I was doing. but... IT FUCKING WORKED THIS TIME...YYEEEEEAAAAHHHHH...Thanks Shay, couldn't of done it without you man, you're really something.  Evann....is back in buisness...
Title: Re: Can someone Check I've done this right, I have errors again.
Post by: c00ld0c26 on November 01, 2013, 12:07:50 PM
Great for you.
Im glad to help :P
Title: Re: Can someone Check I've done this right, I have errors again.
Post by: FaZe on November 01, 2013, 12:13:48 PM
Also, How do you find fighting styles for PedSetActionNode, because I wanna learn LUA Again, as I have completly forgotton everything, Can someone remind me.
Title: Re: Can someone Check I've done this right, I have errors again.
Post by: c00ld0c26 on November 01, 2013, 12:46:23 PM
HxD the .cat files.
Title: Re: Can someone Check I've done this right, I have errors again.
Post by: FaZe on November 01, 2013, 01:15:41 PM
What .Cat files, can you get a vid showing me this because I rarely used PedSetActionNode and Tree.

Thanks.
Title: Re: Can someone Check I've done this right, I have errors again.
Post by: GaryHarrington on November 03, 2013, 08:57:00 PM
HxD the .cat files.

in Act.img?Its full of symbols and i had already open it with Notepad ++
Title: Re: Can someone Check I've done this right, I have errors again.
Post by: Walter20210 on November 03, 2013, 08:59:35 PM
Yeah it is full of symbols but there is little words too like "/HeavyAttacks" or things like that.
Title: Re: Can someone Check I've done this right, I have errors again.
Post by: GaryHarrington on November 05, 2013, 05:38:23 AM
you opened it with img tools 2.0?