#1

PHP код:
                ForLoop(i,5)
                {
                    if(
HouseInfo[HouseID[playerid]][hItem][i] == 0HouseInfo[HouseID[playerid]][hItem][i] = 2;
                    
printf("Item ID: %i | Item type: %i",iHouseInfo[HouseID[playerid]][hItem][i]);
                    break;
                   } 
This just prints 0 and 1, but as you can see it is supposed to print 1 and 2
Because in the MySQL slot 0 is taken, but it doesn't see it as taken.
Can you see any problems in this code?
Reply
#2

I think it should be like this:

pawn Код:
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;
                    }
                }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)