14.09.2013, 18:15
Hello,
How to check if a slot is available and if there are none available, how to tell? Using Loop, for example:
How to check if a slot is available and if there are none available, how to tell? Using Loop, for example:
pawn Код:
new string[64];
for(new i = 0; i < 5; ++i)
{
if(Avail[i] == 1)
{
format(string, sizeof(string), "SLOT %d IS AVAILABLE", i);
SCM(playerid, COLOR_WHITE, string);
break;
}
else
{
SCM(playerid, COLOR_WHITE, "THERE IS NO MORE SLOT AVAILABLE");
}
}