25.11.2012, 15:45
Why has the variable stts the amount 5000 ? There is a limit, lol.
See this. https://sampwiki.blast.hk/wiki/Limits
See this. https://sampwiki.blast.hk/wiki/Limits
pawn Код:
CMD:stats( playerid, params[] )
{
new stts[300], pName[ MAX_PLAYER_NAME ];
GetPlayerName( playerid, pName, sizeof( pName ));
// strcat( stats, "\t{FFFFFF}[ {FFAE00}%s {FFFFFF}Statistics: ]\n\n", pName );
format( stts, sizeof( stts ), "{FFFFFF}Admin Level: {FFAE00}%s\n{FFFFFF}V.I.P Level: {FFAE00}%s\n{FFFFFF}Score: {FFAE00}%s\n{FFFFFF}Cash: {FFAE00}%s\n{FFFFFF}Coins: {FFAE00}%s\n{FFFFFF}Reputation: {FFAE00}%s\n{FFFFFF}Kills: {FFAE00}%s\n{FFFFFF}Deaths: {FFAE00}%s", P_DATA[ playerid ][ Admin ], P_DATA[ playerid ][ Vip ], P_DATA[ playerid ][ Score ], P_DATA[ playerid ][ Cash ], P_DATA[ playerid ][ Coins ], P_DATA[ playerid ][ Reputation ], P_DATA[ playerid ][ Kills ], P_DATA[ playerid ][ Deaths ]);
SPD(playerid, statistics, MSGBOX, "{FFAE00}P{FFFFFF}layer {FFAE00}S{FFFFFF}tats", stts, "Ok", "");
return ( 1 );
}