SA-MP Forums Archive
Ladmin4v2 Tmp error - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Ladmin4v2 Tmp error (/showthread.php?tid=276127)



Ladmin4v2 Tmp error - Admigo - 12.08.2011

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!


Re: Ladmin4v2 Tmp error - Riddick94 - 12.08.2011

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


Re: Ladmin4v2 Tmp error - Admigo - 12.08.2011

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


Re: Ladmin4v2 Tmp error - Darnell - 12.08.2011

Yes, MadeMan's tutorial.


Re: Ladmin4v2 Tmp error - Admigo - 12.08.2011

Thanks dude.