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


Author Topic: Help please.  (Read 4204 times)

0 Members and 1 Guest are viewing this topic.

Offline ιι ρяσ Bєνєя

  • LUA Noob
  • Full Member
  • ***
  • Posts: 209
  • Gender: Male
  • I always come and go :c
    • View Profile
Help please.
« on: September 08, 2013, 05:47:04 AM »
When ever i come to compile my script, I get this error, http://gyazo.com/c35642a67d01664a6bf22f9f9005c7a3 but there is no "ยด" in my code D:.

My Test Code :P

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("LOL", 5, 1)
  TextPrintString("I made this IIProBeaver", 5, 1)
  PlayerSetHealth(2000)
  ClothingSetPlayerOutfit("Gold Suit")
  VehicleCreateXYZ(286, 50, 100, 60)
  lul = PedCreateXYZ(211, 50 , 40 , 40)
  PedSetWeapon(lul, 305, 1)
 
end
 
MissionCleanup = function()
end
 
main = function()
  repeat
    Wait(0)
  until l_0_0 ~= false
  Wait(3000)
  MissionSucceed()
end

Offline WhenLifeGivesYouLemons

  • xfire: 1emonthatsme
  • Sr. Member
  • ***
  • Posts: 971
  • Gender: Male
  • 波動バースト
    • View Profile
Re: Help please.
« Reply #1 on: September 08, 2013, 07:27:07 PM »
It compile fine for me  :ajajaxh5:

Offline ιι ρяσ Bєνєя

  • LUA Noob
  • Full Member
  • ***
  • Posts: 209
  • Gender: Male
  • I always come and go :c
    • View Profile
Re: Help please.
« Reply #2 on: September 09, 2013, 11:08:35 AM »
Can you send me the file please. :happy:

Offline ιι ρяσ Bєνєя

  • LUA Noob
  • Full Member
  • ***
  • Posts: 209
  • Gender: Male
  • I always come and go :c
    • View Profile
Re: Help please.
« Reply #3 on: September 09, 2013, 01:23:49 PM »
nvm Its compiling now  :D
« Last Edit: September 09, 2013, 01:36:24 PM by ιι ρяσ Bєνєя »

Offline WhenLifeGivesYouLemons

  • xfire: 1emonthatsme
  • Sr. Member
  • ***
  • Posts: 971
  • Gender: Male
  • 波動バースト
    • View Profile
Re: Help please.
« Reply #4 on: September 09, 2013, 02:50:01 PM »
Nice job dude.  :euro:

Offline ιι ρяσ Bєνєя

  • LUA Noob
  • Full Member
  • ***
  • Posts: 209
  • Gender: Male
  • I always come and go :c
    • View Profile
Re: Help please.
« Reply #5 on: September 09, 2013, 03:26:40 PM »
For others having this problem, I had to copy the code and put it in a different lua file.

Offline MadmaN

  • Bully-Board Admin Team
  • Newbie
  • *
  • Posts: 0
  • Gender: Male
  • Biblio-Techa Mods (retired)
    • View Profile
Re: Help please.
« Reply #6 on: September 14, 2013, 08:35:47 PM »
This problem is caused by editing lua scripts in an editor that adds extra whitespaces to the code which normally are not visible unless editing with a IDE like notepad++ or another programmer's editor. This will happen if you edit lua code in normal notepad or with anything in microsoft office like word for example. Best to avoid editing with any of those tools and stick to a programmer's editor of your choice like notepad++ or another editor that supports editing lua.

I will be releasing asap my custom version of a lua code editor for bully scripting only which will make editing code for bully far easier and help modders keep their code a bit neater as well. Due to being busy atm with outside projects I can't put a exact eta on this but the editor is about 90% done and just needs some tweaking and a little more testing before it is ready.