[AJUDA]strtok -
rene20 - 24.03.2011
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"
Re: [AJUDA]strtok -
Canabis - 24.03.2011
vc coloco duas ou mais strtok
deixe so 1 no gm
Re: [AJUDA]strtok -
rene20 - 24.03.2011
aff mano so tem esse o resto e so TMP
Re: [AJUDA]strtok -
rene20 - 24.03.2011
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
Re: [AJUDA]strtok -
Canabis - 24.03.2011
entгo vc ja tem definida em alguma include...
tira do GM ^^
Re: [AJUDA]strtok -
JonathanFeitosa - 24.03.2011
Nгo seria .pwn ??
esses pessoas que sу sabem roubar GM :C comeзe por um de DM para aprender
Re: [AJUDA]strtok -
Jorge_Hard - 24.03.2011
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
Re: [AJUDA]strtok -
Josma_cmd - 24.03.2011
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...
Re: [AJUDA]strtok -
rene20 - 24.03.2011
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;
}
Re: [AJUDA]strtok -
JonathanFeitosa - 24.03.2011
Apague !
se nгo der :
Caso Nгo deve ta definido
PS : Nгo tenho bola de cristal