ERROR SCRIPT HELP
#1

I have a error on my script..

i have this script:

pawn Код:
public AnnounceEvent()
{
  if(EventPlayers > 1)
  {
    if (PlayerInfo[playerid][pLing] == 1)
    {
        KillTimer(aeventtimer);
        SendClientMessageToAll(COLOR_YELLOW, "The Event will start in 20 seconds, to join type /joinevent.");
        SetTimer("EventStarted", 20000, 0);
      }
      else
      {
        KillTimer(aeventtimer);
        SendClientMessageToAll(COLOR_YELLOW, "L'evento inzia tra 20 secondi, per partecipare, digita /joinevent.");
        SetTimer("EventStarted", 20000, 0);
      }
  }
  return 1;
}
when i compile, I get this error.


pawn Код:
D:\Users\Administrator\Desktop\samp\GM's\DM's\Jebyz Gang Wars\gamemodes\gangwars.pwn(5157) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
How to fix it?
Reply
#2

Use:

Код:
public AnnounceEvent(playerid)
Reply
#3

ye man thx...it was very easy
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)