14.10.2010, 07:01
It doesn't work, however.
The time is only set when the filterscript is loaded, and unloaded. You should put the SetTime function in Timer() and add a IsPlayerConnected check in the loop; you're currently setting the time for 500 player IDs regardless if they're connected or not.
Also, SetPlayerEx is to pass arguments to the timer. You don't need to do that (and you're currently telling PAWN you're passing an integer), so just use SetTimer.
The time is only set when the filterscript is loaded, and unloaded. You should put the SetTime function in Timer() and add a IsPlayerConnected check in the loop; you're currently setting the time for 500 player IDs regardless if they're connected or not.
Also, SetPlayerEx is to pass arguments to the timer. You don't need to do that (and you're currently telling PAWN you're passing an integer), so just use SetTimer.