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;
tmp = strtok(cmdtext, idx);
emails = strval(tmp);
if (IsPlayerConnected(playerid))
{
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;
}
}
|
Se vocк nгo falar o erro/bug nгo dб pra ajudar, nгo acha?
|
if (IsPlayerConnected(playerid))
|
Remova a verificaзгo de player conectado.
PHP код:
|
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;
}
}

emails = strval(tmp);
JogadorInfo[playerid][pEmail]