MySQL AI Problem
#1

I have a house system in MySQL, and when I create a house it loops thorught out all houses and checks the next loop

PHP код:
stock House_Next() {
       new 
number= -1;
    for(new 
1sizeof(HouseInfo); i++) {
        if(
HouseInfo[i][h_Created] == false) {
            
numberi;
            break;
        }
    }
    return 
broj;

But If i delete a house using the standard query "DELETE * FROM `houses` WHERE `sqlid` blbal" the next house will be ID: 5 ingame but ID 6 in sql can i fix that somehow or?
Reply


Messages In This Thread
MySQL AI Problem - by IdonTmiss - 20.08.2018, 19:08
Re: MySQL AI Problem - by KinderClans - 20.08.2018, 19:09
Re: MySQL AI Problem - by IdonTmiss - 20.08.2018, 19:11
Re: MySQL AI Problem - by CodeStyle175 - 20.08.2018, 19:34
Re: MySQL AI Problem - by KinderClans - 20.08.2018, 20:03
Re: MySQL AI Problem - by Banditul18 - 20.08.2018, 21:50

Forum Jump:


Users browsing this thread: 1 Guest(s)