20.10.2011, 15:37
I have problem with the score. I want every minute = 1 score.
I have this on OnGameModeInit
And this
I have test it on localhost:7777 and works fine, 1 minute = 1 score.
Then I upload it on the server but it doesn't work. The score doesn't update every minute.
What I have wrong with this?
I have this on OnGameModeInit
pawn Код:
SetTimer("Online",60000,1);
pawn Код:
forward Online();
public Online()
{
for(new i = 0;i != MAX_PLAYERS;++i)
{
SetPlayerScore(i, GetPlayerScore(i)+1);
}
return 1;
}
Then I upload it on the server but it doesn't work. The score doesn't update every minute.
What I have wrong with this?