SA-MP Forums Archive
Message! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Message! (/showthread.php?tid=182075)



Message! - ColdXX - 08.10.2010

Код:
if (strcmp("/ranks", cmdtext, true, 10) == 0)
	{
	    new string1[512],string2[512];
	    format(string1, sizeof (string1), "Newbie Killer: %d Kills \r\n Amator Killer: %d Kills \r\n Semi-Advanced Killer: %d Kills \r\n Advanced Killer: %d Kills \r\n Semi-PRO Killer: %d Kills \r\n ",LVL_NEWBIE_KILLER,LVL_AMATOR_KILLER,LVL_SADVANCED_KILLER,LVL_ADVANCED_KILLER,LVL_SPRO_KILLER);
	    format(string2, sizeof (string2), "PRO Killer: %d Kills \r\n Veteran Killer: %d Kills \r\n Rambo: %d Kills \r\n Terminator: %d Kills \r\n Chuck Norris: %d Kills \r\n",LVL_PRO_KILLER,LVL_VETERAN_KILLER,LVL_RAMBO,LVL_TERMINATOR,LVL_NORRIS);
        SendClientMessage(playerid,0xFF0000AA,"                                                              .:Killer Ranks:.");
		SendClientMessage(playerid,0xF4FFFFFF,string1);
		SendClientMessage(playerid,0xF4FFFFFF,string2);
		SendClientMessage(playerid,0xF414FFFF,"                                             .:Your Killer Rank will be saved when you leave:.");
		return 1;
	}
Ok so i have this code but "string1" wont show up when i type the command!

What's the problem?


Re: Message! - Sascha - 08.10.2010

I guess your "string1" is just too long... try splitting it into more than 1 message...


Re: Message! - ColdXX - 08.10.2010

OK fixed it thanks!