Can playerid work in a custom function?
#1

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!

Reply
#2

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);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)