Error on timer - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error on timer (
/showthread.php?tid=87220)
Error on timer -
[SOB]Chris - 19.07.2009
i dont know why send me this error
lvdm.pwn(134) : error 017: undefined symbol "playerid"
On the top of the script
Код:
forward message();
new Text:msgbienve;
public OnPlayerConnect(playerid)
Код:
{
TextDrawShowForPlayer(playerid,msgbienve);
SetTimer("message",8000,false);
Return 1;
}
Public message()
Код:
{
TextDrawHideForPlayer(playerid,Text:msgbienve);
// return 1; is necesari this???
}
public OnGameModeInit()
Код:
{
msgbienve=TextDrawCreate(315,220,"Bienvenido~n~ ~<~ Server ~>~");
TextDrawLetterSize(msgbienve,0.8,2.0);
TextDrawAlignment(Text:msgbienve,2);
TextDrawSetShadow(Text:msgbienve,1);
TextDrawSetOutline(Text:msgbienve,1);
TextDrawFont(Text:msgbienve,3);
TextDrawColor(Text:msgbienve,0x000000ff);
TextDrawBackgroundColor(Text:msgbienve,0xffffffff);
}
WTF?? whats is wrong?
Re: Error on timer -
refshal - 19.07.2009
pawn Код:
forward message(playerid);