06.01.2013, 10:28
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 :
Crash detect (when my internet server crash):
http://pastebin.com/eFTYBjXW
My log (when my local server crash) :
http://pastebin.com/7kUfFYFp
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(playerid, pname, 24);
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(query, sizeof query, "SELECT * FROM `vehicles` WHERE `id` = '%d'", key1);
mysql_function_query(MUMU_MYSQL_HANDLE, query, true, "OnVehicleList1", "dd", idx,playerid);
return 1;
}
else if(key1 != 9999 && key2 != 9999 && key3 == 9999 && key4 == 9999)
{
format(query, sizeof query, "SELECT * FROM `vehicles` WHERE `id` = '%d'", key1);
mysql_function_query(MUMU_MYSQL_HANDLE, query, true, "OnVehicleList1", "dd", idx,playerid);
format(query, sizeof query, "SELECT * FROM `vehicles` WHERE `id` = '%d'", key2);
mysql_function_query(MUMU_MYSQL_HANDLE, query, true, "OnVehicleList2", "dd", idx,playerid);
return 1;
}
else if(key1 != 9999 && key2 != 9999 && key3 != 9999 && key4 == 9999)
{
format(query, sizeof query, "SELECT * FROM `vehicles` WHERE `id` = '%d'", key1);
mysql_function_query(MUMU_MYSQL_HANDLE, query, true, "OnVehicleList1", "dd", idx,playerid);
format(query, sizeof query, "SELECT * FROM `vehicles` WHERE `id` = '%d'", key2);
mysql_function_query(MUMU_MYSQL_HANDLE, query, true, "OnVehicleList2", "dd", idx,playerid);
format(query, sizeof query, "SELECT * FROM `vehicles` WHERE `id` = '%d'", key3);
mysql_function_query(MUMU_MYSQL_HANDLE, query, true, "OnVehicleList3", "dd", idx,playerid);
return 1;
}
else if(key1 != 9999 && key2 != 9999 && key3 != 9999 && key4 != 9999)
{
format(query, sizeof query, "SELECT * FROM `vehicles` WHERE `id` = '%d'", key1);
mysql_function_query(MUMU_MYSQL_HANDLE, query, true, "OnVehicleList1", "dd", idx,playerid);
format(query, sizeof query, "SELECT * FROM `vehicles` WHERE `id` = '%d'", key2);
mysql_function_query(MUMU_MYSQL_HANDLE, query, true, "OnVehicleList2", "dd", idx,playerid);
format(query, sizeof query, "SELECT * FROM `vehicles` WHERE `id` = '%d'", key3);
mysql_function_query(MUMU_MYSQL_HANDLE, query, true, "OnVehicleList3", "dd", idx,playerid);
format(query, sizeof query, "SELECT * FROM `vehicles` WHERE `id` = '%d'", key4);
mysql_function_query(MUMU_MYSQL_HANDLE, query, true, "OnVehicleList4", "dd", idx,playerid);
return 1;
}
return 1;
}
http://pastebin.com/eFTYBjXW
My log (when my local server crash) :
http://pastebin.com/7kUfFYFp