04.10.2012, 08:59
Hello! After I added a line in my /stats dialog, "iBox 31",I formatted it and I strcat it and now I get another compiling message.I read that this compiling message is not a good one and it ruins my GM.
Here is the ShowStats function and the line I added last.If i delete it,I get a normal compiling message.
Compiling message after adding line:
Compiling message before adding line or after I delete it:
I READ ****** TOPIC AND I DON'T HAVE ANY 256 STRING,ONLY 128.
These strings are for format string and SendClientMessage,but I have bigger strings for dialogs,like 1024...4-5 string like this one.
Here is the ShowStats function and the line I added last.If i delete it,I get a normal compiling message.
PHP код:
forward ShowStats(playerid,targetid);
public ShowStats(playerid,targetid)
{
if(IsPlayerConnected(playerid) && IsPlayerConnected(targetid))
{
if ( GetPVarInt( playerid, "Logged" ) == 0 )
return SendClientMessage( playerid, -1, ""COLOR_RED"To view your stats you must be logged in.");
if ( GetPVarInt( targetid, "Logged" ) == 0 )
return SendClientMessage( playerid, -1, ""COLOR_RED"To view his stats,player must be logged in.");
new
iBox[ 2048 ],
iBox1[ 60 ],
iBox2[ 60 ],
iBox3[ 60 ],
iBox4[ 60 ],
iBox5[ 90 ],
iBox6[ 60 ],
iBox7[ 60 ],
iBox8[ 60 ],
iBox9[ 60 ],
iBox10[ 60 ],
iBox11[ 60 ],
iBox12[ 60 ],
iBox13[ 60 ],
iBox14[ 60 ],
iBox15[ 60 ],
iBox16[ 60 ],
iBox17[ 60 ],
iBox18[ 60 ],
iBox19[ 60 ],
iBox20[ 60 ],
iBox21[ 60 ],
iBox22[ 60 ],
iBox23[ 60 ],
iBox24[ 60 ],
iBox25[ 60 ],
iBox26[ 60 ],
iBox27[ 60 ],
iBox28[ 60 ],
iBox29[ 60 ],
iBox30[ 60 ],
iBox31[ 60 ],//LINEADDED
RegDate[ 40 ],
pLastOn[ 20 + 20 ]
;
GetPVarString( targetid, "Date", RegDate, sizeof RegDate );
GetPVarString( targetid, "On", pLastOn, sizeof pLastOn );
format(iBox1,sizeof(iBox1),""REDSV"%s"BLUESV"'s stats:",pName( targetid ));
format(iBox2,sizeof(iBox2),"\n"BLUESV"Age: "REDSV"%d",GetPVarInt(targetid,"Age"));
format(iBox3,sizeof(iBox3),"\n"BLUESV"Sex: "REDSV"%s",GetPlayerSex(targetid));
format(iBox4,sizeof(iBox4),"\n"BLUESV"Region: "REDSV"%s",GetPlayerRegionName(targetid));
format(iBox5,sizeof(iBox5),"\n"ORANGESV"Admin Level{FFFFFF}: "ORANGESV"%s{FFFFFF}["ORANGESV"%d{FFFFFF}]",GetPlayerLevelName( targetid ),GetPVarInt( targetid, "AdminLevel"));
format(iBox6,sizeof(iBox6),"\n"VIPSV"VIP Level: "VIPSV"%d",GetPlayerVLevel( targetid ));
format(iBox7,sizeof(iBox7),"\n"BLUESV"Score: "REDSV"%d",GetPlayerScore( targetid ));
format(iBox8,sizeof(iBox8),"\n"BLUESV"Money: "REDSV"%d",GetPlayerMoney( targetid ));
format(iBox9,sizeof(iBox9),"\n"BLUESV"Coins: "REDSV"%d",GetPVarInt( targetid,"Coins" ));
format(iBox10,sizeof(iBox10),"\n"BLUESV"Muted: "REDSV"%s",GetPVarInt( targetid, "Muted" ) ? (""COLOR_RED"YES") : (""COLOR_GREEN"NO"));
format(iBox11,sizeof(iBox11),"\n"BLUESV"Warns: "REDSV"%d",GetPVarInt( targetid,"Warns"));
format(iBox12,sizeof(iBox12),"\n"BLUESV"Wanted: "REDSV"%d", GetPVarInt( targetid,"Wanted"));
format(iBox13,sizeof(iBox13),"\n"BLUESV"Jailed: "REDSV"%s",GetPVarInt( targetid, "Jailed" ) ? (""COLOR_RED"YES") : (""COLOR_GREEN"NO"));
format(iBox14,sizeof(iBox14),"\n"BLUESV"Jailed Times: "REDSV"%d",GetPVarInt(targetid,"JailedTimes"));
format(iBox15,sizeof(iBox15),"\n"BLUESV"Drugs: "REDSV"%d",GetPVarInt( targetid,"Drugs" ));
format(iBox16,sizeof(iBox16),"\n"BLUESV"Materials: "REDSV"%d",GetPVarInt( targetid,"Mats" ));
format(iBox17,sizeof(iBox17),"\n"BLUESV"Kills: "REDSV"%d",GetPVarInt( targetid,"Kills" ));
format(iBox18,sizeof(iBox18),"\n"BLUESV"Best Spree: "REDSV"%s",GetPlayerSpree( targetid ));
format(iBox19,sizeof(iBox19),"\n"BLUESV"Deaths: "REDSV"%d",GetPVarInt( targetid, "Deaths" ));
format(iBox20,sizeof(iBox20),"\n"BLUESV"Assasinated: "REDSV"%d",GetPVarInt(targetid,"Assasinated"));
format(iBox21,sizeof(iBox21),"\n"BLUESV"Team: %s",GetPlayerTeamName( targetid ));
format(iBox22,sizeof(iBox22),"\n"BLUESV"Club: %s",GetPlayerClubName( targetid ));
format(iBox23,sizeof(iBox23),"\n"BLUESV"SkinID: "REDSV"%d",GetPVarInt( targetid,"Skin"));
format(iBox24,sizeof(iBox24),"\n"BLUESV"Fighting Style: "REDSV"%s",GetFightStyleName( targetid ));
format(iBox25,sizeof(iBox25),"\n"BLUESV"Walking Style: "REDSV"%s",GetWalkStyle( targetid ));
format(iBox26,sizeof(iBox26),"\n"BLUESV"Registration Date: "REDSV"%s",RegDate);
format(iBox27,sizeof(iBox27),"\n"BLUESV"Last ON: "REDSV"%s",pLastOn);
format(iBox31,sizeof(iBox31),"\n"BLUESV"Time ON: "REDSV"%d hours,%d minutes.",GetPVarInt(targetid,"Hours"),GetPVarInt(targetid,"Minutes"));//LINEADDED
format(iBox28,sizeof(iBox28),"\n"BLUESV"PM Disabled: "REDSV"%s",GetPVarInt( targetid, "Disable_PM" ) ? (""COLOR_GREEN"YES") : (""COLOR_RED"NO"));
format(iBox29,sizeof(iBox29),"\n"BLUESV"Car God: "REDSV"%s",GetPVarInt( targetid, "CGod" ) ? (""COLOR_GREEN"YES") : (""COLOR_RED"NO"));
format(iBox30,sizeof(iBox30),"\n"BLUESV"Player God: "REDSV"%s",GetPVarInt( targetid, "God" ) ? (""COLOR_GREEN"YES") : (""COLOR_RED"NO"));
strcat(iBox1,iBox1);
strcat(iBox,iBox2);
strcat(iBox,iBox3);
strcat(iBox,iBox4);
strcat(iBox,"\n"REDSV"---------------------------------------------------------------");
strcat(iBox,iBox5);
strcat(iBox,iBox6);
strcat(iBox,"\n"REDSV"---------------------------------------------------------------");
strcat(iBox,iBox7);
strcat(iBox,iBox8);
strcat(iBox,iBox9);
strcat(iBox,"\n"REDSV"---------------------------------------------------------------");
strcat(iBox,iBox10);
strcat(iBox,iBox11);
strcat(iBox,"\n"REDSV"---------------------------------------------------------------");
strcat(iBox,iBox12);
strcat(iBox,iBox13);
strcat(iBox,iBox14);
strcat(iBox,"\n"REDSV"---------------------------------------------------------------");
strcat(iBox,iBox15);
strcat(iBox,iBox16);
strcat(iBox,"\n"REDSV"---------------------------------------------------------------");
strcat(iBox,iBox17);
strcat(iBox,iBox18);
strcat(iBox,iBox19);
strcat(iBox,iBox20);
strcat(iBox,"\n"REDSV"---------------------------------------------------------------");
strcat(iBox,iBox21);
strcat(iBox,iBox22);
strcat(iBox,iBox23);
strcat(iBox,iBox24);
strcat(iBox,iBox25);
strcat(iBox,"\n"REDSV"---------------------------------------------------------------");
strcat(iBox,iBox26);
strcat(iBox,iBox27);
strcat(iBox,iBox31);//LINEADDED
strcat(iBox,"\n"REDSV"---------------------------------------------------------------");
strcat(iBox,iBox28);
strcat(iBox,iBox29);
strcat(iBox,iBox30);
ShowPlayerDialog( playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, iBox1, iBox, "OK", "");
}
return 1;
}
PHP код:
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 16160 bytes
Code size: 1811908 bytes
Data size: 1332616 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4143 cells (16572 bytes)
Total requirements: 3177068 bytes
PHP код:
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
These strings are for format string and SendClientMessage,but I have bigger strings for dialogs,like 1024...4-5 string like this one.