LuxAdmin Errors
#1

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")
Reply
#2

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
pawn Код:
Money[playerid] = 0;
Reply
#3

OMG THANK YOU THE STRTOK FIXED IT +REP <3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)