To check if a slot is available?
#2

pawn Код:
new lsString[64], liSlot = -1;
for(new i = 0; i < 5; ++i)
{
    if(Avail[i] == 1)
    {
        liSlot = i;
        break;
    }
}

if(liSlot != -1)
{
    format(lsString, 64, "SLOT %d IS BEING USED", liSlot);
    SCM(playerid, COLOR_WHITE, lsString);
}
else
{
    SCM(playerid, COLOR_WHITE, "There's no slot available");
}
Reply


Messages In This Thread
To check if a slot is available? - by Ahrim - 14.09.2013, 18:15
Re: To check if a slot is available? - by IstuntmanI - 14.09.2013, 18:22
Re: To check if a slot is available? - by Ahrim - 14.09.2013, 18:35

Forum Jump:


Users browsing this thread: 1 Guest(s)