21.07.2011, 10:01
(
Последний раз редактировалось Unknown123; 21.07.2011 в 10:55.
)
pawn Код:
stock GetFreeHouseSlot()
{
new UsedSlot;
for(new ID = 0; ID < MAX_HOUSES; ID++)
{
new mysql_string[4];
mysql_fetch_field_row(mysql_string, "HouseID");
UsedSlot = strval(mysql_string);
if(ID != UsedSlot)
{
return ID;
}
}
return -1;
}
like if u have these id's in my data base
Код:
1 2 4 5
Код:
0 1 2 4 5
if you dont understand me look at Donyas topic, i think we are looking for the same thing
http://forum.sa-mp.com/showthread.ph...ight=Free+Slot