small help please
#3

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;
}
Reply


Messages In This Thread
small help please - by Youice - 24.04.2012, 19:02
Re: small help please - by ViniBorn - 24.04.2012, 19:07
Re: small help please - by Pinguinn - 24.04.2012, 19:08
Re: small help please - by Youice - 24.04.2012, 19:11

Forum Jump:


Users browsing this thread: 1 Guest(s)