Undefined player id - 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: Undefined player id (
/showthread.php?tid=576117)
Undefined player id -
Rissam - 01.06.2015
following line is giving me error
Quote:
error 017: undefined symbol "playerid"
|
PHP код:
SetTimerEx("ClearText", 5000, false, "i", playerid);
I have this code under this
please help
Re: Undefined player id -
fuckingcruse - 01.06.2015
try like this..
public Timer(playerid)
{
...
}
Re: Undefined player id -
Bingo - 01.06.2015
Try under OnPlayerSpawn.
What are you trying to do actually?
Re: Undefined player id -
Rissam - 01.06.2015
I am trying to hide gametextforall
Re: Undefined player id -
Bingo - 01.06.2015
Quote:
Originally Posted by Rissam
I am trying to hide gametextforall
|
In what conditions?
Show that full part.
Re: Undefined player id -
Stanford - 01.06.2015
Undefined messages mean that the parameter is not defined, in order to get rid of these messages you have to define these parameters. In this case as "fuckingcruse" told you earlier try putting Timer(playerid) instead of Timer() and change how you call the function in your command/whatever since it looks like this timer is specified for a certain player!
I hope I helped any feedback is appreciated!
Re: Undefined player id -
Rissam - 02.06.2015
changing
to
worked. Thanks +rep to both of you