Dialog
#4

I tried like this,but i got errors.I've seen on some posts that strcat doesn't support variables.So what should I use for a bigger dialog?

Код:
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 ]
	;
	GetPVarString( playerid, "Date", RegDate, sizeof RegDate );
	GetPVarString( playerid, "On", pLastOn, sizeof pLastOn );
	
	strcat(iBox,""BLUESV"Hello "REDSV"%s"BLUESV", these are your stats:",pName( playerid ));//13427
	strcat(iBox,"\n\n"ORANGESV"Admin Level{FFFFFF}: "ORANGESV"%s{FFFFFF}["ORANGESV"%d{FFFFFF}]",GetPlayerLevelName( playerid ),GetPVarInt( playerid, "AdminLevel"));//13428
	strcat(iBox,"\n"VIPSV"VIP Level: "VIPSV"%d",GetPlayerVLevel( playerid ));
	strcat(iBox,"\n"BLUESV"Money: "REDSV"%d",GetPlayerMoney( playerid ));
	strcat(iBox,"\n"BLUESV"Coins: "REDSV"%d",GetPVarInt( playerid,"Coins" ));
	strcat(iBox,"\n"BLUESV"Score: "REDSV"%d",GetPlayerScore( playerid ));
	strcat(iBox,"\n"BLUESV"Drugs: "REDSV"%d",GetPVarInt( playerid,"Drugs" ));
	strcat(iBox,"\n"BLUESV"Materials: "REDSV"%d",GetPVarInt( playerid,"Mats" ));
	strcat(iBox,"\n"BLUESV"Kills: "REDSV"%d",GetPVarInt( playerid,"Kills" ));
	strcat(iBox,"\n"BLUESV"Deaths: "REDSV"%d",GetPVarInt( playerid,"Deaths" ));
	strcat(iBox,"\n"BLUESV"Team: %s",GetPlayerTeamName( playerid ));//13437
	strcat(iBox,"\n"BLUESV"Club: %s",GetPlayerClubName( playerid ));//13438
	strcat(iBox,"\n"BLUESV"SkinID: "REDSV"%d",GetPlayerSkin( playerid ));
	strcat(iBox,"\n"BLUESV"Registration Date: "REDSV"%s",RegDate);//13440
	strcat(iBox,"\n"BLUESV"Last On: "REDSV"%s",pLastOn);//13441
	strcat(iBox,"\n"BLUESV"PM Disabled: "REDSV"%s",GetPVarInt( playerid, "Disable_PM" ) ? (""COLOR_GREEN"YES") : (""COLOR_RED"NO"));//13442
	strcat(iBox,"\n"BLUESV"Car God: "REDSV"%s",GetPVarInt( playerid, "CGod" ) ? (""COLOR_GREEN"YES") : (""COLOR_RED"NO"));//13443
	strcat(iBox,"\n"BLUESV"Player God: "REDSV"%s",GetPVarInt( playerid, "God" ) ? (""COLOR_GREEN"YES") : (""COLOR_RED"NO"));//13444

	ShowPlayerDialog( playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, ""BLUESV"Your Stats!", iBox, "OK", "");
	return 1;
}
Код:
(13427) : error 035: argument type mismatch (argument 3)
(13428) : error 035: argument type mismatch (argument 3)
(13437) : error 035: argument type mismatch (argument 3)
(13438) : error 035: argument type mismatch (argument 3)
(13440) : error 035: argument type mismatch (argument 3)
(13441) : error 035: argument type mismatch (argument 3)
(13442) : error 035: argument type mismatch (argument 3)
(13443) : error 035: argument type mismatch (argument 3)
(13444) : error 035: argument type mismatch (argument 3)
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)