SA-MP Forums Archive
Help [ REP ] - 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)
+--- Thread: Help [ REP ] (/showthread.php?tid=634923)



Help [ REP ] - fireranger11 - 28.05.2017



Код:
		 	    PlayerPlaySound(playerid, 1058, 0, 0, 9);
				TD_MSG(playerid, 4500, "~g~~h~~h~Triple Kill!~n~~w~+~g~$~w~5000~w~ and +2 score");
				format(str, sizeof(str), ""RED"[KS] {%06x}%s(%i) "GREY"is on Killing spree with a 3 streak kill!", pColor[playerid], giveplayer, playerid);
				SendClientMessageToAll(-1, str);
       			GivePlayerScore(playerid, 2);
  				GivePlayerCash(playerid, 5000);
No errors compiling it


Re: Help [ REP ] - Sew_Sumi - 28.05.2017

What is giveplayer, is it an integer as you are referring to it as a string in that format.


Also what size is str?


Re: Help [ REP ] - fireranger11 - 29.05.2017

new FloatHealth, str [ 30 ];
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));


Re: Help [ REP ] - StrikerZ - 29.05.2017

Str is too small.
Make it of 120 atleast.
PHP код:
new Float:Healthstr[120];