05.04.2015, 21:47
galera estou tentando fazer um sistema bбsico de email mais nгo estou conseguindo entгo peзo lhe-s suas ajudas
Код:
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;
}
}



