04.08.2012, 19:35
Bom galera, to mudando um negуcio no /mudarnick e deu uns erros:
Linhas
Outra coisa, queria pedir se desse pra mudar o nick sу vips sem precisar pedir permissгo pra ADM
Cуd
OBG
Joey
pawn Код:
C:\Users\Bernardo\Desktop\Brasil Play Script\gamemodes\BPS.pwn(22545) : error 029: invalid expression, assumed zero
C:\Users\Bernardo\Desktop\Brasil Play Script\gamemodes\BPS.pwn(22545) : warning 215: expression has no effect
C:\Users\Bernardo\Desktop\Brasil Play Script\gamemodes\BPS.pwn(22545) : error 001: expected token: ";", but found ")"
C:\Users\Bernardo\Desktop\Brasil Play Script\gamemodes\BPS.pwn(22545) : error 029: invalid expression, assumed zero
C:\Users\Bernardo\Desktop\Brasil Play Script\gamemodes\BPS.pwn(22545) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
pawn Код:
}
if(strcmp(playername,InfoOrg[i][Membro2],true)==0)
{
Outra coisa, queria pedir se desse pra mudar o nick sу vips sem precisar pedir permissгo pra ADM
Cуd
pawn Код:
if(strcmp(cmd,"/mudarnick",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(MudarNickAceito[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк precisa pedir permissгo para um admin mudar seu nick, use /relatorio");
return 1;
}
new x_Nick[128];
x_Nick = strtok(cmdtext, idx);
if(!strlen(x_Nick))
{
SendClientMessage(playerid, COLOR_WHITE, "USE: /mudarnick [nome]");
return 1;
}
format(string, sizeof(string), "Players/%s.ini", x_Nick);
if(fexist(string))
{
SendClientMessage(playerid, COLOR_GREY,"Este nick ja estб sendo usado!");
return 1;
}
if(mudandonick[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY,"Espere terminar de mudar seu nick!");
return 1;
}
Joey