Serveur Crash after flood a command
#1

Hi,

I have a problem, when i flood a command, my serveur bug, all the command doesn't work i have 'SERVER: Unknow command' on my local server but on my internet server, my server crash.

My command work
Command :

PHP код:
        else if(strcmp(tmp,"liste",true) == 0) {
            new 
string[500];
            new 
pname[24];
             
GetPlayerName(playeridpname24);
            new 
key1 PlayerInfo[playerid][pPcarkey];
            new 
key2 PlayerInfo[playerid][pPcarkey2];
            new 
key3 PlayerInfo[playerid][pPcarkey3];
            new 
key4 PlayerInfo[playerid][pPcarkey4];
            new 
query[256], rstring[200];
               if(
key1 == 9999 && key2 == 9999 && key3 == 9999 && key4 == 9999)
            {
                
SendClientMessage(playerid,COLOR_GREEN"____________________Your vehicles(0)____________________");
                
SendClientMessage(playerid,COLOR_WHITE"You don't own any vehicles!");
                return 
1;
            }
               if(
key1 != 9999 && key2 == 9999 && key3 == 9999 && key4 == 9999)
            {
                
format(querysizeof query"SELECT * FROM `vehicles` WHERE `id` = '%d'"key1);
                
mysql_function_query(MUMU_MYSQL_HANDLEquerytrue"OnVehicleList1""dd"idx,playerid);
                   return 
1;
            }
            else if(
key1 != 9999 && key2 != 9999 && key3 == 9999 && key4 == 9999)
            {
                   
format(querysizeof query"SELECT * FROM `vehicles` WHERE `id` = '%d'"key1);
                
mysql_function_query(MUMU_MYSQL_HANDLEquerytrue"OnVehicleList1""dd"idx,playerid);
                
format(querysizeof query"SELECT * FROM `vehicles` WHERE `id` = '%d'"key2);
                
mysql_function_query(MUMU_MYSQL_HANDLEquerytrue"OnVehicleList2""dd"idx,playerid);
                   return 
1;
            }
            else if(
key1 != 9999 && key2 != 9999 && key3 != 9999 && key4 == 9999)
            {
                
format(querysizeof query"SELECT * FROM `vehicles` WHERE `id` = '%d'"key1);
                
mysql_function_query(MUMU_MYSQL_HANDLEquerytrue"OnVehicleList1""dd"idx,playerid);
                
format(querysizeof query"SELECT * FROM `vehicles` WHERE `id` = '%d'"key2);
                
mysql_function_query(MUMU_MYSQL_HANDLEquerytrue"OnVehicleList2""dd"idx,playerid);
                
format(querysizeof query"SELECT * FROM `vehicles` WHERE `id` = '%d'"key3);
                
mysql_function_query(MUMU_MYSQL_HANDLEquerytrue"OnVehicleList3""dd"idx,playerid);
                   return 
1;
            }
            else if(
key1 != 9999 && key2 != 9999 && key3 != 9999 && key4 != 9999)
            {
                
format(querysizeof query"SELECT * FROM `vehicles` WHERE `id` = '%d'"key1);
                
mysql_function_query(MUMU_MYSQL_HANDLEquerytrue"OnVehicleList1""dd"idx,playerid);
                
format(querysizeof query"SELECT * FROM `vehicles` WHERE `id` = '%d'"key2);
                
mysql_function_query(MUMU_MYSQL_HANDLEquerytrue"OnVehicleList2""dd"idx,playerid);
                
format(querysizeof query"SELECT * FROM `vehicles` WHERE `id` = '%d'"key3);
                
mysql_function_query(MUMU_MYSQL_HANDLEquerytrue"OnVehicleList3""dd"idx,playerid);
                
format(querysizeof query"SELECT * FROM `vehicles` WHERE `id` = '%d'"key4);
                
mysql_function_query(MUMU_MYSQL_HANDLEquerytrue"OnVehicleList4""dd"idx,playerid);
                   return 
1;
            }
            return 
1;
        } 
Crash detect (when my internet server crash):
http://pastebin.com/eFTYBjXW

My log (when my local server crash) :
http://pastebin.com/7kUfFYFp
Reply
#2

maybe mqsql cant load it as fast as your spamming it because of the ping between the server and the host your getting the info from.
so it has timed out or (silently crashed)
Reply
#3

It's strange cause on other server there is the same system i think
Reply
#4

Post one of your OnVehicleList1 or something. I feel its something related to mysql_free_result();. We have much more ram on home systems than on internet servers so when its running out of memory on the internet one it crashes. Just a plain guess
Reply
#5

All VehicleList are same.

http://pastebin.com/DfHiFUPh
Reply
#6

can you post this function? MuMu_MySQL_GetInt
Reply
#7

This function work, i'm sure
Reply
#8

when i flood this :

http://pastebin.com/fdWkVZiv

the bug come too
Reply
#9

I have upload my float.inc,
new crashdetect :
http://pastebin.com/Wb0JZ9Wq
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)