10.12.2009, 15:41
Maybe something like this?:
I haven't made this really accurate, because I don't know the correct functions of your variables, you may make it a little bit more advanced.
P.S. Don't use strings 256 cells big if you don't need them!
pawn Код:
if(strcmp("/stats", cmd, true) == 0)
{
new
str[128],
ttext[20];
if(PlayerInfo[playerid][faction] == 0)
format(str, sizeof(str), "Reputation[%d] Faction: None ", PlayerInfo[playerid][reputation]);
else
format(str, sizeof(str), "Reputation[%d] Faction: %d", PlayerInfo[playerid][reputation], PlayerInfo[playerid][faction]);
SendClientMessage(playerid, COLOR_YELLOW, str);
return 1;
}
P.S. Don't use strings 256 cells big if you don't need them!