LuxAdmin Errors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: LuxAdmin Errors (
/showthread.php?tid=441308)
LuxAdmin Errors -
NoahF - 02.06.2013
I got downloaded it fresh but I get these errors

I have all the includes!
Код:
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(1544) : error 017: undefined symbol "strtok"
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(1544) : error 033: array must be indexed (variable "tmp")
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(1545) : error 017: undefined symbol "strtok"
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(1545) : error 033: array must be indexed (variable "tmp2")
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(1542) : warning 203: symbol is never used: "Index"
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(1823) : error 017: undefined symbol "strtok"
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(1823) : error 033: array must be indexed (variable "tmp")
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(1824) : error 017: undefined symbol "strtok"
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(1824) : error 033: array must be indexed (variable "tmp2")
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(1822) : warning 203: symbol is never used: "Index"
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(2019) : error 017: undefined symbol "strtok"
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(2019) : error 033: array must be indexed (variable "tmp")
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(2020) : error 017: undefined symbol "strtok"
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(2020) : error 033: array must be indexed (variable "tmp2")
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(2018) : warning 203: symbol is never used: "Index"
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(2054) : error 017: undefined symbol "strtok"
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(2054) : error 033: array must be indexed (variable "tmp")
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(2055) : error 017: undefined symbol "strtok"
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(2055) : error 033: array must be indexed (variable "tmp2")
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(2053) : warning 203: symbol is never used: "Index"
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(2088) : error 017: undefined symbol "strtok"
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(2088) : error 033: array must be indexed (variable "tmp")
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(2089) : error 017: undefined symbol "strtok"
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(2089) : error 033: array must be indexed (variable "tmp2")
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(2087) : warning 203: symbol is never used: "Index"
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(2120) : error 017: undefined symbol "strtok"
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(2120) : error 033: array must be indexed (variable "tmp")
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(2121) : error 017: undefined symbol "strtok"
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(2121) : error 033: array must be indexed (variable "tmp2")
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(2119) : warning 203: symbol is never used: "Index"
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(2154) : error 017: undefined symbol "strtok"
C:\Users\Noah\Desktop\SA-MP TDM Server\filterscripts\LuxAdmin.pwn(2154) : error 033: array must be indexed (variable "tmp")
Re: LuxAdmin Errors -
Konstantinos - 02.06.2013
Add this to the bottom
pawn Код:
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
The symbol "Index" is never used, just remove it.
For the "array must be indexed", it's like when you do
pawn Код:
new
Money[ MAX_PLAYERS ]
;
and then somewhere
pawn Код:
Money = 0; // ERROR: array must be indexed
Instead of
Re: LuxAdmin Errors -
NoahF - 02.06.2013
OMG THANK YOU THE STRTOK FIXED IT +REP <3