PDA

View Full Version : Help i doonu from where came out this warning


Gangster-rocks
25/08/2012, 12:54 PM
C:\DOCUME~1\admin\Desktop\SWAT\GAMEMO~1\z.pwn(391) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.

SetPlayerHealth(playerid,GetPlayerHealth(playerid) - 10);

JaKe Elite
25/08/2012, 12:56 PM
Probably you did it wrong it must be like this


new Float:hp;
GetPlayerHealth(playerid, hp);
SetPlayerHealth(playerid, hp - 10);

clarencecuzz
25/08/2012, 12:57 PM
GetPlayerHealth stores values, just like GetPlayerName.
new Float:Health;
GetPlayerHealth(playerid, Health);
SetPlayerHealth(playerid, Health - 10);

wiki.sa-mp.com/wiki/GetPlayerHealth

Gangster-rocks
25/08/2012, 12:57 PM
Thanks Finn XD

JaKe Elite
25/08/2012, 12:59 PM
No Problem..
Lol