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


Author Topic: Help?LUA messing with my head.  (Read 5640 times)

0 Members and 1 Guest are viewing this topic.

Offline RSta

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Help?LUA messing with my head.
« on: April 30, 2014, 01:20:12 PM »
Can anybody please tell me whats with this annoying dumb message?????(unexpected symbol near 'n')???i mean like I've tested everything,checked every lua letters and it still popping up that dumb message,
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)
  PlayerSetHealth(5000)
  ClothingSetPlayerOutfit("Wrestling")
 
end
 
MissionCleanup = function()
end
 
main = function()
  repeat
    Wait(0)
  until l_0_0 ~= false
  Wait(3000)
  MissionSucceed()
end

It's just a simple code,Is there anything wrong with those?If so please tell me or correct for me(Im using SWEGTA's ultimate pasta to write those codes)

Offline SWEGTA

  • Da Forum Luffs Me!
  • *****
  • Posts: 6,422
  • Gender: Male
  • Swee Gee Tee Ayy
    • View Profile
    • Bully & GTA videos
Re: Help?LUA messing with my head.
« Reply #1 on: April 30, 2014, 02:36:01 PM »
Create a new .lua file using notepad ++, then just copy/paste the codes from Ultimate Pasta into there.
Ultimate Pasta has a habit of messing up .lua-files.

Offline c00ld0c26

  • The D0c
  • Moderator
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: Help?LUA messing with my head.
« Reply #2 on: May 01, 2014, 01:27:00 AM »
If what SWEGTA said doesn't work then ur LUA file has the baddest type of LUA corruption which means that no matter where u copy the code to the file will become corrupt.
What I do to fix this is to make a new file and write the code exactly like the other file without copying.
Just looking at the other file then writing in the new one.
It happends to me sometimes... One time at a giant 2000 lines script.... Had to rewrite.
Good luck.

Offline RSta

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Re: Help?LUA messing with my head.
« Reply #3 on: May 01, 2014, 12:34:19 PM »
If what SWEGTA said doesn't work then ur LUA file has the baddest type of LUA corruption which means that no matter where u copy the code to the file will become corrupt.
What I do to fix this is to make a new file and write the code exactly like the other file without copying.
Just looking at the other file then writing in the new one.
It happends to me sometimes... One time at a giant 2000 lines script.... Had to rewrite.
Good luck.
It worked!Thanks man!You're awesome!  ;D ;D

Offline RSta

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Re: Help?LUA messing with my head.
« Reply #4 on: May 01, 2014, 12:35:35 PM »
Create a new .lua file using notepad ++, then just copy/paste the codes from Ultimate Pasta into there.
Ultimate Pasta has a habit of messing up .lua-files.
Thanks for the info bro :)

Offline SWEGTA

  • Da Forum Luffs Me!
  • *****
  • Posts: 6,422
  • Gender: Male
  • Swee Gee Tee Ayy
    • View Profile
    • Bully & GTA videos
Re: Help?LUA messing with my head.
« Reply #5 on: May 02, 2014, 05:30:36 AM »
Glad this all was sorted out.
Closing the thread.

Edit:
I have no powers here.

Offline mick3mouse2

  • Jr. Member
  • **
  • Posts: 16
    • View Profile
Re: Help?LUA messing with my head.
« Reply #6 on: May 02, 2014, 07:25:13 PM »
Glad this all was sorted out.
Closing the thread.

Edit:
I have no powers here.


Arnt u mod? sweg

Offline SWEGTA

  • Da Forum Luffs Me!
  • *****
  • Posts: 6,422
  • Gender: Male
  • Swee Gee Tee Ayy
    • View Profile
    • Bully & GTA videos
Re: Help?LUA messing with my head.
« Reply #7 on: May 14, 2014, 02:45:32 PM »
Glad this all was sorted out.
Closing the thread.

Edit:
I have no powers here.


Arnt u mod? sweg

Yeah, but apparently no one has given me the authority to rule the subsections here.

Offline BloodChuckZ

  • Bullworth God
  • Original Member
  • Define "Life" For Me Again...
  • *
  • Posts: 39,563
  • Gender: Male
  • Are You Insane ???
    • View Profile
Re: Help?LUA messing with my head.
« Reply #8 on: May 14, 2014, 08:17:27 PM »
Try it now, Sweggy.

Offline SWEGTA

  • Da Forum Luffs Me!
  • *****
  • Posts: 6,422
  • Gender: Male
  • Swee Gee Tee Ayy
    • View Profile
    • Bully & GTA videos
Re: Help?LUA messing with my head.
« Reply #9 on: May 16, 2014, 07:48:27 AM »

Offline BloodChuckZ

  • Bullworth God
  • Original Member
  • Define "Life" For Me Again...
  • *
  • Posts: 39,563
  • Gender: Male
  • Are You Insane ???
    • View Profile
Re: Help?LUA messing with my head.
« Reply #10 on: May 16, 2014, 07:53:45 AM »