Mysql problem
#7

Quote:
Originally Posted by JesterlJoker
Посмотреть сообщение
Ahh I see the problem

PHP код:
    for(new 0MAX_ENTRANCES++) 
    { 
        if(!
EntranceInfo[i][eExists]) 
        { 
            
mysql_format(connectionIDqueryBuffersizeof(queryBuffer), "INSERT INTO entrances (name, pos_x, pos_y, pos_z, pos_a, outsideint, outsidevw) VALUES('%e', '%f', '%f', '%f', '%f', %i, %i)"namexyz180.0GetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid)); 
            
mysql_tquery(connectionIDqueryBuffer"OnAdminCreateEntrance""iisffff"playeridinamexyza); 
            break; 
// Use break instead of return 1; It'll stop the loop.
        

    } 
Check this out link!

As I've seen the loop continues up to the MAX_ENTRANCES you have made for your server, it does not get stopped because you were using return and not break.
So just i need to add break on that then it will be sloved?
Reply


Messages In This Thread
[Sloved]Mysql problem - by ScottMcBean - 21.04.2018, 16:50
Re: Mysql problem - by JesterlJoker - 21.04.2018, 16:57
Re: Mysql problem - by ScottMcBean - 21.04.2018, 16:59
Re: Mysql problem - by JesterlJoker - 21.04.2018, 17:08
Re: Mysql problem - by ScottMcBean - 21.04.2018, 17:11
Re: Mysql problem - by JesterlJoker - 21.04.2018, 17:27
Re: Mysql problem - by ScottMcBean - 21.04.2018, 17:30
Re: Mysql problem - by JesterlJoker - 21.04.2018, 17:33
Re: Mysql problem - by ScottMcBean - 21.04.2018, 17:44
Re: Mysql problem - by JesterlJoker - 21.04.2018, 17:49

Forum Jump:


Users browsing this thread: 1 Guest(s)