24.04.2012, 19:08
When using the ' if ' statement, you should not place a semicolon at the end of the line.
pawn Code:
public HealthChecker(i)
{
new Float:health;
health = GetPlayerHealth(i, health);
for(new a=0;a<MAX_PLAYERS; a++)
{
if(!IsPlayerConnected(i))
{
if(i, health >= 101) {
Ban(i);
}
}
else if(IsPlayerAdmin(i))
{
SendClientMessage(i, COLOR_GREEN, "Health Checker::{FF0000} Im starting to check peoples health , dont worry ;)");
}
}
return 1;
}