weil es an dem Godfather liegt und nicht an irgendwas anderem
Beiträge von Masterman
-
-
Hallo leute ich wollte ein Godfather script in MYSQL umwandeln nur leider connected dieser nicht zur datenbank. Ich habe alles richtig mit dem Connecten gemacht, weil ich habe es schon in einem Blank script getestet. Ich glaube es liegt an den Includes. Hier die Includes:
#include <a_samp>
#include <a_mysql>
#include <a_npc>
#include <core>
#include <float>
#include <time>
#include <ocmd>
#include <dini>
#include <file>
#include <utils>
#include <morphinc>
#include <streamer>
#include <JunkBuster> -
ja der gamemode wird beendet
mysql log
SQL
Alles anzeigen[17:00:36] [17:00:36] --------------------------- [17:00:36] MySQL Debugging activated (09/03/12) [17:00:36] --------------------------- [17:00:36] [17:00:36] >> mysql_connect( ) [17:00:36] CMySQLHandler::Connect() - Connection was successful. [17:00:36] CMySQLHandler::Connect() - Auto-Reconnect has been enabled. [17:00:36] CMySQLHandler::~CMySQLHandler() - deconstructor called. [17:00:36] CMySQLHandler::FreeResult() - The result is already empty. [17:00:36] CMySQLHandler::Disconnect() - Connection was closed. [17:27:26] [17:27:26] --------------------------- [17:27:26] MySQL Debugging activated (09/03/12) [17:27:26] --------------------------- [17:27:26] [17:27:27] CMySQLHandler::~CMySQLHandler() - deconstructor called. [17:27:27] CMySQLHandler::FreeResult() - The result is already empty. [17:27:27] CMySQLHandler::Disconnect() - Connection was closed. [17:31:41] [17:31:41] --------------------------- [17:31:42] MySQL Debugging activated (09/03/12) [17:31:42] --------------------------- [17:31:42] [17:31:42] CMySQLHandler::~CMySQLHandler() - deconstructor called. [17:31:42] CMySQLHandler::FreeResult() - There is nothing to free (Reason: Connection is dead) [17:31:42] CMySQLHandler::Disconnect() - You cannot call this function now. (Reason: Connection is dead) [17:33:51] [17:33:51] --------------------------- [17:33:51] MySQL Debugging activated (09/03/12) [17:33:51] --------------------------- [17:33:51] [17:33:51] CMySQLHandler::~CMySQLHandler() - deconstructor called. [17:33:51] CMySQLHandler::FreeResult() - The result is already empty. [17:33:51] CMySQLHandler::Disconnect() - Connection was closed. [19:35:00] [19:35:00] --------------------------- [19:35:00] MySQL Debugging activated (09/03/12) [19:35:00] --------------------------- [19:35:00] [19:35:00] CMySQLHandler::~CMySQLHandler() - deconstructor called. [19:35:00] CMySQLHandler::FreeResult() - There is nothing to free (Reason: Connection is dead) [19:35:01] CMySQLHandler::Disconnect() - You cannot call this function now. (Reason: Connection is dead) [19:35:07] [19:35:07] --------------------------- [19:35:07] MySQL Debugging activated (09/03/12) [19:35:07] --------------------------- [19:35:07] [19:35:08] CMySQLHandler::~CMySQLHandler() - deconstructor called. [19:35:08] CMySQLHandler::FreeResult() - There is nothing to free (Reason: Connection is dead) [19:35:08] CMySQLHandler::Disconnect() - You cannot call this function now. (Reason: Connection is dead) [22:49:07] [22:49:07] --------------------------- [22:49:07] MySQL Debugging activated (09/03/12) [22:49:07] --------------------------- [22:49:07] [22:49:08] CMySQLHandler::~CMySQLHandler() - deconstructor called. [22:49:08] CMySQLHandler::FreeResult() - There is nothing to free (Reason: Connection is dead) [22:49:08] CMySQLHandler::Disconnect() - You cannot call this function now. (Reason: Connection is dead) [23:28:13] [23:28:13] --------------------------- [23:28:13] MySQL Debugging activated (09/03/12) [23:28:13] --------------------------- [23:28:13] [23:28:13] CMySQLHandler::~CMySQLHandler() - deconstructor called. [23:28:13] CMySQLHandler::FreeResult() - The result is already empty. [23:28:13] CMySQLHandler::Disconnect() - Connection was closed. [23:30:52] [23:30:52] --------------------------- [23:30:52] MySQL Debugging activated (09/03/12) [23:30:52] --------------------------- [23:30:52] [23:30:52] CMySQLHandler::~CMySQLHandler() - deconstructor called. [23:30:52] CMySQLHandler::FreeResult() - The result is already empty. [23:30:52] CMySQLHandler::Disconnect() - Connection was closed. [23:31:02] [23:31:02] --------------------------- [23:31:02] MySQL Debugging activated (09/03/12) [23:31:02] --------------------------- [23:31:02] [23:31:02] CMySQLHandler::~CMySQLHandler() - deconstructor called. [23:31:02] CMySQLHandler::FreeResult() - The result is already empty. [23:31:02] CMySQLHandler::Disconnect() - Connection was closed. [23:31:21] [23:31:21] --------------------------- [23:31:21] MySQL Debugging activated (09/03/12) [23:31:21] --------------------------- [23:31:21] [23:31:21] CMySQLHandler::~CMySQLHandler() - deconstructor called. [23:31:21] CMySQLHandler::FreeResult() - The result is already empty. [23:31:21] CMySQLHandler::Disconnect() - Connection was closed. [23:36:02] [23:36:02] --------------------------- [23:36:02] MySQL Debugging activated (09/03/12) [23:36:02] --------------------------- [23:36:02] [23:36:03] CMySQLHandler::~CMySQLHandler() - deconstructor called. [23:36:03] CMySQLHandler::FreeResult() - The result is already empty. [23:36:03] CMySQLHandler::Disconnect() - Connection was closed. [23:42:11] [23:42:11] --------------------------- [23:42:11] MySQL Debugging activated (09/03/12) [23:42:11] --------------------------- [23:42:11] [23:42:11] CMySQLHandler::~CMySQLHandler() - deconstructor called. [23:42:11] CMySQLHandler::FreeResult() - The result is already empty. [23:42:11] CMySQLHandler::Disconnect() - Connection was closed. [23:42:36] [23:42:36] --------------------------- [23:42:36] MySQL Debugging activated (09/03/12) [23:42:36] --------------------------- [23:42:36] [23:42:37] CMySQLHandler::~CMySQLHandler() - deconstructor called. [23:42:37] CMySQLHandler::FreeResult() - The result is already empty. [23:42:37] CMySQLHandler::Disconnect() - Connection was closed. [23:46:43] [23:46:43] --------------------------- [23:46:43] MySQL Debugging activated (09/03/12) [23:46:43] --------------------------- [23:46:43] [23:47:30] >> mysql_query( Connection handle: 83 ) [23:47:30] >> mysql_query() - Invalid connection handle. (You set: 83, Highest connection handle ID is 1). [23:47:30] >> mysql_store_result( Connection handle: 0 ) [23:47:30] >> mysql_store_result() - Invalid connection handle. (You set: 0, Highest connection handle ID is 1). [23:47:30] >> mysql_fetch_row_format( Connection handle: 0 ) [23:47:30] >> mysql_fetch_row_format() - Invalid connection handle. (You set: 0, Highest connection handle ID is 1). [23:47:43] >> mysql_query( Connection handle: 97 ) [23:47:43] >> mysql_query() - Invalid connection handle. (You set: 97, Highest connection handle ID is 1). [23:47:43] >> mysql_query( Connection handle: 0 ) [23:47:43] >> mysql_query() - Invalid connection handle. (You set: 0, Highest connection handle ID is 1). [23:47:43] >> mysql_store_result( Connection handle: 78 ) [23:47:43] >> mysql_store_result() - Invalid connection handle. (You set: 78, Highest connection handle ID is 1). [23:47:43] >> mysql_fetch_row_format( Connection handle: 78 ) [23:47:43] >> mysql_fetch_row_format() - Invalid connection handle. (You set: 78, Highest connection handle ID is 1). [23:47:43] >> mysql_free_result( Connection handle: 78 ) [23:47:43] >> mysql_free_result() - Invalid connection handle. (You set: 78, Highest connection handle ID is 1). [23:47:50] >> mysql_query( Connection handle: 97 ) [23:47:50] >> mysql_query() - Invalid connection handle. (You set: 97, Highest connection handle ID is 1). [23:48:02] >> mysql_query( Connection handle: 97 ) [23:48:02] >> mysql_query() - Invalid connection handle. (You set: 97, Highest connection handle ID is 1). [23:50:54] >> mysql_query( Connection handle: 83 ) [23:50:54] >> mysql_query() - Invalid connection handle. (You set: 83, Highest connection handle ID is 1). [23:50:54] >> mysql_store_result( Connection handle: 0 ) [23:50:54] >> mysql_store_result() - Invalid connection handle. (You set: 0, Highest connection handle ID is 1). [23:50:54] >> mysql_fetch_row_format( Connection handle: 0 ) [23:50:54] >> mysql_fetch_row_format() - Invalid connection handle. (You set: 0, Highest connection handle ID is 1).
samp log
[23:46:43] <-| [MYSQL] Es konnte keine Verbindung zur Datenbank hergestellt werden!
[23:46:43] <-| [MYSQL] Es wird erneut versucht eine Verbindung zur Datenbank herzustellen!
[23:46:43] <-| [MYSQL] Es konnte keine Verbindung zur Datenbank hergestellt werden!
[23:46:43] <-| [MYSQL] Der Server wird nun beendet!
[23:46:43] GangZone 0 loadad: 2722.423828,-1901.509521,2812.729492,-2042.323974,2790.339355,-1944.110473,13.546897,14
[23:46:43] GangZone 1 loadad: 560.538024,-724.028320,875.840576,-362.014099,681.371826,-474.094207,16.536300,14
[23:46:43] GangZone 2 loadad: -2151.333007,-534.198120,-1969.786987,-368.509490,-2044.298217,-499.230285,35.335899,14
[23:46:43] GangZone 3 loadad: -2760.101806,818.282775,-2838.311279,1321.169555,-2802.583007,1007.611877,48.113498,13
[23:46:43] Maximale Pickups: 2048, Momentane Pickups: 54
[23:46:43] _______________________________________
[23:46:43] Das Script wurde Vollständig geladen!
[23:46:43] Evolution of San Andreas V1.5
[23:46:43] Script Edit by [ESA]Masterman
[23:46:43] _______________________________________
[23:46:43]
[23:46:43] Number of vehicle models: 94
[23:47:29] Incoming connection: 127.0.0.1:53073
[23:47:30] [join] Masterman has joined the server (0:127.0.0.1)
[23:47:43] Masterman hat sich Eingeloggt.
[23:48:01] [chat] [Masterman]: (q
[23:48:02] [part] Masterman has left the server (0:1)
[23:50:54] Incoming connection: 127.0.0.1:61238
[23:50:54] [join] Masterman has joined the server (0:127.0.0.1)
[23:51:09] [part] Masterman has left the server (0:1) -
hab ich doch gemacht
-
SQL
Alles anzeigen[17:00:36] [17:00:36] --------------------------- [17:00:36] MySQL Debugging activated (09/03/12) [17:00:36] --------------------------- [17:00:36] [17:00:36] >> mysql_connect( ) [17:00:36] CMySQLHandler::Connect() - Connection was successful. [17:00:36] CMySQLHandler::Connect() - Auto-Reconnect has been enabled. [17:00:36] CMySQLHandler::~CMySQLHandler() - deconstructor called. [17:00:36] CMySQLHandler::FreeResult() - The result is already empty. [17:00:36] CMySQLHandler::Disconnect() - Connection was closed.
-
Hallo leute ich habe das plugin+include a_mysql R5 aber das problem ist er connected nicht mit der datenbank. Hier der code
ongamemodeinit
mysql_connect("127.0.0.1", "root", "samp", "");if(mysql_ping() == 0) { print("->-> VERBINDUNG ZUR DATENBANK KONNTE NICHT AUFGEBAUT WERDEN <-<-"); print("->-> SERVER WIRD BEENDET <-<-"); SendRconCommand("exit"); } else { print("->-> Verbindung zur Datenbank, erfolgreich. <-<-"); }
wenn ich das 2. rauslasse connected er trotzdem nicht aber woran liegt das?? Ich benutze easyphp 5.3.9 aber daran kann das nicht liegen weil ich hab das auch schon auf anderen datenbanken probiert.
-
Danke !
-
Zitat
ich kann dir jetzt sagen, das du das sscanf falsch anwendest
was ist daran falsch ?Zitatwas für errors?
Input line too longZitatmitt ein \ und dann enter
wie meinen sie das ?
-
Hey leute ich habe ein problem undzwar will ich sachen splitten mit sscanf in mysql
sscanf(result, "p<|>ss", playername2, PlayerInfo[playerid][pKey]); Nur das problem ist das ich über 100 sachen habe die geladen werden müssen also kommen da errors wenn ich das alles reinmache weil das zu lang ist und da brauch ich eure hilfe -
-
insgesamt 1-2€ würde ich eigentlich dafür ausgeben
-
Hey ich suche Teamspeak 3 Icons für Fraktionen, der Preis dürfte maximal 1-2€ sein.
Ich brauche volgende Icons:Präsident
FBI
Taxi
Yakuza
La Cosa Nostra
Brigada
Terroristen
Aztecas
BloodZ
Mara Salvatrucha
CNN
Angles of Death
The Lost And Damned[Folgendes muss im Thema enthalten sein und darf nicht entfernt werden:]
______
Unverbindlicher Hinweis: Die Sicherheit einer Transaktion kann am besten durch die Einschaltung eines Mittelsmannes gewährleistet werden. Weitere Informationen dazu gibt es hier. -
Danke dir
-
Xigmatek Asgard ??? Wenn ja geil
-
genauso wie da
-
is ja nurn gehäuse
-
Den 2. Header bitte genauso wie der ist nur mit dem Text: Evolution of SA
-
Reicht ja
-
Text: Evoultion of SA
Logo: 3
Transparenter Hintergrund bitte -
Hey ich habe ein problem undzwar habe ich einen Bot gescriptet der eine Route abfährt aber da passiert nichts er steht nur an einer stelle
Hier der Code:Ongamemodeinit:
ConnectNPC("BusBotSF","BusBotSF");
BusBotCar = CreateVehicle(431,-1992.9375,147.5845,27.6438,359.8214,1,1,-1); // busonplayerconnect:
if(IsPlayerNPC(playerid))
{
gPlayerLogged[playerid] = 1;
gPlayerAccount[playerid] = 1;
SpawnPlayer(playerid);
return 1;
}onplayerspawn:
if(IsPlayerNPC(playerid))
{
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
SetPlayerSkin(playerid,33);
SetPlayerPos(playerid,-1988.6643,137.9249,27.5391);
PutPlayerInVehicle(playerid, BusBotCar, 0);
return 1;
}P.S ich habe die include M_bot nicht im script