Can playerid work in a custom function? - 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: Can playerid work in a custom function? (
/showthread.php?tid=78541)
Can playerid work in a custom function? -
HydraX - 21.05.2009
hey i need some help
i have an error
pawn Код:
C:\Users\Compaq_Administrator\Desktop\New Folder2\gamemodes\391_Hydra.pwn(1685) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
when i have this
pawn Код:
public Health() {
SendClientMessageToAll(COLOR_RED, "Your Godmode has a time limit! It is not ment for cheats!");
SetPlayerHealth(playerid, 100);
}
thanks!
Re: Can playerid work in a custom function? -
ruarai - 21.05.2009
You forgot to put playerid id the ()
Код:
public Health(playerid)
{
SendClientMessageToAll(COLOR_RED, "Your Godmode has a time limit! It is not ment for cheats!");
SetPlayerHealth(playerid, 100);
}