05.08.2011, 16:05
PHP код:
ForLoop(i,5)
{
if(HouseInfo[HouseID[playerid]][hItem][i] == 0) HouseInfo[HouseID[playerid]][hItem][i] = 2;
printf("Item ID: %i | Item type: %i",i, HouseInfo[HouseID[playerid]][hItem][i]);
break;
}
Because in the MySQL slot 0 is taken, but it doesn't see it as taken.
Can you see any problems in this code?