[AJUDA]strtok
#1

Mano ta dando eror nessa linha e em varias e tipo num fiz nada


Linha 14253: strtok(const string[], &index)
: error 021: symbol already defined: "strtok"
Reply
#2

vc coloco duas ou mais strtok
deixe so 1 no gm
Reply
#3

aff mano so tem esse o resto e so TMP
Reply
#4

mano tipo meu gm e o BGl ele foi liberado aki no forum , ai eu so dei compile veio varios erros , mas eu to com as includes C:\Documents and Settings\rene\Desktop\Brasil Life Simulator 1.0B\pawno\include\YSI/Visual/YSI_objects.own(3193) : warning 219: local variable "set" shadows a variable at a preceding level
C:\Documents and Settings\rene\Desktop\Brasil Life Simulator 1.0B\gamemodes\BLS.pwn(14253) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\rene\Desktop\Brasil Life Simulator 1.0B\gamemodes\BLS.pwn(1426 : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\rene\Desktop\Brasil Life Simulator 1.0B\gamemodes\BLS.pwn(19097) : warning 202: number of arguments does not match definition
C:\Documents and Settings\rene\Desktop\Brasil Life Simulator 1.0B\gamemodes\BLS.pwn(19192) : warning 202: number of arguments does not match definition
C:\Documents and Settings\rene\Desktop\Brasil Life Simulator 1.0B\gamemodes\BLS.pwn(36177) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\rene\Desktop\Brasil Life Simulator 1.0B\gamemodes\BLS.pwn(36214) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\rene\Desktop\Brasil Life Simulator 1.0B\gamemodes\BLS.pwn(52500) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
mals pelo double
Reply
#5

entгo vc ja tem definida em alguma include...
tira do GM ^^
Reply
#6

pawn Код:
YSI_objects.own
Nгo seria .pwn ??

esses pessoas que sу sabem roubar GM :C comeзe por um de DM para aprender
Reply
#7

Voce ja tem uma strtok Definida em alguma include.

Apaga as linhas do gm e tenta compilar pra ver se o erro do strtok sai.

Att
Reply
#8

Eu agradeceria muito se vocк colocasse os cуdigos dentro das tags [*pawn] cуdigo [*/pawn]
Fica tenso de entender o que vocк digitou, ainda em negrito...
Reply
#9

Tem uns erro aki q num tendi os bagulho ta la pra valida o argumento mas nao vai :


NickDesban = strtok(cmdtext,idx);
Ta dando erro nesse


o cmd

pawn Код:
if(strcmp(cmd,"/desban",true)==0)
    {
        if(PlayerInfo[playerid][pAdmin] >= 4)
        {
            new NickDesban[MAX_PLAYER_NAME];
            new arquivo[256];
            if(admtrabalhando[playerid] < 1)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
                return 1;
            }
            tmp = strtok(cmdtext,idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid,COLOR_GRAD1,"/desban [IP do jogador] [Nome do Jogador]");
                return 1;
            }
            NickDesban = strtok(cmdtext,idx);
            if(!strlen(NickDesban))
            {
                SendClientMessage(playerid,COLOR_GRAD1,"/desban [IP do jogador] [Nome do Jogador]");
                return 1;
            }
            format(arquivo, sizeof(arquivo), "/Banidos/%s.ini",NickDesban);
            if(dini_Exists(arquivo))
            {
                dini_Set(arquivo,"Banido","0");
            }
            format(string,sizeof(string),"unbanip %s",tmp);
            SendRconCommand(string);
            SendRconCommand("reloadbans");
            GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, 256, "AdmWarning: %s Desbaniu o %s IP %s ", sendername,NickDesban,tmp);
            new year, month,day;
            getdate(year, month, day);
            new hour, minute;
            gettime(hour,minute);
            format(string, sizeof(string), "AVISO: %s Foi desbanido pelo admin %s ( IP: %s ) DATA ( %d/%d/%d - %d:%d )", NickDesban, sendername, tmp,year, month, day,hour, minute);
            ABroadCast(COLOR_YELLOW,string,1);
        }
        return 1;
    }
Reply
#10

Apague !

se nгo der :

pawn Код:
strtok(cmdtext,idx);
Caso Nгo deve ta definido
pawn Код:
new NickDesban[100];
PS : Nгo tenho bola de cristal
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)