CMD:stats(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
new admin = PlayerInfo[playerid][pAdminLevel];
new vip = PlayerInfo[playerid][pVIP];
new money = PlayerInfo[playerid][pCash];
new level = PlayerInfo[playerid][pScore];
new vw = PlayerInfo[playerid][pVw];
new interior = PlayerInfo[playerid][pInt];
new string[128],stats[1024];
format(string, sizeof string1, "{44A1D0}Level: {FFFFFF}[%d] {44A1D0}Money: {FFFFFF}[$%d] {44A1D0}AdminLevel: {FFFFFF}[$%d] {44A1D0}VIP: {FFFFFF}[$%d] {44A1D0}VW: {FFFFFF}[$%d] {44A1D0}Int: {FFFFFF}[$%d]", level,money,admin,vip,vw,interior);
format(stats, sizeof stats, "%s", string);
ShowPlayerDialog(playerid,3,DIALOG_STYLE_MSGBOX,"Your account:",stats,"Ok","");
}
return 1;
}
|
Код:
new string[128],stats[1024];
format(string, sizeof string1, "{44A1D0}Level: {FFFFFF}[%d] {44A1D0}Money: {FFFFFF}[$%d] {44A1D0}AdminLevel: {FFFFFF}[$%d] {44A1D0}VIP: {FFFFFF}[$%d] {44A1D0}VW: {FFFFFF}[$%d] {44A1D0}Int: {FFFFFF}[$%d]", level,money,admin,vip,vw,interior);
format(stats, sizeof stats, "%s", string);
ShowPlayerDialog(playerid,3,DIALOG_STYLE_MSGBOX,"Your account:",stats,"Ok","");
|
new stats[256]; // i think this will be enough
format(stats, sizeof(stats), "{44A1D0}Level: {FFFFFF}[%d]\n{44A1D0}Money: {FFFFFF}[$%d]\n{44A1D0}AdminLevel: {FFFFFF}[%d]\n{44A1D0}VIP: {FFFFFF}[%d]\n{44A1D0}VW: {FFFFFF}[%d]\n{44A1D0}Int: {FFFFFF}[%d]", level,money,admin,vip,vw,interior);
ShowPlayerDialog(playerid,3,DIALOG_STYLE_MSGBOX,"Your account:",stats,"Ok","");
CMD:stats(playerid, params[])
{
new stats[256];
format(stats, sizeof(stats), "{44A1D0}Level: {FFFFFF}[%d]\n{44A1D0}Money: {FFFFFF}[$%d]\n{44A1D0}AdminLevel: {FFFFFF}[%d]\n{44A1D0}VIP: {FFFFFF}[%d]\n{44A1D0}VW: {FFFFFF}[%d]\n{44A1D0}Int: {FFFFFF}[%d]",
PlayerInfo[playerid][pScore], PlayerInfo[playerid][pCash], PlayerInfo[playerid][pAdminLevel], PlayerInfo[playerid][pVIP], PlayerInfo[playerid][pVw], PlayerInfo[playerid][pInt]);
ShowPlayerDialog(playerid,3,DIALOG_STYLE_MSGBOX,"Your account:",stats,"Ok","");
return 1;
}