Loop problem
#5

Quote:
Originally Posted by Skribblez
Посмотреть сообщение
You've got some mistakes on getting the player's name. Try this one.
pawn Код:
CMD:helpers(playerid, params[])
{
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(GetPVarInt(i, "Helper") == 1)
        {
            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;
}
ok thanks, ill try this one as well
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)