25.03.2013, 02:35
I got a problem with stats in a dialog. I never tried making it so far so dont judge me if I failed hard pl0x.
It just shows the last line for the Skin. It doesnt show anything else :/
When I make it with
SendClientMessage works perfectly.
Код:
CMD:stats(playerid,params[])
{
new money = PlayerInfo[playerid][pMoney];
new score = PlayerInfo[playerid][pScores];
new admin = PlayerInfo[playerid][pAdminLevel];
new vip = PlayerInfo[playerid][pVIPlevel];
new helper = PlayerInfo[playerid][pHelper];
new Weed = PlayerInfo[playerid][pWeed];
new Coca = PlayerInfo[playerid][pCoca];
new Heroin = PlayerInfo[playerid][pHeroin];
new Meth = PlayerInfo[playerid][pMeth];
new Dlic = PlayerInfo[playerid][pDriversLic];
new Skin = PlayerInfo[playerid][pModel];
new string[500];
format(string,sizeof(string), "Money:%d || Level: %d", money,score);
format(string,sizeof(string), "Admin: %d ||Helper: %d || VIP: %d", admin, helper, vip);
format(string,sizeof(string), "Weed: %d || Coca: %d || Heroin: %d || Meth: %d", Weed, Coca, Heroin, Meth);
format(string,sizeof(string), "Licenses: Drivers[%d]", Dlic);
format(string,sizeof(string), "Skin: %d", Skin);
ShowPlayerDialog(playerid, D_STATS, DIALOG_STYLE_MSGBOX, "Your stats", string, "Close", "");
return 1;
}
When I make it with
SendClientMessage works perfectly.

