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


Author Topic: Can someone Check I've done this right, I have errors again.  (Read 4208 times)

0 Members and 1 Guest are viewing this topic.

FaZe

  • Guest
Can someone Check I've done this right, I have errors again.
« 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..

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: Can someone Check I've done this right, I have errors again.
« Reply #1 on: November 01, 2013, 11:19:46 AM »
What Error exactly?

FaZe

  • Guest
Re: Can someone Check I've done this right, I have errors again.
« Reply #2 on: November 01, 2013, 11:24:48 AM »
Unexpected Symbol near ' '

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: Can someone Check I've done this right, I have errors again.
« Reply #3 on: November 01, 2013, 11:26:28 AM »

FaZe

  • Guest
Re: Can someone Check I've done this right, I have errors again.
« Reply #4 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.

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: Can someone Check I've done this right, I have errors again.
« Reply #5 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.

FaZe

  • Guest
Re: Can someone Check I've done this right, I have errors again.
« Reply #6 on: November 01, 2013, 11:36:54 AM »
luac: randomcrazystuff.lua:1: unexpected symbol near ' ' `

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: Can someone Check I've done this right, I have errors again.
« Reply #7 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.

FaZe

  • Guest
Re: Can someone Check I've done this right, I have errors again.
« Reply #8 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

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: Can someone Check I've done this right, I have errors again.
« Reply #9 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.

Offline WhenLifeGivesYouLemons

  • xfire: 1emonthatsme
  • Sr. Member
  • ***
  • Posts: 971
  • Gender: Male
  • 波動バースト
    • View Profile
Re: Can someone Check I've done this right, I have errors again.
« Reply #10 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.

FaZe

  • Guest
Re: Can someone Check I've done this right, I have errors again.
« Reply #11 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...

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: Can someone Check I've done this right, I have errors again.
« Reply #12 on: November 01, 2013, 12:07:50 PM »
Great for you.
Im glad to help :P

FaZe

  • Guest
Re: Can someone Check I've done this right, I have errors again.
« Reply #13 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.

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: Can someone Check I've done this right, I have errors again.
« Reply #14 on: November 01, 2013, 12:46:23 PM »
HxD the .cat files.