14.06.2018, 16:58
tenta assim:
PHP код:
if(strcmp(cmd, "/versaldo", true) == 0)
{
if(PlayerInfo[playerid][Profissao] == Bancario || IsPlayerAdmin(playerid))
return SendClientMessage(playerid, Vermelho, "| ERRO | Vocк nгo tem permissгo.");
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
return SendClientMessage(playerid, Vermelho, "| ERRO | Digite: /VerSaldo [id]");
plid = strval(tmp);
if(!IsPlayerConnected(plid))
return SendClientMessage(playerid, Vermelho, "| ERRO | Jogador(a) nгo conectado(a)!");
if(plid == pAdmin[playerid] > 0)
return SendClientMessage(playerid, Vermelho, "| ERRO | Vocк nгo pode usar esse comando em admins.");
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file2, sizeof(file2), PASTA_CONTAS, pname);
new string222[256];
SendClientMessage(playerid, C_Bancario,"~~~~~~~~~~~~~~~~~~~~~~~~ Saldo ~~~~~~~~~~~~~~~~~~~~~~~~");
format(string222, sizeof(string222), "» Vocк estб vendo o Saldo de: '%s' (%d).", pname,plid);
SendClientMessage(playerid, C_Bancario, string222);
format(string, sizeof(string), "»{FFFFFF} Grana na mгo: {228B22}%d", GetPlayerGrana(plid));
SendClientMessage(playerid, C_Bancario, string);
format(string, sizeof(string), "»{FFFFFF} Saldo bancбrio: {228B22}%d", dini_Int(file2, "SaldoBancario"));
SendClientMessage(playerid, C_Bancario, string);
SendClientMessage(playerid, C_Bancario,"~~~~~~~~~~~~~~~~~~~~~~~~ Saldo ~~~~~~~~~~~~~~~~~~~~~~~~");
return 1;
}
return 1;
}