Error on timer
#1

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

pawn Код:
forward message(playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)