I'm trying to check whether the users' money is more than one. If so, change it to 1. But, when the the checking initializes, I get kicked for the reason "Reliable channel overflowed". Why's that?
Any and all help will be appreciated.
PHP Code:
new players[32];
new player;
public event_round_start(id)
{
new params[1];
params[0] = id;
set_task(0.5, "take_money", 0, params, 0, "a", 1);
}
public take_money()
{
new g_Maxplayers = get_maxplayers();
for (new i = 1; i <= g_Maxplayers; i++) {
player = players[i];
if (cs_get_user_money(player) > 1) {
cs_set_user_money(player, 1);
}
}
}