PDA

View Full Version : Not sure how to fix this | Undefined Symbol


X3nZ
04/05/2012, 05:42 PM
Ok, so on line 1806, I receive the following error

C:\Documents and Settings\X3nZ\Desktop\eGRP\gamemodes\mysql_working version.pwn(1806) : error 017: undefined symbol "Freeze"

On line 1806, is the following

The following in which contains line 1806, you'll see in //, where line 1806 is.

public Tazed(playerid)
{
if(IsPlayerConnected(playerid))
{
playerinfo[playerid][taze]--;
if(playerinfo[playerid][taze]>-1)
SetTimerEx("Tazed",1000,0,"d",playerid);
else
{
Freeze(playerid,0); // THIS HERE IS LINE 1806
ClearAnimations(playerid);
}
playerinfo[playerid][afk]=0;
}
}

How would I go about fixing this?

Vince
04/05/2012, 05:49 PM
Freeze is not a native function. Use TogglePlayerControllable.

HuSs3n
04/05/2012, 05:49 PM
what is
Freeze(playerid,0);
supposed to do?

if its for freezing the player
replace it with

TogglePlayerControllable(playerid,0);

X3nZ
04/05/2012, 06:02 PM
Right, I got it fixed.