Not sure how to fix this | Undefined Symbol - 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)
+--- Thread: Not sure how to fix this | Undefined Symbol (
/showthread.php?tid=339689)
[Solved] Not sure how to fix this | Undefined Symbol -
X3nZ - 04.05.2012
Ok, so on line 1806, I receive the following error
Код:
C:\Documents and Settings\X3nZ\Desktop\eGRP\gamemodes\mysql_workingversion.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.
pawn Код:
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?
Re: Not sure how to fix this | Undefined Symbol -
Vince - 04.05.2012
Freeze is not a native function. Use TogglePlayerControllable.
Re: Not sure how to fix this | Undefined Symbol - HuSs3n - 04.05.2012
what is
supposed to do?
if its for freezing the player
replace it with
pawn Код:
TogglePlayerControllable(playerid,0);
Re: Not sure how to fix this | Undefined Symbol -
X3nZ - 04.05.2012
Right, I got it fixed.