Help [ REP ]
#1



Код:
		 	    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
Reply
#2

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


Also what size is str?
Reply
#3

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)