Not sure how to fix this | Undefined Symbol
#1

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?
Reply
#2

Freeze is not a native function. Use TogglePlayerControllable.
Reply
#3

what is
Код:
Freeze(playerid,0);
supposed to do?

if its for freezing the player
replace it with

pawn Код:
TogglePlayerControllable(playerid,0);
Reply
#4

Right, I got it fixed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)