[HELP]/stats Message box

This is my code and I want do show player stats Message box. This is the code:
PHP код:
stock ShowStats(playeriduser)
string[256], gender[8], famed[12], helper[12], vip[12], Float:HFloat:Aogate1[8], ogate2[8], gate3[8], beta[12];
// Gender
if(Player[user][pGender] == 1format(gendersizeof(gender), "Male");
    else if(
Player[user][pGender] == 2format(gendersizeof(gender), "Female");
// Helper
if(Player[user][pHelper]) format(helpersizeof(helper), "{00FF00}Yes");
    else if(!
Player[user][pHelper]) format(helpersizeof(helper), "{00FF00}No");
// Famed
if(Player[user][pFamed]) format(famedsizeof(famed), "{FF9900}Yes");
    else if(!
Player[user][pFamed]) format(famedsizeof(famed), "{FF9900}No");
// VIP
if(Player[user][pVIP]) format(vipsizeof(vip), "{C93CCE}Yes");
    else if(!
Player[user][pVIP]) format(vipsizeof(vip), "{C93CCE}No");
// Beta Tester
if(Player[user][pTester]) format(betasizeof(beta), "{FFFF00}Yes");
    else if(!
Player[user][pTester]) format(betasizeof(beta), "{FFFF00}No");
// Gates
if(Player[user][pGate][0]) format(ogate1sizeof(ogate1), "Yes");
    else if(!
Player[user][pGate][0]) format(ogate1sizeof(ogate1), "None");
Player[user][pGate][1]) format(ogate2sizeof(ogate2), "Yes");
    else if(!
Player[user][pGate][1]) format(ogate2sizeof(ogate2), "None");
Player[user][pGate][2]) format(gate3sizeof(gate3), "Yes");
    else if(!
Player[user][pGate][2]) format(gate3sizeof(gate3), "None");
// Respect points and next level
new exp Player[user][pExp];
nxtlevel Player[user][pLevel]+1;
expamount nxtlevel*4;
costlevel nxtlevel*2000;
// Health and Armor
GetPlayerHealth(userH); GetPlayerArmour(userA); 
Please help me. I have tryed a lot to make a Messagebox like this but every times I've failed :
Sorry for bad English

PLZ help m !

You have to use strcat with a global string and a string while be formated each line. Don't forget to use '\n'

PHP код:
new StatsMenu[120], DialogStats[64]; //Don't forget to increase the value of the string 'StatsMenu[The value]'
format(StatsMenusizeof(StatsMenu), "%sRank VIP(with string)\n"StatsMenustring(here); //e.g: Gold VIP, make it with a string 
format(StatsMenusizeof(StatsMenu), "%s{FFFFFF}Level: %d\n"StatsMenuPlayer[user][pLevel]);
format(StatsMenusizeof(StatsMenu), "%s{FFFFFF}Gender: %s\n"StatsMenugender);
format(StatsMenusizeof(StatsMenu), "%s{FFFFFF}Date of Birth: %d\n"StatsMenuPlayer[user][pDateBirth]); //Continue like this ..
format(DialogStatssizeof(DialogStats), "Showing Statistics of %s"Get the name of the player);
ShowPlayerDialog(playerididDialogDIALOG_STYLE_MSGBOXDialogStatsStatsMenu"Next Page""Close"); 

Forum Jump:

Users browsing this thread: 1 Guest(s)