25.02.2010, 15:25
Quote:
|
Originally Posted by Johnson_boy
You could try this:
pawn Код:
Код:
public OnGameModeInit()
{
ClockMinutes = 0;
ClockHours = 0;
SetTimer("Clock", 1000, true);
SetTimer("SetTime", 1000, true);
return 1;
}
Код:
forward SetTime();
public SetTime()
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
SetPlayerTime(i, ClockHours, ClockMinutes);
}
return 1;
}
forward Clock();
public Clock()
{
ClockMinutes ++;
if(ClockMinutes >= 60)
{
ClockHours ++;
ClockMinutes = 0;
}
return 1;
}
|
This line causes the warnings / errors:
pawn Код:
SetPlayerTime(i, ClockHours, ClockMinutes);

