SA-MP Forums Archive
ERROR SCRIPT HELP - 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 SCRIPT HELP (/showthread.php?tid=147089)



ERROR SCRIPT HELP - Pawno_Scripter - 10.05.2010

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?


Re: ERROR SCRIPT HELP - MrIlusion - 10.05.2010

Use:

Код:
public AnnounceEvent(playerid)



Re: ERROR SCRIPT HELP - Pawno_Scripter - 10.05.2010

ye man thx...it was very easy