08.07.2011, 16:12
Olб hoje achei um FS de Admin e resolvi tirar alguns comandos dele para poder usar em meu servidor. mas quando tentei retirar os comandos o Fs apresentou alguns erros.
O FS completo estб aki neste link -> http://pastebin.com/vkJcvkKJ
ele veio com esse erros aki:
ai eu pesquisei sobre esse "strtok" e achei esse codigo para por no fim do FS para tirar os erros:
Assim que eu colokei apareceu esses erros aqui:
Queria uma ajuda para solucionar esses erros, procurei aqui e nao consegui achar uma soluзгo!
Agradecerei a todos que me ajudarem!
O FS completo estб aki neste link -> http://pastebin.com/vkJcvkKJ
ele veio com esse erros aki:
Код:
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
Agradecerei a todos que me ajudarem!