Ecstacy
Mothafuckaaa
Hey,
I'm getting this error:
And here is the script (a part, first line = line 30):
Can someone help?
I'm getting this error:
Code:
[22/01/2011 19:54:52] [Error - LuaScriptInterface::loadFile] data/talkactions/scripts/saveloadoutfit.lua:30: unexpected symbol near '['
[22/01/2011 19:54:52] [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/saveloadoutfit.lua)
[22/01/2011 19:54:52] data/talkactions/scripts/saveloadoutfit.lua:30: unexpected symbol near '['
And here is the script (a part, first line = line 30):
LUA:
local t[2] = tonumber(t[2])
for i = 1,#s do
if not(t[2])then
doPlayerSendTextMessage(cid,'Second param requires numberic value.')
return true
elseif t[2] ~= i then
a = a+1
end
if a ~= 0 then
doPlayerSendTextMessage(cid,'You only have '..a..' slots available.')
return true
end
end
Can someone help?