/hnext bugged
#2

Try this :
pawn Код:
CMD:hnext(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pShopTech] == 1)
    {
        SendClientMessageEx(playerid, COLOR_RED, "* Listing next available house...");
        for(new x;x<MAX_HOUSES;x++)
        {
            if(HouseInfo[x][hOwned] == 0)
            {
                new string[128];
                format(string, sizeof(string), "%d is available to use.", x);
                SendClientMessageEx(playerid, COLOR_WHITE, string);
                break;
            }
        }
    }
    else
    {
        SendClientMessageEx(playerid, COLOR_GRAD2, "You are not authorized to use that command!");
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
/hnext bugged - by ConnorFisher - 04.12.2013, 15:45
Re: /hnext bugged - by Dorlevi1506 - 04.12.2013, 19:57
Re: /hnext bugged - by ConnorFisher - 05.12.2013, 12:05
Re: /hnext bugged - by Akira297 - 05.12.2013, 12:08

Forum Jump:


Users browsing this thread: 1 Guest(s)