C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 017: undefined symbol "strtok" C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 033: array must be indexed (variable "cmd") C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 017: undefined symbol "strtok" C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 033: array must be indexed (variable "tmp") C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 017: undefined symbol "strtok" C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 033: array must be indexed (variable "tmp") C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 017: undefined symbol "strtok" C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 033: array must be indexed (variable "tmp") C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 017: undefined symbol "strtok" C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 033: array must be indexed (variable "tmp") C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 017: undefined symbol "strtok" C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 033: array must be indexed (variable "leveladd") C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 017: undefined symbol "strtok" C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 033: array must be indexed (variable "tmp") C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 017: undefined symbol "strtok" C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 033: array must be indexed (variable "tmp") C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 017: undefined symbol "strtok" C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 033: array must be indexed (variable "tmp") C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 017: undefined symbol "strtok" C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 033: array must be indexed (variable "tmp") C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 017: undefined symbol "strtok" C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 033: array must be indexed (variable "tmpp") C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 017: undefined symbol "strtok" C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 033: array must be indexed (variable "tmp") C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 017: undefined symbol "strtok" C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(413) : error: 033: array must be indexed (variable "tmp")
stock 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; }
C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(3261) : warning: 202: number of arguments does not match definition C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(3261) : warning: 202: number of arguments does not match definition C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(3261) : warning: 204: symbol is assigned a value that is never used: "vid" C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(3261) : warning: 202: number of arguments does not match definition C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(3261) : warning: 202: number of arguments does not match definition C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(3261) : warning: 202: number of arguments does not match definition C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(3261) : warning: 202: number of arguments does not match definition C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(3261) : warning: 202: number of arguments does not match definition C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(3261) : warning: 202: number of arguments does not match definition C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(3261) : warning: 202: number of arguments does not match definition C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(3261) : warning: 202: number of arguments does not match definition C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(3261) : warning: 202: number of arguments does not match definition C:\Documents and Settings\Samuka\Meus documentos\Downloads\Mod\filterscripts\admin.pwn(3261) : warning: 225: unreachable code
Warning nгo й erro, mas й como se fosse uma advertкncia que, por sua vez, podem fazer com que o GM/FS nгo funcione perfeitamente.
|
tmp=strtok(cmdtext, idx, strlen(cmdtext));
new vid = GetPlayerVehicleID(playerid);
if(strcmp(cmd, "/vidat", true) == 0)
Essas sгo as linhas com os Warnings:
Код:
tmp=strtok(cmdtext, idx, strlen(cmdtext)); Код:
new vid = GetPlayerVehicleID(playerid); Код:
if(strcmp(cmd, "/vidat", true) == 0) |
tmp = strtok(cmdtext, idx);