SA-MP Forums Archive
cmd kill - 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: cmd kill (/showthread.php?tid=630746)



cmd kill - IceWizz - 18.03.2017

error
Код:
(324) : error 076: syntax error in the expression, or invalid function call
LINE 324
Код:
                if(sscanf(params,  "ui", targetid, SetPlayerHealth)) return SendClientMessage(playerid, 0x33AA33AA, "[BA:RP] Ubijen si od strane admina!");



Re: cmd kill - IceWizz - 18.03.2017

Bump


Re: cmd kill - Mic_H - 18.03.2017

Код HTML:
new hp;
if(sscanf(params,  "ui", targetid, hp)) return SendClientMessage(playerid, 0x33AA33AA, "[BA:RP] Ubijen si od strane admina!");
else
	SetPlayerHealth(targetid, float(hp));
Mistake: sscanf(params, "ui", targetid, SetPlayerHealth)
SetPlayerHealth is a native-function.