Ladmin4v2 Tmp error
#1

Heey guys,
I use ladmin for my server but when i compile ladmin i get errors:
Код:
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1088) : error 017: undefined symbol "strtok"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1088) : error 033: array must be indexed (variable "tmp3")
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1088) : warning 203: symbol is never used: "Index"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1106) : error 017: undefined symbol "strtok"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1106) : error 033: array must be indexed (variable "tmp2")
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1106) : warning 203: symbol is never used: "Index"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1122) : error 017: undefined symbol "strtok"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1122) : error 033: array must be indexed (variable "tmp2")
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1122) : warning 203: symbol is never used: "Index"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1138) : error 017: undefined symbol "strtok"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1138) : error 033: array must be indexed (variable "tmp2")
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1138) : warning 203: symbol is never used: "Index"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1154) : error 017: undefined symbol "strtok"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1154) : error 033: array must be indexed (variable "tmp2")
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1154) : warning 203: symbol is never used: "Index"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1169) : error 017: undefined symbol "strtok"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1169) : error 033: array must be indexed (variable "tmp2")
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1169) : warning 203: symbol is never used: "Index"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1185) : error 017: undefined symbol "strtok"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1185) : error 033: array must be indexed (variable "tmp2")
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1185) : warning 203: symbol is never used: "Index"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1201) : error 017: undefined symbol "strtok"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1201) : error 033: array must be indexed (variable "tmp2")
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1201) : warning 203: symbol is never used: "Index"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1218) : error 017: undefined symbol "strtok"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1218) : error 033: array must be indexed (variable "tmp2")
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1218) : warning 203: symbol is never used: "Index"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1250) : error 017: undefined symbol "strtok"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1250) : error 033: array must be indexed (variable "tmp2")
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1250) : warning 203: symbol is never used: "Index"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1266) : error 017: undefined symbol "strtok"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1266) : error 033: array must be indexed (variable "tmp2")
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1266) : warning 203: symbol is never used: "Index"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1282) : error 017: undefined symbol "strtok"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1282) : error 033: array must be indexed (variable "tmp2")
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1282) : warning 203: symbol is never used: "Index"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1298) : error 017: undefined symbol "strtok"
C:\Users\Brandon\Desktop\GTA San Andreas\filterscripts\ladmin4v2.pwn(1298) : error 033: array must be indexed (variable "tmp2")
Those errors are in some commands.
And when i add this:
Код:
stock strtok(const string[], &idx)
{
    new length = strlen(string);
    while ((idx < length) && (string[idx] <= ' '))
    {
        idx++;
    }
    new offset = idx;
    new result[128];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
        result[idx - offset] = string[idx];
        idx++;
    }
    result[idx - offset] = EOS;
    return result;
}
I dont get errors but when i use some commands it says USAGE:/setlevel playerid level
pls help!
Reply
#2

Use ZCMD/Y_commands and sscanf for remove this. This way is better, easier, optimalizing your script. Don't use strcmp.
Reply
#3

Okay but thats much work because there are much cmds.
Is there not a solution for this?
Reply
#4

Yes, MadeMan's tutorial.
Reply
#5

Thanks dude.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)