Filterscript gives error 017 -
Odin - 29.09.2012
Basically, I made a function to go with my timer, and it keeps giving me (error 017: undefined symbol "playerid")
pawn Код:
forward UnFreezePlayer();
public UnFreezePlayer()
{
TogglePlayerControllable(playerid, true);
SendClientMessage(playerid, COLOR_GREEN, "[INFO:] Pole has been fixed, You may now move to the next one.");
return 1;
}
The line that the timer uses the above function:
pawn Код:
case 1: { DisablePlayerCheckpoint(playerid); SendClientMessage(playerid, COLOR_WHITE, "[INFO:] You set down your toolbox and started to fix the pole."); TogglePlayerControllable(playerid, false); SetTimer("UnFreezePlayer", 4000, false); TechStatus[playerid]++; SetPlayerCheckpoint(playerid, 1467.8677,164.2824,28.0951, 2); } // 2 cp
I would really appreciate the fast help.
Re: Filterscript gives error 017 -
ikbenremco - 29.09.2012
new playerid;
pawn Код:
forward UnFreezePlayer();
public UnFreezePlayer()
{
new playerid;
TogglePlayerControllable(playerid, true);
SendClientMessage(playerid, COLOR_GREEN, "[INFO:] Pole has been fixed, You may now move to the next one.");
return 1;
}
Re: Filterscript gives error 017 -
xMCx - 29.09.2012
pawn Код:
forward UnFreezePlayer(playerid);
public UnFreezePlayer(playerid)
{
TogglePlayerControllable(playerid, true);
SendClientMessage(playerid, COLOR_GREEN, "[INFO:] Pole has been fixed, You may now move to the next one.");
return 1;
}
Re: Filterscript gives error 017 -
Odin - 29.09.2012
Cheers, worked.
thanks for both ways, repped.
Re: Filterscript gives error 017 -
newbienoob - 29.09.2012
Or
pawn Код:
forward UnFreezePlayer(playerid);
public forward UnFreezePlayer(playerid)
{
EDIT:2late
Re: Filterscript gives error 017 -
M3mPHi$_S3 - 29.09.2012
use this
pawn Код:
new playerid [MAX_PLAYER_NAME];
forward UnFreezePlayer();
public UnFreezePlayer()
{
new playerid;
TogglePlayerControllable(playerid, true);
SendClientMessage(playerid, COLOR_GREEN, "[INFO:] Pole has been fixed, You may now move to the next one.");
return 1;
}
Re: Filterscript gives error 017 -
mamorunl - 29.09.2012
Quote:
Originally Posted by xMCx
pawn Код:
forward UnFreezePlayer(playerid); public UnFreezePlayer(playerid) { TogglePlayerControllable(playerid, true); SendClientMessage(playerid, COLOR_GREEN, "[INFO:] Pole has been fixed, You may now move to the next one."); return 1; }
|
@ OP: above code is the only one that will give you the desired results. Creating a playerid variable out of the blue will only work for ID0 and the code above will give you a hell of a lot of errors.
Re: Filterscript gives error 017 -
M3mPHi$_S3 - 29.09.2012
Quote:
Originally Posted by newbienoob
Or
pawn Код:
forward UnFreezePlayer(playerid); public forward UnFreezePlayer(playerid) {
EDIT:2late
|
Well this function works fine for him but the " playerid " was not defined : so for that i'v said what to do :