Loop problem
#2

pawn Код:
CMD:helpers(playerid, params[])
{
    for(new i, j = GetMaxPlayers(); i != j; i++)
        if(GetPVarInt(i,"Helper") == 1)
        {
            new playername[MAX_PLAYER_NAME], string[84];
            GetPlayerName(i, playername, sizeof(playername));
            if(GetPVarInt(i,"HStatus") == 0)
                format(string, sizeof(string), "*%s  "COL_GREEN"[AVAILABLE]",RemoveUnderScore(i));
            else
                format(string, sizeof(string), "*%s  "COL_RED"[UNAVAILABLE]",RemoveUnderScore(i));

            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        }

    return 1;
}
Reply


Messages In This Thread
Loop problem - by Jstylezzz - 11.04.2012, 18:17
Re: Loop problem - by ViniBorn - 11.04.2012, 18:27
Re: Loop problem - by Jstylezzz - 11.04.2012, 18:32
Re: Loop problem - by Skribblez - 11.04.2012, 18:33
Re: Loop problem - by Jstylezzz - 11.04.2012, 18:38

Forum Jump:


Users browsing this thread: 1 Guest(s)