How to do this the correct way?
#7

pawn Код:
#define STATSDIALOG 500 // With all your other defines...

dcmd(stat, 6, cmdtext); // At the other dcmd shizzle

dcmd_stat(playerid, params[]) // This is the command
{
#pragma unused params
new string[256];
new level = PlayerInfo[playerid][pLevel];
new bank = PlayerInfo[playerid][pBank];
new cash = PlayerInfo[playerid][pCash];

format(string, sizeof(string), "Level: %d\nMoney: %d\nBank: %d",level,cash,bank);
ShowPlayerDialog(playerid, STATSDIALOG, DIALOG_STYLE_MSGBOX,"Status", string, "Okay", "Cancel");
return 1;
}
Tell me if you need further help with it, and no the level and money and bank was just to show you how to, just change it out with your own stuff
Reply


Messages In This Thread
How to do this the correct way? - by Torran - 22.02.2010, 22:46
Re: How to do this the correct way? - by bajskorv123 - 22.02.2010, 22:47
Re: How to do this the correct way? - by Torran - 22.02.2010, 22:48
Re: How to do this the correct way? - by silvan - 22.02.2010, 22:48
Re: How to do this the correct way? - by Torran - 22.02.2010, 22:49
Re: How to do this the correct way? - by bajskorv123 - 22.02.2010, 22:50
Re: How to do this the correct way? - by Johndaone - 22.02.2010, 22:52

Forum Jump:


Users browsing this thread: 1 Guest(s)