Hey guys, I'm kinda new to scripting in LUA and I need some help with a simple script I made and I get an annoying "bad argument" or something. Maybe I've done something wrong or something I don't know the MTA Script Editor is not giving any errors for me, only when I run my server it says http://puu.sh/5AeTH.png if some one would be kind and help me with my problem would be nice
local argument = nil
local x,y,z = 0, 0 ,0
function createFire (thePlayer, command, argument)
if thePlayer == ("admin") then
local x,y,z = getElementPosition (thePlayer)
local argument = nil
createFire ( 0, 0, 0, 1.-- s8) -->
else outputChatBox ("Fuck off please, don't try again.")
end
end
addCommandHandler (createfire, createFire)
1. is supposed to be 1.8 only it displays something else on this forum. It displays normally in my MTA script Editor