[ERRO]Giveplayer
#8

Cуdigo correto:
pawn Код:
if(strcmp(cmdtext, "/viraradm", true) == 0)
{
    new Nome[24];
    GetPlayerName(playerid, Nome, 24);
    if(!strcmp(Nome,"Bernardo_x3",true))  return PlayerInfo[playerid][pAdmin] = 1339;
}
Garfield, nгo use GetPlayerName em strcmp, pois ele retorna o tamanho do nick, nunca poderб retornar string's.
Reply


Messages In This Thread
[ERRO]Giveplayer - by Xapita_Halls - 18.12.2010, 20:30
Re: [ERRO]Giveplayer - by [Ips]Guh - 18.12.2010, 20:39
Re: [ERRO]Giveplayer - by zSuYaNw - 18.12.2010, 20:39
AW: [ERRO]Giveplayer - by Xapita_Halls - 18.12.2010, 21:02
Re: [ERRO]Giveplayer - by zSuYaNw - 18.12.2010, 21:09
Re: [ERRO]Giveplayer - by diretor7 - 19.12.2010, 04:10
Re: [ERRO]Giveplayer - by zSuYaNw - 19.12.2010, 04:15
Re: [ERRO]Giveplayer - by SuB_ZeRo0_ - 19.12.2010, 09:25
AW: [ERRO]Giveplayer - by Xapita_Halls - 19.12.2010, 11:56

Forum Jump:


Users browsing this thread: 1 Guest(s)