[HELP] : error 017: undefined symbol "playerid"
#1

How do i solve this:
Quote:

: error 017: undefined symbol "playerid"

Reply
#2

put:
for(new i=0; i<MAX_PLAYERS; i++)
{

change playerid for "i"
Reply
#3

What callback do you use when using playerid?
Reply
#4

Quote:
Originally Posted by Ricop522
put:
for(new i=0; i<MAX_PLAYERS; i++)
{

change playerid for "i"
I tried this but it made everyone in the whole server get the disease.
Reply
#5

Quote:
Originally Posted by [HiC
TheKiller ]
What callback do you use when using playerid?
public ownfunction()
Reply
#6

Paste the whole function
Reply
#7

Quote:
Originally Posted by Anwix
Paste the whole function
public downhealth()
{
new Float:health;
GetPlayerHealth(playerid,health);
SetPlayerDrunkLevel(playerid, 50000);
SetPlayerHealth(playerid,health -0.001);
}
Reply
#8

Does a timer run this function?
Reply
#9

Use SetTimerEx or if it's not a timer make it
pawn Код:
public downhealth(playerid)
{
new Float:health;
GetPlayerHealth(playerid,health);
SetPlayerDrunkLevel(playerid, 50000);
SetPlayerHealth(playerid,health -0.001);
}
Reply
#10

Quote:
Originally Posted by Anwix
Does a timer run this function?
T3 = SetTimerEx("downhealth", 1000, 1, "i", playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)