Timer problem
#1

help here i get this stupid error xD
Quote:

C:\Users\james\Desktop\server2\gamemodes\gamemode. pwn(506) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.

code
Код:
public daytime()
{
    SetPlayerTime(playerid,12,0); //noon
}
Reply
#2

your function doesn't contain "playerid"
if you want to set the weather for all player use this:

Код:
public daytime()
{
    for(new i = 0; i<MAX_PLAYERS; i++)
    {
       if(IsPlayerConnected(i))
       {
          SetPlayerTime(i,12,0); //noon
       }
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)