Hallo Breafishes,
Ich nutze das MySQL-Plugin von StrikenKid, aber egal was ich mache, immer sendet mir die Samp-server Konsole errors!
SA-MP Dedicated Server
----------------------
v0.3c, (C)2005-2010 SA-MP Team
[17:18:18] filterscripts = "" (string)
[17:18:18]
[17:18:18] Server Plugins
[17:18:18] --------------
[17:18:18] Loading plugin: MySQL
[17:18:18] SA:MP MySQL Plugin v2.1.1 Loaded.
[17:18:18] Loaded.
[17:18:18] Loaded 1 plugins.
[17:18:18] [MySQL] Thread running. Threadsafe: Yes.
[17:18:18]
[17:18:18] Filter Scripts
[17:18:18] ---------------
[17:18:18] Loaded 0 filter scripts.
[17:18:18] [MySQL] Connected (0) to 'Mythos'@'localhost via TCP/IP'.
[17:18:18] [MySQL] Server Version 5.5.8.
[17:18:18] Number of vehicle models: 0
[17:18:41] Incoming connection: 192.168.0.198:1330
[17:18:41] [join] Kevin has joined the server (0:192.168.0.198)
[17:18:41] [MySQL] Error (0): Function: mysql_store_result called when no prior successful query executed.
[17:18:41] [MySQL] Error (0): Function: mysql_num_rows called when no result stored.
[17:18:41] [MySQL] Error (0): Could not execute query. 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 '%s' at line 1.
[17:19:28] [MySQL] Error (0): Failed to exeute query. 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 '-Adresse) VALUES (Kevin,xx1234,192.168.0.198)' at line 1.
[17:19:30] [part] Kevin has left the server (0:2)
Console input: exit
[17:19:41] --- Server Shutting Down.
[17:19:41] [MySQL] Closed (0). Logging ended.
[17:19:41] SA:MP MySQL Plugin v2.1.1 Unloaded.
Die Pawn Abfrage:
mysql_query("SELECT * FROM Accounts WHERE Spielername=%s",SpielerInfo[playerid][sName]);
mysql_store_result();
if(mysql_num_rows()){
mysql_free_result();
}else{
mysql_free_result();
}
Ich hoffe ihr könnt mir weiterhelfen ...
MfG Styler