Code:
public check_time(){ //If prethink is used here it works, but set_task doesnt.
new players[32], count
get_players( players[32], count, "c") // Skip bots
new i, name[32], id, playtime
for(i = 0; i < count; i++)
{
name[0] = 0
id = players[i]
get_user_name(id, name, 17)
playtime = get_user_time(id)
store_time = playtime + connecttime[id]
if(store_time == 15) {
client_print(0, print_chat,"If you are seeing this, then it is working.")
}
}
}
When you do task like that for all players, You have do something like I did above.
__________________