Code:
new num, players[32]
get_players(players,num,"ac")
for( new i = 0; i < num; i++ )
{
I'm not sure why, but PAWN likes to screw things up in these for loops with lots of commands inside them for each player.
The way to fix this would be to code it like this:
Code:
public jail_timer(id)
{
new num, players[32]
get_players(players,num,"ac")
for( new i = 0; i < num; i++ )
{
jail2(players[i])
}
return PLUGIN_CONTINUE
}
public jail2(id)
{
if (preso[id] == 0) return PLUGIN_HANDLED
else if (preso[id] == 1)
{
if ( timer_seconds[id] < 60) timer_seconds[id] += 1
else if (timer_seconds[id] >= 60)
{
timer_seconds[id] = 0
timer_minutes[id] += 1
}
}
return PLUGIN_CONTINUE
}
__________________