[AJUDA]Erros Iguais em vбrias linhas
#1

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:

Код:
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")
ai eu pesquisei sobre esse "strtok" e achei esse codigo para por no fim do FS para tirar os erros:

Код:
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;
}
Assim que eu colokei apareceu esses erros aqui:

Код:
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
Queria uma ajuda para solucionar esses erros, procurei aqui e nao consegui achar uma soluзгo!
Agradecerei a todos que me ajudarem!
Reply
#2

Sу Lenbrando, warning nao й erro!
Reply
#3

Quote:
Originally Posted by wallon
Посмотреть сообщение
Sу Lenbrando, warning nao й erro!
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.
Reply
#4

Quote:
Originally Posted by Shadoww5
Посмотреть сообщение
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.
meu freeroam tem uns 26 warring roda d boa ^^
Reply
#5

Quote:
Originally Posted by wallon
Посмотреть сообщение
meu freeroam tem uns 26 warring roda d boa ^^
Seu FreeRoam pode ter falhas que vocк desconheзa, ele pode rodar, mas provavelmente tem algum ponto com falha(talvez nгo visнvel)...
Sempre й bom concertar warningґs(Eles causando muito ou pouco dano ao servidor).
Reply
#6

Ok entгo posso usar assim mesmo?
Reply
#7

Quote:
Originally Posted by Samuka[GM]
Посмотреть сообщение
Ok entгo posso usar assim mesmo?
O GM vai abrir mas nгo й recomendбvel que vocк use ele assim, posta as linhas dos warnings pra gente te falar como concentar.
Reply
#8

Essas sгo as linhas com os Warnings:

Код:
        tmp=strtok(cmdtext, idx, strlen(cmdtext));
Код:
                    new vid = GetPlayerVehicleID(playerid);
Код:
	if(strcmp(cmd, "/vidat", true) == 0)
So colokei essas 3 linhas por que o restante das linha sao iguais a esse primeira ae!
Reply
#9

Quote:
Originally Posted by Samuka[GM]
Посмотреть сообщение
Essas sгo as linhas com os Warnings:

Код:
        tmp=strtok(cmdtext, idx, strlen(cmdtext));
Код:
                    new vid = GetPlayerVehicleID(playerid);
Код:
	if(strcmp(cmd, "/vidat", true) == 0)
So colokei essas 3 linhas por que o restante das linha sao iguais a esse primeira ae!
pawn Код:
tmp = strtok(cmdtext, idx);
Reply
#10

Quote:
Originally Posted by Josma_cmd
Посмотреть сообщение
pawn Код:
tmp = strtok(cmdtext, idx);
Muito obrigado essas linhas foram concertadas, so falta agora as outra 2 de baixo!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)