Dialog
#1

Hey! Can this dialog be turned into strcat? Or can I make it bigger? Every time when I add another 1-2 lines to /stats command,my complier crashes.If I delete those lines,my complier works perfect.

Код:
CMD:stats( playerid, params[ ] )
{
	if ( GetPVarInt( playerid, "Logged" ) == 0 )
	    return SendClientMessage( playerid, -1, ""COLOR_RED"To view your stats you must be logged in.");

	new
		iBox[ 1024 ],
		RegDate[ 40 ],
		pLastOn[ 20 + 20 ],
		pLevel = GetPVarInt( playerid, "AdminLevel")
	;
	GetPVarString( playerid, "Date", RegDate, sizeof RegDate );
	GetPVarString( playerid, "On", pLastOn, sizeof pLastOn );

	format( iBox, sizeof iBox, ""BLUESV"Hello "REDSV"%s"BLUESV", these are your stats\n\n\
	                            "ORANGESV"Admin Level{FFFFFF}: "ORANGESV"%s{FFFFFF}["ORANGESV"%d{FFFFFF}]\n\
	                           	"VIPSV"VIP Level: "VIPSV"%d\n\
	                            "BLUESV"Money: "REDSV"%d\n\
	                            "BLUESV"Score: "REDSV"%d\n\
	                            "BLUESV"Coins: "REDSV"%d\n\
	                            "BLUESV"Drugs: "REDSV"%d\n\
	                            "BLUESV"Kills: "REDSV"%d\n\
	                            "BLUESV"Deaths: "REDSV"%d\n",
											  pName( playerid ),
											  GetPlayerLevelName( playerid ),
											  pLevel,
											  GetPlayerVLevel( playerid ),
											  GetPlayerMoney( playerid ),
											  GetPlayerScore( playerid ),
											  GetPVarInt( playerid,"Coins" ),
											  GetPVarInt( playerid,"Drugs" ),
											  GetPVarInt( playerid,"Kills" ),
											  GetPVarInt( playerid,"Deaths" ) );

	format( iBox, sizeof iBox, "%s"BLUESV"Team: %s\n\
	                            "BLUESV"Club: %s\n\
								"BLUESV"SkinID: "REDSV"%d\n\
								"BLUESV"Registration Date: "REDSV"%s\n\
								"BLUESV"Last On: "REDSV"%s\n\
								"BLUESV"PM Disabled: "REDSV"%s\n\
								"BLUESV"Car God: "REDSV"%s\n\
								"BLUESV"Player God: "REDSV"%s",
											  iBox,
											  GetPlayerTeamName( playerid ),
											  GetPlayerClubName( playerid ),
											  GetPlayerSkin( playerid ),
											  RegDate,
											  pLastOn,
											  GetPVarInt( playerid, "Disable_PM" ) ? (""COLOR_GREEN"YES") : (""COLOR_RED"NO"),
											  GetPVarInt( playerid, "CGod" ) ? (""COLOR_GREEN"YES") : (""COLOR_RED"NO"),
											  GetPVarInt( playerid, "God" ) ? (""COLOR_GREEN"YES") : (""COLOR_RED"NO"));

	ShowPlayerDialog( playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, ""BLUESV"Your Stats!", iBox, "OK", "");
	return 1;
}
I want to make this dialog BIGGER!
Reply


Messages In This Thread
Dialog - by SumX - 22.08.2012, 10:22
Re: Dialog - by Ranama - 22.08.2012, 10:26
Re: Dialog - by SumX - 22.08.2012, 10:30
Re: Dialog - by SumX - 22.08.2012, 10:48
Re: Dialog - by Ranama - 22.08.2012, 10:50

Forum Jump:


Users browsing this thread: 1 Guest(s)