Beiträge von Blackshadowscript
-
-
SQL
Alles anzeigen[20:44:30] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE user SET level='0',money='6880',alevel='7',fraktion='2,ra", callback: "(null)", format: "(null)" [20:44:30] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE user SET level='0',money='6880',alevel='7',fraktion='2,ra", callback: "(null)", format: "(null)" [20:44:30] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM autos WHERE besitzer='0'", callback: "OnPlayerCarsLoad", format: "i" [20:44:30] [DEBUG] CMySQLQuery::Execute[] - starting query execution [20:44:30] [ERROR] CMySQLQuery::Execute[] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '6' WHERE id='4000'' at line 1 [20:44:30] [DEBUG] CMySQLQuery::Execute[] - error will be triggered in OnQueryError [20:44:30] [DEBUG] CMySQLQuery::Execute[] - starting query execution [20:44:30] [ERROR] CMySQLQuery::Execute[] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '6',spawnchange='1' WHERE id='1'' at line 1 [20:44:30] [DEBUG] CMySQLQuery::Execute[] - error will be triggered in OnQueryError [20:44:30] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad] - starting query execution [20:44:30] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad] - query was successfully executed within 0.310 milliseconds [20:44:30] [DEBUG] CMySQLResult::CMySQLResult() - constructor called [20:44:30] [DEBUG] Calling callback "OnPlayerCarsLoad".. [20:44:30] [DEBUG] cache_get_data - connection: 1 [20:44:30] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called [20:45:25] [DEBUG] mysql_close - connection: 1 [20:45:25] [DEBUG] CMySQLConnection::Disconnect - connection was closed [20:45:25] [DEBUG] CMySQLConnection::Disconnect - connection was closed [20:45:25] [DEBUG] CMySQLHandle::~CMySQLHandle - deconstructor called [20:45:37] [DEBUG] mysql_connect - host: "localhost", user: "blackshadow", database: "samp", password: "****", port: 3306, autoreconnect: true, pool_size: 2 [20:45:37] [DEBUG] CMySQLHandle::Create - creating new connection.. [20:45:37] [DEBUG] CMySQLHandle::CMySQLHandle - constructor called [20:45:38] [DEBUG] CMySQLHandle::Create - connection created (id: 1) [20:45:38] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [20:45:38] [DEBUG] CMySQLConnection::Connect - connection was successful [20:45:38] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been enabled [20:45:38] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [20:45:38] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [20:45:38] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [20:45:38] [DEBUG] CMySQLConnection::Connect - connection was successful [20:45:38] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been enabled [20:45:38] [DEBUG] CMySQLConnection::Connect - connection was successful [20:45:38] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been enabled [20:45:38] [DEBUG] CMySQLConnection::Connect - connection was successful [20:45:38] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been enabled [20:47:18] [DEBUG] mysql_tquery - connection: 1, query: "SELECT id FROM user WHERE username='Blackshadowscript' ", callback: "OnUserCheck", format: "i" [20:47:18] [DEBUG] CMySQLQuery::Execute[OnUserCheck] - starting query execution [20:47:18] [DEBUG] CMySQLQuery::Execute[OnUserCheck] - query was successfully executed within 0.406 milliseconds [20:47:18] [DEBUG] CMySQLResult::CMySQLResult() - constructor called [20:47:18] [DEBUG] Calling callback "OnUserCheck".. [20:47:18] [DEBUG] cache_get_data - connection: 1 [20:47:18] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called [20:47:24] [DEBUG] mysql_escape_string - source: "klom19pom", connection: 1, max_len: 35 [20:47:24] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM user WHERE username='Blackshadowscript' AND passwo", callback: "OnPasswordResponse", format: "i" [20:47:24] [DEBUG] CMySQLQuery::Execute[OnPasswordResponse] - starting query execution [20:47:24] [DEBUG] CMySQLQuery::Execute[OnPasswordResponse] - query was successfully executed within 0.441 milliseconds [20:47:24] [DEBUG] CMySQLResult::CMySQLResult() - constructor called [20:47:24] [DEBUG] Calling callback "OnPasswordResponse".. [20:47:24] [DEBUG] cache_get_data - connection: 1 [20:47:24] [DEBUG] cache_get_field_content_int - row: 0, field_name: "level", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "level", data: "0" [20:47:24] [DEBUG] cache_get_field_content_int - row: 0, field_name: "id", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "id", data: "1" [20:47:24] [DEBUG] cache_get_field_content_int - row: 0, field_name: "money", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "money", data: "6880" [20:47:24] [DEBUG] cache_get_field_content_int - row: 0, field_name: "alevel", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "alevel", data: "7" [20:47:24] [DEBUG] cache_get_field_content_int - row: 0, field_name: "fraktion", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "fraktion", data: "1" [20:47:24] [DEBUG] cache_get_field_content_int - row: 0, field_name: "rang", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "rang", data: "6" [20:47:24] [DEBUG] cache_get_field_content_int - row: 0, field_name: "spawnchange", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "spawnchange", data: "1" [20:47:24] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM autos WHERE besitzer='1'", callback: "OnPlayerCarsLoad", format: "i" [20:47:24] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called [20:47:24] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad] - starting query execution [20:47:24] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad] - query was successfully executed within 0.338 milliseconds [20:47:24] [DEBUG] CMySQLResult::CMySQLResult() - constructor called [20:47:24] [DEBUG] Calling callback "OnPlayerCarsLoad".. [20:47:24] [DEBUG] cache_get_data - connection: 1 [20:47:24] [DEBUG] cache_get_field_content_int - row: 0, field_name: "model", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "model", data: "411" [20:47:24] [DEBUG] cache_get_field_content_int - row: 0, field_name: "besitzer", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "besitzer", data: "1" [20:47:24] [DEBUG] cache_get_field_content_float - row: 0, field_name: "x", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "x", data: "346.643" [20:47:24] [DEBUG] cache_get_field_content_float - row: 0, field_name: "y", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "y", data: "-1520.98" [20:47:24] [DEBUG] cache_get_field_content_float - row: 0, field_name: "z", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "z", data: "32.9203" [20:47:24] [DEBUG] cache_get_field_content_float - row: 0, field_name: "r", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "r", data: "322.397" [20:47:24] [DEBUG] cache_get_field_content_int - row: 0, field_name: "id", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "id", data: "3" [20:47:24] [DEBUG] cache_get_field_content_int - row: 1, field_name: "model", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "model", data: "411" [20:47:24] [DEBUG] cache_get_field_content_int - row: 1, field_name: "besitzer", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "besitzer", data: "1" [20:47:24] [DEBUG] cache_get_field_content_float - row: 1, field_name: "x", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "x", data: "2285.24" [20:47:24] [DEBUG] cache_get_field_content_float - row: 1, field_name: "y", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "y", data: "2404.82" [20:47:24] [DEBUG] cache_get_field_content_float - row: 1, field_name: "z", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "z", data: "10.735" [20:47:24] [DEBUG] cache_get_field_content_float - row: 1, field_name: "r", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "r", data: "183.227" [20:47:24] [DEBUG] cache_get_field_content_int - row: 1, field_name: "id", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "id", data: "4" [20:47:24] [DEBUG] cache_get_field_content_int - row: 2, field_name: "model", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "model", data: "596" [20:47:24] [DEBUG] cache_get_field_content_int - row: 2, field_name: "besitzer", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "besitzer", data: "1" [20:47:24] [DEBUG] cache_get_field_content_float - row: 2, field_name: "x", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "x", data: "315.447" [20:47:24] [DEBUG] cache_get_field_content_float - row: 2, field_name: "y", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "y", data: "1877.46" [20:47:24] [DEBUG] cache_get_field_content_float - row: 2, field_name: "z", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "z", data: "17.6406" [20:47:24] [DEBUG] cache_get_field_content_float - row: 2, field_name: "r", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "r", data: "65.1618" [20:47:24] [DEBUG] cache_get_field_content_int - row: 2, field_name: "id", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '2', field: "id", data: "5" [20:47:24] [DEBUG] cache_get_field_content_int - row: 3, field_name: "model", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '3', field: "model", data: "597" [20:47:24] [DEBUG] cache_get_field_content_int - row: 3, field_name: "besitzer", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '3', field: "besitzer", data: "1" [20:47:24] [DEBUG] cache_get_field_content_float - row: 3, field_name: "x", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '3', field: "x", data: "310.023" [20:47:24] [DEBUG] cache_get_field_content_float - row: 3, field_name: "y", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '3', field: "y", data: "1877.52" [20:47:24] [DEBUG] cache_get_field_content_float - row: 3, field_name: "z", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '3', field: "z", data: "17.6406" [20:47:24] [DEBUG] cache_get_field_content_float - row: 3, field_name: "r", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '3', field: "r", data: "1.96493" [20:47:24] [DEBUG] cache_get_field_content_int - row: 3, field_name: "id", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '3', field: "id", data: "6" [20:47:24] [DEBUG] cache_get_field_content_int - row: 4, field_name: "model", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '4', field: "model", data: "596" [20:47:24] [DEBUG] cache_get_field_content_int - row: 4, field_name: "besitzer", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '4', field: "besitzer", data: "1" [20:47:24] [DEBUG] cache_get_field_content_float - row: 4, field_name: "x", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '4', field: "x", data: "310.003" [20:47:24] [DEBUG] cache_get_field_content_float - row: 4, field_name: "y", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '4', field: "y", data: "1877.66" [20:47:24] [DEBUG] cache_get_field_content_float - row: 4, field_name: "z", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '4', field: "z", data: "18.2892" [20:47:24] [DEBUG] cache_get_field_content_float - row: 4, field_name: "r", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '4', field: "r", data: "158.66" [20:47:24] [DEBUG] cache_get_field_content_int - row: 4, field_name: "id", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '4', field: "id", data: "7" [20:47:24] [DEBUG] cache_get_field_content_int - row: 5, field_name: "model", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '5', field: "model", data: "411" [20:47:24] [DEBUG] cache_get_field_content_int - row: 5, field_name: "besitzer", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '5', field: "besitzer", data: "1" [20:47:24] [DEBUG] cache_get_field_content_float - row: 5, field_name: "x", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '5', field: "x", data: "1113.55" [20:47:24] [DEBUG] cache_get_field_content_float - row: 5, field_name: "y", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '5', field: "y", data: "-1706.97" [20:47:24] [DEBUG] cache_get_field_content_float - row: 5, field_name: "z", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '5', field: "z", data: "13.5469" [20:47:24] [DEBUG] cache_get_field_content_float - row: 5, field_name: "r", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '5', field: "r", data: "257.168" [20:47:24] [DEBUG] cache_get_field_content_int - row: 5, field_name: "id", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '5', field: "id", data: "8" [20:47:24] [DEBUG] cache_get_field_content_int - row: 6, field_name: "model", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '6', field: "model", data: "411" [20:47:24] [DEBUG] cache_get_field_content_int - row: 6, field_name: "besitzer", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '6', field: "besitzer", data: "1" [20:47:24] [DEBUG] cache_get_field_content_float - row: 6, field_name: "x", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '6', field: "x", data: "264.894" [20:47:24] [DEBUG] cache_get_field_content_float - row: 6, field_name: "y", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '6', field: "y", data: "176.445" [20:47:24] [DEBUG] cache_get_field_content_float - row: 6, field_name: "z", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '6', field: "z", data: "1003.02" [20:47:24] [DEBUG] cache_get_field_content_float - row: 6, field_name: "r", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '6', field: "r", data: "94.6413" [20:47:24] [DEBUG] cache_get_field_content_int - row: 6, field_name: "id", connection: 1 [20:47:24] [DEBUG] CMySQLResult::GetRowDataByName - row: '6', field: "id", data: "9" [20:47:24] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called [20:49:28] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE user SET level='0',money='6780',alevel='7',fraktion='1,ra", callback: "(null)", format: "(null)" [20:49:28] [DEBUG] CMySQLQuery::Execute[] - starting query execution [20:49:28] [ERROR] CMySQLQuery::Execute[] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '6',spawnchange='0' WHERE id='1'' at line 1 [20:49:28] [DEBUG] CMySQLQuery::Execute[] - error will be triggered in OnQueryError [20:50:06] [DEBUG] mysql_tquery - connection: 1, query: "INSERT INTO autos(besitzer,model,x,y,z,r) VALUES('1','400','352.", callback: "carSavedToDB", format: "i" [20:50:06] [DEBUG] CMySQLQuery::Execute[carSavedToDB] - starting query execution [20:50:06] [DEBUG] CMySQLQuery::Execute[carSavedToDB] - query was successfully executed within 194.821 milliseconds [20:50:06] [DEBUG] CMySQLResult::CMySQLResult() - constructor called [20:50:06] [DEBUG] Calling callback "carSavedToDB".. [20:50:06] [DEBUG] cache_insert_id - connection: 1 [20:50:06] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called [20:50:27] [DEBUG] mysql_tquery - connection: 1, query: "INSERT INTO autos(besitzer,model,x,y,z,r) VALUES('1','411','356.", callback: "carSavedToDB", format: "i" [20:50:27] [DEBUG] CMySQLQuery::Execute[carSavedToDB] - starting query execution [20:50:27] [DEBUG] CMySQLQuery::Execute[carSavedToDB] - query was successfully executed within 125.925 milliseconds [20:50:27] [DEBUG] CMySQLResult::CMySQLResult() - constructor called [20:50:27] [DEBUG] Calling callback "carSavedToDB".. [20:50:27] [DEBUG] cache_insert_id - connection: 1 [20:50:27] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called [20:50:33] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE user SET level='0',money='7679',alevel='7',fraktion='1,ra", callback: "(null)", format: "(null)" [20:50:33] [DEBUG] CMySQLQuery::Execute[] - starting query execution [20:50:33] [ERROR] CMySQLQuery::Execute[] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '6',spawnchange='1' WHERE id='1'' at line 1 [20:50:33] [DEBUG] CMySQLQuery::Execute[] - error will be triggered in OnQueryError [20:50:55] [DEBUG] mysql_tquery - connection: 1, query: "INSERT INTO autos(besitzer,model,x,y,z,r) VALUES('1','411','214.", callback: "carSavedToDB", format: "i" [20:50:55] [DEBUG] CMySQLQuery::Execute[carSavedToDB] - starting query execution [20:50:55] [DEBUG] CMySQLQuery::Execute[carSavedToDB] - query was successfully executed within 91.861 milliseconds [20:50:55] [DEBUG] CMySQLResult::CMySQLResult() - constructor called [20:50:55] [DEBUG] Calling callback "carSavedToDB".. [20:50:55] [DEBUG] cache_insert_id - connection: 1 [20:50:55] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called [20:51:22] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE user SET level='0',money='7579',alevel='7',fraktion='1,ra", callback: "(null)", format: "(null)" [20:51:22] [DEBUG] CMySQLQuery::Execute[] - starting query execution [20:51:22] [ERROR] CMySQLQuery::Execute[] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '6',spawnchange='1' WHERE id='1'' at line 1 [20:51:22] [DEBUG] CMySQLQuery::Execute[] - error will be triggered in OnQueryError [20:52:05] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE user SET level='0',money='7579',alevel='7',fraktion='1,ra", callback: "(null)", format: "(null)" [20:52:05] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE user SET level='0',money='7579',alevel='7',fraktion='1,ra", callback: "(null)", format: "(null)" [20:52:05] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM autos WHERE besitzer='0'", callback: "OnPlayerCarsLoad", format: "i" [20:52:05] [DEBUG] CMySQLQuery::Execute[] - starting query execution [20:52:05] [ERROR] CMySQLQuery::Execute[] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '6' WHERE id='4000'' at line 1 [20:52:05] [DEBUG] CMySQLQuery::Execute[] - error will be triggered in OnQueryError [20:52:05] [DEBUG] CMySQLQuery::Execute[] - starting query execution [20:52:05] [ERROR] CMySQLQuery::Execute[] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '6',spawnchange='1' WHERE id='1'' at line 1 [20:52:05] [DEBUG] CMySQLQuery::Execute[] - error will be triggered in OnQueryError [20:52:05] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad] - starting query execution [20:52:05] [DEBUG] CMySQLQuery::Execute[OnPlayerCarsLoad] - query was successfully executed within 0.302 milliseconds [20:52:05] [DEBUG] CMySQLResult::CMySQLResult() - constructor called [20:52:05] [DEBUG] Calling callback "OnPlayerCarsLoad".. [20:52:05] [DEBUG] cache_get_data - connection: 1 [20:52:05] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called [20:53:06] [DEBUG] mysql_close - connection: 1 [20:53:06] [DEBUG] CMySQLConnection::Disconnect - connection was closed [20:53:06] [DEBUG] CMySQLConnection::Disconnect - connection was closed [20:53:06] [DEBUG] CMySQLConnection::Disconnect - connection was closed [20:53:06] [DEBUG] CMySQLHandle::~CMySQLHandle - deconstructor called
Ob das weiterhelfen kann kp
-
-
hatte mysql R39 da wo ich auch mysql_static.so sscanf für r39
-
Ich habe Nitrado mein Server liegen und weiss leider nicht welches Linux die haben
-
Gute Tag.
Wollte heute mein Server starten als mir gesagt wurde: libmysqlclient_r.so.16 wäre fehler haft.
die Fehlermeldung lautet:brauche die libmysqlclient_r.so.16 für mein Script. wo der Fehler: [15:37:21] Failed (./libmysqlclient_r.so.16: invalid ELF header)nicht drin ist
-
-
nur das prob ist folgendes:
So heißt ja mein Public:
public Fandungslevel(playerid)
{
if(isPlayerInFrakt(playerid,1))return SendClientMessage(playerid,rot,"Du bist nicht im SAPD!");
{
new wLevel;
if(sscanf(params,"ui",pID,wLevel))return SendClientMessage(playerid,duneklhelblau,"Info: /Fandungslevel[playerid][fandungslevel]");
if(wLevel<1||wLevel>6)return SendClientMessage(playerid,rot,"Falsche Fandungslevel!");
GetPlayerWantedLevel(playerid);
return 1;
}
}Dann sagt er mir in:
if(sscanf(params,"ui",pID,wLevel))return SendClientMessage(playerid,duneklhelblau,"Info: /Fandungslevel[playerid][fandungslevel]");
Fehler: error 017: undefined symbol "params" -
Guten Morgen
Ich habe gestern gemerkt das beim Registrieren die Werte zwar übergeben werden aber nach dem Logout nicht so ganz gespeichert werdern.
Sobald man sich wieder Einloggt sind die werte wie: Geld,Level,Adminlevel,Fraktion,Rang und Spawnchange auf 0Mein Code sieht wie folgt aus:
#define DIALOG_REGISTER
#define DIALOG_LOGIN
forward carSavedToDB(carid);
forward OnPlayerCarsLoad(playerid);enum playerInfo{
eingeloggt,
level,
db_id,
alevel,
fraktion,
rang,
spawnchange
}enum autoEnum{
id_x,
model,
besitzer,
Float:c_x,
Float:c_y,
Float:c_z,
Float:c_r,
db_id
}new sInfo[MAX_PLAYERS][playerInfo];
new aInfo[50][autoEnum];
//mysql:
#define db_host "85.190.160.205"
#define db_user "ni515543_2_DB"
#define db_pass "xxxxxxx"
#define db_db "ni515543_2_DB"
new dbhandle;public OnGameModeExit()
{
mysql_close(dbhandle);
}public OnUserCheck(playerid)
{
new num_rows,num_fields;
cache_get_data(num_rows,num_fields,dbhandle);
if(num_rows==0)
{
//Register
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Account Erstellung","Gebe bitte nun dein gewünschtes Passwort ein!","Registrieren","Abbrechen");
}
else
{
//Login
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Anmelden","Gebe bitte dein Passwort ein.","Anmleden","Abbrechen");
}
return 1;
}public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid)) return 1;
new nachricht[128];
format(nachricht,sizeof(nachricht),"Du bist mit der ID %i verbunden.",playerid);
SendClientMessage(playerid,rot,nachricht);
//Login/Register:
new name[MAX_PLAYER_NAME],query[128];
GetPlayerName(playerid,name,sizeof(name));
format(query,sizeof(query),"SELECT id FROM user WHERE username='%s' ",name);
mysql_function_query(dbhandle,query,true,"OnUserCheck","i",playerid);
SendClientMessage(playerid,grün,"Willkommen auf Reallife Version 0.1.4! Wir wünschen euch ein angenehmen Spiel spaß bei uns!");
//textdraws anzeigen:
TextDrawShowForPlayer(playerid,Text:uhrzeitLabel);
TextDrawShowForAll(Jahr);
SetPlayerColor(playerid,weiß);
sInfo[playerid][level]=1;
SetPlayerScore(playerid,sInfo[playerid][level]);
return 1;
}savePlayer(playerid)
{
if(sInfo[playerid][eingeloggt]==0)return 1;
//Speichern level,money
new query[256];
format(query,sizeof(query),"UPDATE user SET level='%i',money='%i',alevel='%i',fraktion='%i,rang='%i',spawnchange='%i' WHERE id='%i'",sInfo[playerid][level],GetPlayerMoney(playerid),sInfo[playerid][alevel],sInfo[playerid][fraktion],sInfo[playerid][rang],sInfo[playerid][spawnchange],sInfo[playerid][db_id]);
mysql_function_query(dbhandle,query,false,"","");
return 1;
}
resetPlayer(playerid)
{
for(new i=0; i<sizeof(sInfo[]); i++)
{
sInfo[playerid][playerInfo:i]=0;
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
for(new i=0; i<sizeof(aInfo); i++)
{
if(aInfo[i][id_x]==0)continue;
if(aInfo[i][besitzer]!=sInfo[playerid][db_id])continue;
GetVehiclePos(aInfo[i][id_x],aInfo[i][c_x],aInfo[i][c_y],aInfo[i][c_z]);
GetVehicleZAngle(aInfo[i][id_x],aInfo[i][c_r]);
new query[156];
format(query,sizeof(query),"UPDATE user SET level='%i',money='%i',alevel='%i',fraktion='%i,rang='%i' WHERE id='%i'",sInfo[playerid][level],
GetPlayerMoney(playerid),sInfo[playerid][alevel],sInfo[playerid][fraktion],sInfo[playerid][rang],sInfo,sInfo[playerid][db_id]);
mysql_function_query(dbhandle,query,false,"","");
DestroyVehicle(aInfo[i][id_x]);
aInfo[i][id_x]=0;
break;
}
savePlayer(playerid);
resetPlayer(playerid);
loadPlayerCars(playerid);
return 1;
}public carSavedToDB(carid)
{
aInfo[carid][db_id]=cache_insert_id(dbhandle);
return 1;
}saveCarToDB(playerid,carid)
{
new query[128];
format(query,sizeof(query),"INSERT INTO autos(besitzer,model,x,y,z,r) VALUES('%i','%i','%f','%f','%f','%f')",sInfo[playerid][db_id],aInfo[carid][model],aInfo[carid][c_x],aInfo[carid][c_y],aInfo[carid][c_z],aInfo[carid][c_r]);
mysql_function_query(dbhandle,query,true,"carSavedToDB","i",carid);
return 1;
}
createPlayerCar(playerid,modelid,Float:x,Float:y,Float:z,Float:r)
{
for(new i=0; i<sizeof(aInfo); i++)
{
if(aInfo[i][id_x]!=0)continue;
aInfo[i][besitzer]=sInfo[playerid][db_id];
aInfo[i][c_x] =x;
aInfo[i][c_y] =y;
aInfo[i][c_z] =z;
aInfo[i][c_r] =r;
aInfo[i][model] =modelid;
aInfo[i][id_x] = CreateVehicle(modelid,x,y,z,r,-1,-1,-1);
new string[128];
format(string,sizeof(string),"Das Auto aInfo[%i]wurde erstellt",i);
SendClientMessageToAll(duneklhelblau,string);
saveCarToDB(playerid,i);
return 1;
}
return 1;
}
ocmd:spawnchange(playerid,params[])
{
if(isPlayerInFrakt(playerid,0)) return SendClientMessage(playerid,rot,"Du bist in keiner Fraktion.");
if(sInfo[playerid][spawnchange] == 0)
{
sInfo[playerid][spawnchange] = 1;
}
else
{
sInfo[playerid][spawnchange] = 0;
}
savePlayer(playerid);
SendClientMessage(playerid,grün,"Spawn geändert");
return 1;
} für die Fraktionen!ocmd:einladen(playerid,params[])
{
if(isPlayerInFrakt(playerid, 0))return SendClientMessage(
playerid, helblau, "Du bist in keiner Fraktion.");
if(sInfo[playerid][rang] < 6)return SendClientMessage(
playerid, helblau, "Dein Rang ist zu niedrig.");
new pID, fID;
fID = sInfo[playerid][fraktion];
if(sscanf(params, "u", pID))return SendClientMessage(
playerid, gelb, "INFO: /invite [playerid]");
if(!isPlayerInFrakt(pID, 0))return SendClientMessage(
playerid, gelb, "Spieler ist kein Zivilist.");
new string[128];
format(string,sizeof(string), "%s hat dich in die Fraktion %s eingeladen.",
getPlayerName(playerid), fInfo[fID][f_name]);
SendClientMessage(pID, gelb, string);
SendClientMessage(pID, gelb,
"Zum akzeptieren /accept invite eingeben.");
SetPVarInt(pID, "inv_fraktid", fID);
SetPVarInt(pID, "inv_inviter", playerid);
return 1;
}
ocmd:annehmen(playerid, params[])
{
new item[64];
if(sscanf(params,"s[64]",item))return SendClientMessage(
playerid, gelb, "INFO: /accept [invite]");
if(!strcmp(item, "invite", false))
{
if(GetPVarInt(playerid, "inv_fraktid") == 0)return SendClientMessage(
playerid, grün, "Du wurdest in keine Fraktion eingeladen.");
new fID = GetPVarInt(playerid, "inv_fraktid");
sInfo[playerid][fraktion] = fID;
sInfo[playerid][rang] = 1;
new string[128];
format(string,sizeof(string), "Du bist der Fraktion %s beigetreten.",
fInfo[fID][f_name]);
SendClientMessage(playerid, grün, string);
format(string,sizeof(string), "%s ist der Fraktion beigetreten.",
getPlayerName(playerid));
SendClientMessage(GetPVarInt(playerid, "inv_inviter"), grün,
string);
SetPVarInt(playerid, "inv_fraktid", 0);
return 1;
}
return 1;
}ocmd:Leadererstellen(playerid,params[])
{
if(!isAdmin(playerid,5))return SendClientMessage(playerid,grün,"Du hast keine Berechtigung dazu!");
new pID, fID;
if(sscanf(params,"ui",pID,fID))return SendClientMessage(playerid,rot,"INFO: /Leadererstellen[playerid][fraktid]");
if(fID>= sizeof(fInfo))return SendClientMessage(playerid,rot,"Fraktion existiert nicht.");
sInfo[pID][fraktion] = fID;
sInfo[pID][rang] = 6;
new string[128];
format(string,sizeof(string),"%s hat dich zum Leader der Fraktion %s gemacht",getPlayerName(playerid),fInfo[fID][f_name]);
SendClientMessage(pID,gelb,string);
SendClientMessage(playerid,grün,"Du hast einen Spieler zum Leader gemacht.");return 1;
}ocmd:autoentfernen(playerid, params[])
{
new vID = GetPlayerVehicleID(playerid);
if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid, hellgrün, "Du bist in kein Auto!");
for (new i = 0; i < sizeof(aInfo); i++)
{
if(vID == aInfo[i] [id_x])
{
if(!strcmp(aInfo[i][besitzer], SpielerName(playerid)))
{
new query[128];
format(query, sizeof(query), "DELETE FROM autos WHERE id='%i'",aInfo[i][db_id]);
mysql_function_query(dbhandle,query,false," "," ");
DestroyVehicle(aInfo[i][besitzer]);
aInfo[i] [id_x] = 0;
SendClientMessage(playerid, hellgrün, "Du hast dein Auto entfernt.");
return 1;
}
break;
}
}
return SendClientMessage(playerid, hellgrün, "Du sitzt nicht in deinem Auto!");
}ocmd:adminerstellen(playerid,params[])
{
if(!isAdmin(playerid,6))
return SendClientMessage(playerid,grün,"Dein Adminrang ist nicht hochgenug!");
new pID,a_level;
if(sscanf(params,"ui",pID,a_level))
return SendClientMessage(playerid,dunkelblau,"INFO: /adminerstellen [playerid][adminleve]");
sInfo[pID][alevel]=a_level;
savePlayer(pID);
SendClientMessage(pID,helblau,"Sie wurden erfolgreich befördert!");
SendClientMessage(playerid,helblau,"Du hast den Adminrang geändert!");
return 1;
}public OnPlayerCarsLoad(playerid)
{
new num_fields,num_rows;
cache_get_data(num_rows,num_fields,dbhandle);
if(!num_rows)return 1;
for(new i=0; i<num_rows; i++)
{
new id=getFreeCarID();
aInfo[id][model]=cache_get_field_content_int(i,"model",dbhandle);
aInfo[id][besitzer]=cache_get_field_content_int(i,"besitzer",dbhandle);
aInfo[id][c_x]=cache_get_field_content_float(i,"x",dbhandle);
aInfo[id][c_y]=cache_get_field_content_float(i,"y",dbhandle);
aInfo[id][c_z]=cache_get_field_content_float(i,"z",dbhandle);
aInfo[id][c_r]=cache_get_field_content_float(i,"r",dbhandle);
aInfo[id][db_id]=cache_get_field_content_int(i,"id",dbhandle);
aInfo[id][id_x]=CreateVehicle(aInfo[id][model],aInfo[id][c_x],aInfo[id][c_y],aInfo[id][c_z],aInfo[id][c_r],-1,-1,-1);
}
return 1;
}loadPlayerCars(playerid)
{
new query[128];
format(query,sizeof(query),"SELECT * FROM autos WHERE besitzer='%i'",sInfo[playerid][db_id]);
mysql_function_query(dbhandle,query,true,"OnPlayerCarsLoad","i",playerid);
return 1;
}public OnPasswordResponse(playerid)
{
new num_rows,num_fields;
cache_get_data(num_rows,num_fields,dbhandle);
if(num_rows==1)
{
//passwort Richtig
sInfo[playerid][eingeloggt] = 1;
sInfo[playerid][level] = cache_get_field_content_int(0,"level",dbhandle);
SetPlayerScore(playerid,sInfo[playerid][level]);
sInfo[playerid][db_id] = cache_get_field_content_int(0,"id",dbhandle);
SetPlayerMoney(playerid,cache_get_field_content_int(0,"money",dbhandle));
sInfo[playerid][alevel] = cache_get_field_content_int(0,"alevel",dbhandle);
sInfo[playerid][fraktion] = cache_get_field_content_int(0,"fraktion",dbhandle);
sInfo[playerid][rang] = cache_get_field_content_int(0,"rang",dbhandle);
sInfo[playerid][spawnchange] = cache_get_field_content_int(0,"spawnchange",dbhandle);
SetPlayerScore(playerid,sInfo[playerid][level]);
loadPlayerCars(playerid);}
else
{
//Passwort Falsch
SendClientMessage(playerid,grün,"Du hast dein Passwort falsch eingetippt. Versuche es nochmal!");
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login","Gibt bitte dein Passwort ein:","Anmelden","Abbrechen");
}
return 1;
}Dialoge:
if(dialogid==DIALOG_LOGIN)
{
if(response)
{
new name[MAX_PLAYER_NAME],query[128],passwort[35];
GetPlayerName(playerid,name,sizeof(name));
if(strlen(inputtext)>0)
{
mysql_escape_string(inputtext,passwort,dbhandle);
format(query,sizeof(query),"SELECT * FROM user WHERE username='%s' AND passwort=MD5('%s')",name,passwort);
mysql_function_query(dbhandle,query,true,"OnPasswordResponse","i",playerid);
}
else
{
//Keine Eingabe
SendClientMessage(playerid,grün,"Gibt bitte dein Passwort ein.");
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login","Gibt bitte dein Passwort ein:","Anmelden","Abbrechen");
}
}
else
{
Kick(playerid);
}
}
if(dialogid==DIALOG_REGISTER)
{
if(response)
{
new name[MAX_PLAYER_NAME],query[128],passwort[35];
GetPlayerName(playerid,name,sizeof(name));
if(strlen(inputtext)>5)
{
//Registrierungsfunktion
mysql_escape_string(inputtext,passwort,dbhandle);
format(query,sizeof(query),"INSERT INTO user (username,passwort) VALUES ('%s',MD5('%s')) ",name,passwort);
mysql_function_query(dbhandle,query,false,"","");
sInfo[playerid][level]=1;
SetPlayerScore(playerid,sInfo[playerid][level]);
}
else
{
//Kleiner als 4 Zeichen
SendClientMessage(playerid,helblau,"Dein Passwort muss mindestens 6 Zeichen lang sein.");
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Account Erstellung","Gebe bitte nun dein gewünschtes Passwort ein!","Erstellen","Abbrechen");
}
}
else
{
Kick(playerid);
}
}if(dialogid== DIALOG_Autosystem)
{
if(response)
{
if(listitem==0)
{
if(!IsPlayerInAnyVehicle(playerid))return
SendClientMessage(playerid,rot,"Sie sind nicht im Fahrzeug");
//motorfunktion
if(GetPlayerState(playerid)!=PLAYER_STATE_DRIVER)
{
SendClientMessage(playerid,blau,"Sie sind nicht der Fahrer dieses Fahrzeuges");
}
new vID=GetPlayerVehicleID(playerid), motor, licht, alarm, tueren, bonnet, boot, objective;
//Motor an/ausschalten:
GetVehicleParamsEx(vID,motor,licht,alarm,tueren,bonnet,boot,objective);
if(motor==1) motor = 0;
else motor = 1;
SetVehicleParamsEx(vID,motor,licht,alarm,tueren,bonnet,boot,objective);
SendClientMessage(playerid,blau,"Sie haben den Motor Ihres Fahrzeuges angeschlaten/ausgeschalten!");
}
}
if(listitem==1)
{
if(!IsPlayerInAnyVehicle(playerid))return
SendClientMessage(playerid,rot,"Sie sind nicht im Fahrzeug");
if(GetPlayerState(playerid)!=PLAYER_STATE_DRIVER)
return SendClientMessage(playerid,blau,"Sie befinden sich nicht in Ihr Fahrzeug");
new vID=GetPlayerVehicleID(playerid),
motor,
licht,
alarm,
tueren,
bonnet,
boot,
objective;
//licht an/ausschalten:
GetVehicleParamsEx(vID,motor,licht,alarm,tueren,bonnet,boot,objective);
if(licht==1){
licht = 0;
}
else
{
licht = 1;
}
SetVehicleParamsEx(vID,motor,licht,alarm,tueren,bonnet,boot,objective);
SendClientMessage(playerid,blau,"Du hast das Licht an eingeschalten/ausgeschalten");
}
if(listitem==2)
{
new motor,
licht,
alarm,
tueren,
bonnet,
boot,
objective;new vID = INVALID_VEHICLE_ID;
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
new Float:Pos[3];
for(new i=0;i<MAX_VEHICLES; i++)
{
GetVehiclePos(i, Pos[0], Pos[1], Pos[2]);
if(IsPlayerInRangeOfPoint(playerid, 5.0, Pos[0], Pos[1], Pos[2]))
{
vID = i;
break;
}
}
}
else if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
vID = GetPlayerVehicleID(playerid);
}
if(vID == INVALID_VEHICLE_ID)
{
SendClientMessage(playerid, 0xFF0000FF, "Error: Nicht nahe oder in einem Fahrzeug.");
}
//abschliessen:
GetVehicleParamsEx(vID,motor,licht,alarm,tueren,bonnet,boot,objective);
if(tueren==1)
{
tueren = 0;
}
else
{
tueren = 1;
}
SetVehicleParamsEx(vID,motor,licht,alarm,tueren,bonnet,boot,objective);
SendClientMessage(playerid,blau,"Sie haben die Türen Ihres Fahrzeuges abgeschlossen/aufgeschlossen!");
}
if(listitem==3)
{
new vID = GetPlayerVehicleID(playerid);
if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid, hellgrün, "Du bist in kein Auto!");
for (new i = 0; i < sizeof(aInfo); i++)
{
if(vID == aInfo[i] [id_x])
{
if(aInfo[i][besitzer] == sInfo[playerid][db_id])
{
new query[256];
GetVehiclePos(vID, aInfo[i][c_x],aInfo[i][c_y],aInfo[i][c_z]);
GetVehicleZAngle(vID,aInfo[i][c_r]);
format(query, sizeof(query), "UPDATE Autos SET x='%f',y='%f',z='%f',r='%f' WHERE id='%i'",aInfo[i] [c_x],aInfo[i] [c_y],aInfo[i] [c_z],aInfo[i] [c_r],aInfo[i] [db_id]);
mysql_function_query(dbhandle,query,false," "," ");
SendClientMessage(playerid, hellgrün, "Du hast dein Auto geparkt.");
return 1;
}
break;
}
}
return SendClientMessage(playerid, hellgrün, "Sie sitzen nicht in Ihr Fahrze!");
}
} für das sind die sachen fürs Autoparken und so.Warum es nun rumbuggt weiß ich leider nicht. Es erstellt sich auch nicht mals eine MySQL.log datei um zu sehen woran es liegen könnte
-
Guten Morgen
Ich habe mir folgendes erstellt:
forward Fandungslevel(playerid);
public Fandungslevel(playerid)
{
if(isPlayerInFrakt(playerid,1))return SendClientMessage(playerid,rot,"Du bist nicht im SAPD!");
{
new wLevel;
if(sscanf(params,"ui",pID,wLevel))return SendClientMessage(playerid,duneklhelblau,"Info: /Fandungslevel[playerid][fandungslevel]");
if(wLevel<1||wLevel>6)return SendClientMessage(playerid,rot,"Falsche Fandungslevel!");
GetPlayerWantedLevel(playerid);
return 1;
}
}Mein Public ist dafür da das der Spieler von 1-6 Fandungslevel bekommen kann.
Meine lautet nun wie Folgt:
wie bekomme ich es hin wenn ich mit ein ocmd befehl das Public Fandungslevel aufgerufen bekomm?
-
Chester_McBadbat mach es für allle bitte damit auch jeder der so ein problem die lösung hat
-
danke jeffry
-
-
mir ist aber aufgefallen Jeffry das da noch was fehlt um den gmx befehl aufzurufen:
SendRconCommand("gmx"); fehlt im code sonst kann doch der gmx nicht gehen oder nicht? -
Danke Red_Romeo
-
Habe es so wie mir es gezeigt wurde:
forward sind die namen nur von der Explosion gleich:forward Explosion();
forward TransportGmbH(playerid);public OnGameModeInit()
{
trsodoor = CreateObject(2634, 1551.63159, -1801.69556, 26.47590, 0.00000, 0.00000, 0.00000);//tresortür
return 1;
}public Explosion()
{
CreateExplosion(1551.63159, -1801.69556, 26.47590, 0, 3);
DestroyObject(sprengung);//tnt
DestroyObject(trsodoor);//tresortür
sprengung=-1;//tnt
trsodoor = -1;
SetTimer("TresorTuer", 1000*60*1, false);
return 1;
}
public TransportGmbH(playerid)
{
if(IsValidObject(trsodoor))return 1;
trsodoor = CreateObject(2634, 1551.63159, -1801.69556, 26.47590, 0.00000, 0.00000, 0.00000);//tresortür
return 1;
}Mein Befehl:
ocmd:transporttresorsprengen(playerid,params[])
{
if(IsValidObject(sprengung))return SendClientMessage(playerid, -1, "Die Tür wird bereits gesprengt.");
if(!IsValidObject(trsodoor))return SendClientMessage(playerid, -1, "Die Tür steht offen.");
sprengung=CreateObject(1654, 1550.78955, -1801.41882, 26.45240, 0.00000, 0.00000, -180.00000);//tnt
SendClientMessage(playerid,rot,"Achtung geht in Deckung das TNT geht in 2 sekunden hoch!");
SetTimer("Explosion", 2000, false);
return 1;
}Soweit geht es ja.
Nur das Problem ist einfach:
Nach dem die Tresortür Gespränkt wurde und die 3 Minuten um sind taucht die Tür nicht auf.
Woran liegt es denn?
-
bei mir ging es leider nicht
-
Leider wird die Tür nicht hingesetzt
-
habe es ja nicht gesehen sry
-
Guten Tag
Habe mir folgendes Erstellt:
forward Explosion(playerid,objectid,objectid2);
new tmp[MAX_PLAYERS][2];
public Explosion(playerid,objectid,objectid2)
{
DestroyObject(objectid);//tnt
DestroyObject(trsodoor);//tresor
tmp[playerid][0]=-1;//tnt
tmp[playerid][1]=-1;//tresor
trsodoor = CreateObject(2634, 1551.63159, -1801.69556, 26.47590, 0.00000, 0.00000, 0.00000);//tresortür
return 1;
}ocmd:transporttresorsprengen(playerid,params[])
{
tmp[playerid][0]=CreateObject(1654, 1550.78955, -1801.41882, 26.45240, 0.00000, 0.00000, -180.00000);//tnt
tmp[playerid][1]=-1;//tresor
SendClientMessage(playerid,rot,"Achtung geht in Deckung das TNT geht in 2 sekunden hoch!");
SetTimerEx("Explosion",2000,0,"ddd",playerid,tmp[playerid][0],tmp[playerid][1]=-1);
return 1;
}Das TNT taucht auf so wie es soll. Dann geht es kabum und die Tür verschwindet direkt mit wenn das TNT verschwindet.
Mein Problem besteht jetzt darin das die Tür mit ein Timer wieder erstellt werden soll.
Habe so Angefangen:
forward TransportGmbH(playerid);public TransportGmbH(playerid)
{
return 1;
}Ich muss irgend was im Befehl einbauen:
ocmd:transporttresorsprengen(playerid,params[])
{
tmp[playerid][0]=CreateObject(1654, 1550.78955, -1801.41882, 26.45240, 0.00000, 0.00000, -180.00000);//tnt
tmp[playerid][1]=-1;//tresor
SendClientMessage(playerid,rot,"Achtung geht in Deckung das TNT geht in 2 sekunden hoch!");
SetTimerEx("Explosion",2000,0,"ddd",playerid,tmp[playerid][0],tmp[playerid][1]=-1);
return 1;
}bitte helft mir