12.08.2011, 14:53
Heey guys,
I use ladmin for my server but when i compile ladmin i get errors:
Those errors are in some commands.
And when i add this:
I dont get errors but when i use some commands it says USAGE:/setlevel playerid level
pls help!
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")
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; }
pls help!