06.03.2016, 01:26
500 string? Really? I think 128 is enough
About on Money and Score , you can use GetPlayerMoney and GetPlayerScore.
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/stats", true))
{
new string[128];
format(string, sizeof(string),"Password: %s | Money: %i | Deaths: %i | Kills: %i | Score: %i | Admin: %i", PlayerInfo[playerid][pPass], GetPlayerMoney(playerid), PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][pKills], GetPlayerScore(playerid), PlayerInfo[playerid][pAdmin]);
SendClientMessage(playerid, COL_GREEN, string);
return 1;
}
return 0;
}