/stats - little weird problem
#2

There you go
Код:
CMD:stats(playerid, params[]) 
{ 
    new bstring[460]; 
    new name[MAX_PLAYER_NAME]; 
    GetPlayerName(playerid, name, sizeof(name)); 
    strcat(bstring, "{009f07}•{ff0000}Team: {009f07}%d\n •{FF0000}V.I.P Level: {009f07}%d\n •{FF0000}Admin Level: {009f07}%d\n "); 
    strcat(bstring, "•{FF0000}Helper Level: {009f07}%d\n •{FF0000}Skin: {009f07}%d\n•{FF0000}Cookies: {009f07}%d\n•{FF0000}Icecreams: {009f07}%d\n"); 
    strcat(bstring, "•{FF0000}Cakes: {009f07}%d\n •{FF0000}Kills: {009f07}%d\n •{FF0000}Deaths: {009f07}%d\n •{FF0000}Score: {009f07}%d\n •{FF0000}Cash: {009f07}%d\n"); 
    format(bstring, sizeof(bstring), bstring, GPT(playerid),PlayerInfo[playerid][pVIP],PlayerInfo[playerid][pAdmin],PlayerInfo[playerid][pHelper],
	GetPlayerSkin(playerid),PlayerInfo[playerid][pCookie], PlayerInfo[playerid][pIcecream], PlayerInfo[playerid][pCake],
	PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][pScore], PlayerInfo[playerid][pCash]); 
    ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_LIST, "{00ff00}Your Stats:", bstring, "Ok", ""); 
    return 1; 
}
You just messed up the order of the variables.
Reply


Messages In This Thread
/stats - little weird problem - by RxErT - 20.05.2017, 13:08
Re: /stats - little weird problem - by Aly - 20.05.2017, 13:11
Re: /stats - little weird problem - by RxErT - 20.05.2017, 13:25

Forum Jump:


Users browsing this thread: 1 Guest(s)