05.04.2015, 22:09
Quote:
Remova a verificaзгo de player conectado.
PHP код:
|
pawn Код:
if(!strcmp(cmd, "/mudaremail", true))
{
if (gPlayerLogged[playerid] != 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_RED, "Uso vбlido: /MudarEmail [Novo e-mail]");
return 1;
}
new emails;
emails = strval(tmp);
format(string,64,"Players/%s.ini",PlayerName(playerid));
JogadorInfo[playerid][pEmail] = emails;
format(string, sizeof(string), "E-mail de recuperaзгo alterado com sucesso para: {FF0000}%s{FFFFFF}", emails);
SendClientMessage(playerid, COLOR_AZULBB, string);
SendClientMessage(playerid, COLOR_LIGHTRED, "Nгo esqueзa do seu novo e-mail!");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Vocк nгo estб logado.");
return 1;
}
}