Mein Fehler wurde dank @[TCR]Nico gefunden .
Es lag einfach daran das MYSQL_PASSWORD und MYSQL_DB gedreht werden müssen anstadt wie fürher
Mein Fehler wurde dank @[TCR]Nico gefunden .
Es lag einfach daran das MYSQL_PASSWORD und MYSQL_DB gedreht werden müssen anstadt wie fürher
Kannst du bitte dafür in den Markt gehen
Egal ob ich versuche mit 127.0.0.1 auf die Datenbank zu greifen oder mit localhost.
Es kommt immer nur folgender Feheler in der Mysql-Server.log datei:
[11:29:40] [ERROR] mysql_connect - empty connection data specified
[11:29:41] [ERROR] mysql_errno - invalid connection handle (id: 0)
[11:29:41] [ERROR] mysql_connect - empty connection data specified
[11:29:41] [ERROR] mysql_errno - invalid connection handle (id: 0)
[11:29:41] [ERROR] mysql_connect - empty connection data specified
[11:29:41] [ERROR] mysql_errno - invalid connection handle (id: 0)
[11:29:41] [ERROR] mysql_close - invalid connection handle (id: 0)
Folgendes Steht dann in der Server.log:
[15:36:47] SERVER: Der Server wurde erfolgreich gestartet
[15:36:47] SERVER: Versucht die Verbindung zur Datenbank aufzubauen
[15:36:47] OnGamemodeInt: LoadBiz (3ms)
[15:36:47] OnGamemodeInt: LoadSBiz (2ms)
[15:36:47] OnGamemodeInt: LoadTankenBiz (4ms)
[15:36:47] OnGamemodeInt: LoadStuff (14ms)
[15:36:47] OnGamemodeInt: LoadKassenInfo (0ms)
[15:36:47] OnGamemodeInt: LoadGangfightZones (0ms)
[15:36:47] OnGamemodeInt: LoadGangWarInfos (7ms)
[15:36:47] OnGamemodeInt: LoadGangBNDInfos (0ms)
[15:36:47] sscanf warning: String buffer overflow.
Alles anzeigen
Es ist eine Am laufen.
Guten Morgen
Habe das Tutorial von @Jeffry genommen mit dem MYSQL Script mit dem Register und Login.
Das Script an sich funktioniert ja ohne Probleme aber das Problem ist der will mich nicht auf die Datenbank lassen.
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[12:07:20] filterscripts = "" (string)
[12:07:20]
[12:07:20] Server Plugins
[12:07:20] --------------
[12:07:20] Loading plugin: mysql
[12:07:20] >> plugin.mysql: R39-4 successfully loaded.
[12:07:20] Loaded.
[12:07:20] Loaded 1 plugins.
[12:07:20]
[12:07:20] Filterscripts
[12:07:20] ---------------
[12:07:20] Loaded 0 filterscripts.
[12:07:20] [MYSQL] Verbindungsaufbau..........
[12:07:20] [MYSQL] Es konnte keine Verbindung zur Datenbank hergestellt werden.
[12:07:20] [MYSQL] Starte neuen Verbindungsversuch (TTL: 2).
[12:07:20] [MYSQL] Verbindungsaufbau..........
[12:07:20] [MYSQL] Es konnte keine Verbindung zur Datenbank hergestellt werden.
[12:07:20] [MYSQL] Starte neuen Verbindungsversuch (TTL: 1).
[12:07:20] [MYSQL] Verbindungsaufbau..........
[12:07:20] [MYSQL] Es konnte keine Verbindung zur Datenbank hergestellt werden.
[12:07:20] [MYSQL] Bitte überprüfen Sie die Verbindungsdaten
[12:07:20] [MYSQL] Der Server wird automatisch Heruntergefahren
[12:07:20]
----------------------------------
[12:07:20] Life of Real Version 0.1
[12:07:20] ----------------------------------
[12:07:20] Number of vehicle models: 0
[12:07:20] --- Server Shutting Down.
[12:07:20] plugin.mysql: Unloading plugin...
[12:07:20] plugin.mysql: Plugin unloaded.
Alles anzeigen
Ich teste es ja auf mein Homepc und da geht mein Script nicht.
Habe es auch so Defininiert:
/* ---------------Credits----------------------------------------------------------
Die Inhalte die in diesem Script vorkommen sind eigentum von und dürfen
ohne Seine Zustimmung nicht benutzt werder oder weiter gegeben werden.
Sollte das veröffentlicht werden dürfen die Credits nicht geändert werden.
Jegliche Art der veränderungen an den Credits wird mit einer Anzeige gefandet.
Dieses Script wird ein Reallife-Script[Selfmade]
Mysql wird verwendet.
----------------------------------------------------------------------------------------*/
//--------------------------------------Includes------------------------------------------
#include <a_samp>
#include<a_mysql>
#include<ocmd.inc>
//-------------------------------------------------------------------------------------------
//--------------------------Farben---------------------------------
#define rot 0xFF0000FF
#define blau 0x0000DDFF
#define grün 0x09C500FF
#define gelb 0xFFFF00FF
//---------------------------------------------------------------------
//----------------------------------MYSQL--------------------------
#define MYSQL_HOST "127.0.0.1"
#define MYSQL_USER "root"
#define MYSQL_PASS ""
#define MYSQL_DB "samp"
new handle;
//-----------------------------------------------------------------------
//-------------------------------Forwards---------------------------
forward OnUserCheck(playerid);
forward OnUserLogin(playerid);
forward OnUserRegister(playerid);
//-----------------------------------------------------------------------
//----------------------------Enums----------------------------------
enum pDataEnum
{
p_id,
bool:pLoggedIn,
pName[MAX_PLAYER_NAME],
pLevel,
pAlevel,
pMoney
}
new PlayerInfo[MAX_PLAYER_NAME][pDataEnum];
//------------------------------------------------------------------------
//----------------------------DIALOGE-------------------------------
#define DIALOG_REGISTER 1
#define DIALOG_LOGIN 2
//------------------------------------------------------------------------
main()
{
print("\n----------------------------------");
print(" Life of Real Version 0.1");
print("----------------------------------\n");
}
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Life of Real Version 0.1");
AddPlayerClass(115, 2400.9517,-2688.3296,13.6494,178.2475,0,0,0,0,0,0);
AddPlayerClass(93, 2400.9517,-2688.3296,13.6494,178.2475,0,0,0,0,0,0);
MySQL_SetupConnection();
return 1;
}
public OnGameModeExit()
{
mysql_close(handle);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
new query[128];
mysql_format(handle,query,sizeof(query), "SELECT id FROM Accounts WHERE name = '%e' ",PlayerInfo[playerid][pName]);
mysql_pquery(handle,query,"OnUserCheck","d",playerid);
SetPlayerPos(playerid, 2401.0645,-2691.9045,13.6451);
SetPlayerCameraPos(playerid, 2401.0645,-2691.9045,13.6451);
SetPlayerCameraLookAt(playerid, 2401.0645,-2691.9045,13.6451);
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,rot,"Willkommen auf Life of Real. Wir hoffen euch ein angenehmen aufenhalt zu bieten. Wenn ihr Hilfe braucht sprecht uns an!");
PlayerInfo[playerid][p_id] =0;
PlayerInfo[playerid][pLoggedIn] =false;
PlayerInfo[playerid][pLevel] =0;
PlayerInfo[playerid][pAlevel] =0;
PlayerInfo[playerid][pMoney] =0;
GetPlayerName(playerid,PlayerInfo[playerid][pName],MAX_PLAYER_NAME);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
SaveUserStats(playerid);
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
PlayerInfo[playerid][pMoney] += 10;
if(PlayerInfo[playerid][pMoney] >3)
{
PlayerInfo[playerid][pLevel] = 1;
}
}
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_REGISTER)
{
if(!response) return Kick(playerid);
if(strlen(inputtext) <3)return ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"Account Erstellung","Bitte Erstelle dir ein Account\n{0x00A598FF}Mindestens 6 Zeichen!","Erstellen","Verlassen");
new query[256];
mysql_format(handle,query,sizeof(query), "INSERT INTO Accounts (name,password) VALUES ('%e',MD5('%e'))",PlayerInfo[playerid][pName],inputtext);
mysql_pquery(handle,query,"OnUserRegister","d",playerid);
return 1;
}
if(dialogid == DIALOG_LOGIN)
{
if(!response) return Kick(playerid);
if(strlen(inputtext) <3)return ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Anmeldung","Bitte Logge dich mit dein Password ein.\n{0x00A598FF}Mindestens 6 Zeichen!","Anmelden","Verlassen");
new query[256];
mysql_format(handle,query,sizeof(query), "SELECT * FROM Accounts WHERE name = '%e' AND password = MD5('%e')",PlayerInfo[playerid][pName],inputtext);
mysql_pquery(handle,query,"OnUserLogin","d",playerid);
return 1;
}
return 0;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
stock MySQL_SetupConnection(ttl =3)
{
print("[MYSQL] Verbindungsaufbau..........");
handle = mysql_connect(MYSQL_HOST,MYSQL_USER,MYSQL_PASS,MYSQL_DB);
if(mysql_errno(handle) !=0)
{
if(ttl > 1)
{
print("[MYSQL] Es konnte keine Verbindung zur Datenbank hergestellt werden.");
printf("[MYSQL] Starte neuen Verbindungsversuch (TTL: %d).",ttl-1);
return MySQL_SetupConnection(ttl-1);
}
else
{
//Abbrechen und Server ausschalten:
print("[MYSQL] Es konnte keine Verbindung zur Datenbank hergestellt werden.");
print("[MYSQL] Bitte überprüfen Sie die Verbindungsdaten");
print("[MYSQL] Der Server wird automatisch Heruntergefahren");
return SendRconCommand("exit");
}
}
printf("[MYSQL] Die Verbindung zur Datenbank wurde erfolgreich hergestellt! Handle: %d",handle);
return 1;
}
public OnUserCheck(playerid)
{
if(cache_get_row_count() ==0)
{
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"Account Erstellung","Bitte Erstelle dir ein Account","Erstellen","Verlassen");
}
{
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Anmeldung","Bitte Logge dich mit dein Password ein","Einloggen","Verlassen");
}
return 1;
}
public OnUserRegister(playerid)
{
PlayerInfo[playerid][p_id] = cache_insert_id();
SendClientMessage(playerid,grün,"[Konto] Account Erstellung erfolgreich");
return 1;
}
public OnUserLogin(playerid)
{
if(cache_get_row_count() == 0)
{
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Anmeldung","Bitte Logge dich mit dein Password ein.\n{0x0000DDFF}Passwort falsch eingetippt.","Anmelden","Verlassen");
}
else
{
PlayerInfo[playerid][p_id] = cache_get_field_content_int(0,"id",handle);
PlayerInfo[playerid][pLevel] = cache_get_field_content_int(0,"level",handle);
PlayerInfo[playerid][pAlevel] = cache_get_field_content_int(0,"alevel",handle);
PlayerInfo[playerid][pMoney] = cache_get_field_content_int(0,"money",handle);
PlayerInfo[playerid][pLoggedIn] =true;
SendClientMessage(playerid,blau, "[Konto] Eingeloggt.");
GivePlayerMoney(playerid,PlayerInfo[playerid][pMoney]);
}
return 1;
}
stock SaveUserStats(playerid)
{
if(!PlayerInfo[playerid][pLoggedIn])return 1;
new query[256];
mysql_format(handle,query,sizeof(query), "UPDATE Accounts SET level = '%d', alevel ='%d', money'%d' WHERE id = '%d' ",PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pAlevel],PlayerInfo[playerid][pMoney]);
mysql_pquery(handle,query);
return 1;
}
Alles anzeigen
Mir fehlt folgendes:
(libmysqlclient_r.so.16: cannot open shared object file: No such file or directory)
Ich habe jetzt in der Server.CFG folgendes drin stehen bei Linux-Server:
echo Executing Server Config...
lanmode 0
rcon_password
hostname TestServer
gamemode0 WB 1
filterscripts cameditor
announce 0
plugins mysql_static.so streamer.so sscanf.so filemanager.so
announce 0
query 1
weburl www.sa-mp.com
maxnpc 0
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
password
maxplayers 40
bind 85.131.231.198
bindip 85.131.231.198
port 7777
Alles anzeigen
Aber in der Server-log Datei steht nun:
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[06:34:29] password = "" (string)
[06:34:29]
[06:34:29] Server Plugins
[06:34:29] --------------
[06:34:29] Loading plugin: mysql_static.so
[06:34:29] >> plugin.mysql: R34 successfully loaded.
[06:34:29] Loaded.
[06:34:29] Loading plugin: streamer.so
[06:34:29]
*** Streamer Plugin v2.6.1 by Incognito loaded ***
[06:34:29] Loaded.
[06:34:29] Loading plugin: sscanf.so
[06:34:29]
[06:34:29] ===============================
[06:34:29] sscanf plugin loaded.
[06:34:29] Version: 2.8.1
[06:34:29] (c) 2012 Alex "Y_Less" Cole
[06:34:29] ===============================
[06:34:29] Loaded.
[06:34:29] Loading plugin: filemanager.so
[06:34:29] ******************
[06:34:29] ** FILE MANAGER **
[06:34:29] ** Loaded **
[06:34:29] ** Version 1.1 **
[06:34:29] ******************
[06:34:29] Loaded.
[06:34:29] Loaded 4 plugins.
[06:34:29]
[06:34:29] Filterscripts
[06:34:29] ---------------
[06:34:29] Loading filterscript 'cameditor.amx'...
[06:34:29]
--------------------------------------
[06:34:29] CamEditor by Drebin
[06:34:29] --------------------------------------
[06:34:29] Loaded 1 filterscripts.
[06:34:29] Script[gamemodes/WB.amx]: Run time error 19: "File or function is not found"
[06:34:29] Number of vehicle models: 0
Alles anzeigen
Was habe ich falsch gemacht?
@Jeffry Den Link vom Mysql R35 ist das plugin nicht drin nur der Source Code
Hier die Log:
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[11:29:24] password = "" (string)
[11:29:24]
[11:29:24] Server Plugins
[11:29:24] --------------
[11:29:24] Loading plugin: crashdetect.so
[11:29:24] crashdetect v4.5.1 is OK.
[11:29:24] Loaded.
[11:29:24] Loading plugin: mysql_static.so
[11:29:24] >> plugin.mysql: R39-2 successfully loaded.
[11:29:24] Loaded.
[11:29:24] Loading plugin: streamer.so
[11:29:24]
*** Streamer Plugin v2.6.1 by Incognito loaded ***
[11:29:24] Loaded.
[11:29:24] Loading plugin: sscanf.so
[11:29:24]
[11:29:24] ===============================
[11:29:24] sscanf plugin loaded.
[11:29:24] Version: 2.8.1
[11:29:24] (c) 2012 Alex "Y_Less" Cole
[11:29:24] ===============================
[11:29:24] Loaded.
[11:29:24] Loaded 4 plugins.
[11:29:24]
[11:29:24] Filterscripts
[11:29:24] ---------------
[11:29:24] Loading filterscript 'cameditor.amx'...
[11:29:25]
--------------------------------------
[11:29:25] CamEditor by Drebin
[11:29:25] --------------------------------------
[11:29:25] Loaded 1 filterscripts.
[11:29:25] [debug] Run time error 19: "File or function is not found"
[11:29:25] [debug] The following natives are not registered:
[11:29:25] [debug] mysql_store_result
[11:29:25] [debug] mysql_num_rows
[11:29:25] [debug] mysql_fetch_row_format
[11:29:25] [debug] mysql_free_result
[11:29:25] [debug] mysql_real_escape_string
[11:29:25] [debug] mysql_fetch_field_row
[11:29:25] [debug] mysql_debug
[11:29:25] [debug] mysql_insert_id
[11:29:25] [debug] mysql_fetch_int
[11:29:25] [debug] dir_exists
[11:29:25] [debug] dir_create
[11:29:25] [debug] file_write
[11:29:25] Script[gamemodes/WB.amx]: Run time error 19: "File or function is not found"
[11:29:25] Number of vehicle models: 0
Alles anzeigen
Ich brauche Mysql Plugin R35
Deklariert habe ich es ja aber leider immer noch der fehler.
Guten Morgen.
Habe versucht ein Repairsystem mit Enum zu schreiben als Filterscript.
So sieht es aus:
#include <a_samp>
#include<ocmd.inc>
#define rot 0xFF0000FF
new reparieren;
enum repairpoint{
Float: r_x,
Float:r_y,
Float:r_z
}
new repair[][repairpoint]={
{1260.8733,-1655.7163,19.7483}//repair1
};
main()
{
print("\n----------------------------------");
print(" ");
print("----------------------------------\n");
}
public OnGameModeInit()
{
SetGameModeText("");
//icon für Repair:
for(new i=0; i<sizeof(repair); i++)
{
CreatePickup(1239,1,repair[i][r_x],repair[i][r_y],repair[i][r_z]);
Create3DTextLabel("Um das Fahrzeug zu reparieren benutzen sie bitte /reparieren.\nDas Reparieren kostet dich nur 60$",rot,repair[i][r_x],repair[i][r_y],repair[i][r_z],10,0,1);
}
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
ocmd:reparieren(playerid,params[])
{
if(!IsPlayerInAnyVehicle(playerid))
return 1;
new istimpunkt=false;
for(new i=0; i<sizeof(repair); i++)
{
if(!IsPlayerInRangeOfPoint(playerid,2,repair[i][r_x],repair[i][r_y],repair[i][r_z]))
continue;
istimpunkt=true;
}
if(istimpunkt)
{
new VID= GetPlayerVehicleID(playerid);
SetVehicleHealth(VID,1000);
RepairVehicle(VID);
GivePlayerMoney(playerid,-60);
SendClientMessage(playerid,rot,"Du hast dein Fahrzeug für 60$Repariert!");
}
else
{
SendClientMessage(playerid,rot,"Du bist nicht im Reparier-Punkt.");
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
Alles anzeigen
Das Problem ist nun das immer bei Zeile: 247: repairpoint.p(248) : warning 203: symbol is never used: "reparieren" steht direkt nach dem } bei zeile 246:
ist doch egal welches Script. Wenn es auf einer Mysql Version von: mysql R35 basiert
Serverlog datei:
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[08:39:10] password = "" (string)
[08:39:10]
[08:39:10] Server Plugins
[08:39:10] --------------
[08:39:10] Loading plugin: mysql_static.so
[08:39:10] >> plugin.mysql: R39-2 successfully loaded.
[08:39:10] Loaded.
[08:39:10] Loading plugin: streamer.so
[08:39:10]
*** Streamer Plugin v2.6.1 by Incognito loaded ***
[08:39:10] Loaded.
[08:39:10] Loading plugin: sscanf.so
[08:39:10]
[08:39:10] ===============================
[08:39:10] sscanf plugin loaded.
[08:39:10] Version: 2.8.1
[08:39:10] (c) 2012 Alex "Y_Less" Cole
[08:39:10] ===============================
[08:39:10] Loaded.
[08:39:10] Loaded 3 plugins.
[08:39:11]
[08:39:11] Filterscripts
[08:39:11] ---------------
[08:39:11] Loading filterscript 'cameditor.amx'...
[08:39:11]
--------------------------------------
[08:39:11] CamEditor by Drebin
[08:39:11] --------------------------------------
[08:39:11] Loaded 1 filterscripts.
[08:39:11] Script[gamemodes/WB.amx]: Run time error 19: "File or function is not found"
[08:39:11] Number of vehicle models: 0
Alles anzeigen
Das Script wurde mit Mysql R35 geschrieben
Hier ein kleinen Beweis:
> MySQL plugin R5 successfully loaded.
Guten Morgen.
Habe derzeit folgendes Problem:
Server Startet ganz normal aber sobald er Starteten will kommt immer in der Liste folgender fehler:
" Failed (./libmysqlclient_r.so.16: invalid ELF header)" und das habe ich ja bei mir schon auf den Nitrado server aber er will das Script immer noch nicht annehmen
Das sind normal auch die richtigen
Guten Abend.
Ich versuche grade irgendwie Pure Roleplay relased von Samet zum laufen zu bringen. aber egal wie ich es mache er macht denn Server nach dem Alles geladen ist direkt dicht.
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3x, (C)2005-2013 SA-MP Team
[11:02:50] filterscripts = "" (string)
[11:02:50]
[11:02:50] Server Plugins
[11:02:50] --------------
[11:02:50] Loading plugin: streamer
[11:02:50]
*** Streamer Plugin v2.6.1 by Incognito loaded ***
[11:02:50] Loaded.
[11:02:50] Loading plugin: mysql
[11:02:51] Failed.
[11:02:51] Loading plugin: sscanf
[11:02:51]
[11:02:51] ===============================
[11:02:51] sscanf plugin loaded.
[11:02:51] (c) 2009 Alex "Y_Less" Cole
[11:02:51] 0.3d-R2 500 Players "dnee"
[11:02:51] ===============================
[11:02:51] Loaded.
[11:02:51] Loaded 2 plugins.
[11:02:51] I couldn't load any gamemode scripts. Please verify your server.cfg
[11:02:51] It needs a gamemode0 line at the very least.
Alles anzeigen
2: Ich kann die Datenbank vom Script nicht bei mir auf der Localendatenbank packen. da kommt immer nur:
[Err] 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 '--------------------------------------------------
--
-- Tabellenstruktur für ' at line 4
[Err] --
-- Daten für Tabelle `pRP_stuff`
--
--------------------------------------------------
--
-- Tabellenstruktur für Tabelle `pRP_xmasobjects`
--
CREATE TABLE IF NOT EXISTS `pRP_xmasobjects` (
`id` int(10) NOT NULL,
`ObjectID` int(10) NOT NULL,
`sperreX` float(10,4) NOT NULL,
`sperreY` float(10,4) NOT NULL,
`sperreZ` float(10,4) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
[Msg] Finished - Unsuccessfully
Alles anzeigen
was habe ich falsch gemacht?
Guten Morgen
@Xiodac vorerst mal ein danke schön aber habe nun folgendes Problem:
Wenn ich versuche den Server zu Starten geht auch erst alles normal doch dann nach dem das Server mit dem Script fast ganz geladen ist wird mir gesagt dass,das 2Plugins nicht die richtige version haben und daher nicht geladen werden.
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3x, (C)2005-2013 SA-MP Team
[07:32:00] filterscripts = "" (string)
[07:32:00]
[07:32:00] Server Plugins
[07:32:00] --------------
[07:32:00] Loading plugin: streamer
[07:32:00]
*** Streamer Plugin v2.6.1 by Incognito loaded ***
[07:32:00] Loaded.
[07:32:00] Loading plugin: mysql
[07:32:00] >> plugin.mysql: R33 successfully loaded.
[07:32:00] Loaded.
[07:32:00] Loading plugin: sscanf
[07:32:00]
[07:32:00] ===============================
[07:32:00] sscanf plugin loaded.
[07:32:00] (c) 2009 Alex "Y_Less" Cole
[07:32:00] 0.3d-R2 500 Players "dnee"
[07:32:00] ===============================
[07:32:00] Loaded.
[07:32:00] Loaded 3 plugins.
[07:32:00]
[07:32:00] Filterscripts
[07:32:00] ---------------
[07:32:00] Loaded 0 filterscripts.
[07:32:00] ... GamemodeInit
[07:32:00] SERVER: Der Server ist nicht auf der IP '85.190.140.214' gebinded!
[07:32:00] Server wird heruntergefahren ...
[07:32:00] Samet Roleplay It's Possible. It's Possible
[07:32:00] --------------------------------
[07:32:00] Dieses Script [Version: It's Possible. It's Possible] steht unter Datenschutz und darf
[07:32:00] nur von dem jenigen Besitzer benutzt/verwendet werden.
[07:32:00] Falls diese Richtlinien nicht eingehalten werden,werden
[07:32:00] Rechtlicheschritte gegen sie eingeleitet. Script von S A M E T.
[07:32:00] © Copyright by sR
[07:32:00] --------------------------------
[07:32:00] Samet Roleplay It's Possible. It's Possible
[07:32:00] Number of vehicle models: 0
[07:32:00] --- Server Shutting Down.
[07:32:00] --------------------------------
[07:32:00] Speichern ...
[07:32:00] - Gangzonen gespeichert 14/14 -
[07:32:00] - Drogenpflanzen gespeichert 0/50 -
[07:32:00] - Funkmasten gespeichert 0/50 -
[07:32:00] - Werbetafeln gespeichert 22/22 -
[07:32:00] - Rennen gespeichert 0/50 -
[07:32:00] - Schwarzmärkte gespeichert 1/20 -
[07:32:00] - Stuff wurde gespeichert -
[07:32:00] - Fraktionsvewaltungen gespeichert 18/18 -
[07:32:00] - Gutscheine 1/50 -
[07:32:00] - Häuser gespeichert 1/300 -
[07:32:00] - Fraktionsfahrzeuge gespeichert 0/500 -
[07:32:00] - Businesse gespeichert 1/100 -
[07:32:00] - Organisationen gespeichert 0/10 -
[07:32:00] - Partei gespeichert 0/5 -
[07:32:00] Speicherung erfolgreich ...
[07:32:00] --------------------------------
[07:32:00] - Server brauchte für das Runterfahren 17 ms -
[07:32:00] GamemodeExit ...
[07:32:00]
*** Streamer Plugin v2.6.1 by Incognito unloaded ***
[07:32:00] plugin.mysql: Unloading plugin...
[07:32:00] plugin.mysql: Plugin unloaded.
[07:32:00]
[07:32:00] ===============================
[07:32:00] sscanf plugin unloaded.
[07:32:00] ===============================
Alles anzeigen
Leider kann ich die Datenbank bei mir auf den Homeserver nicht packen
Guten Morgen
Derzeit bin ich auf der suche wie man WBB 4.1.8 Designe Coden lernen kann.
Leider finde ich nur für wbb4 aber nicht für wbb4
wäre dankbar für antworten
gibt es auch ein digitales Häusersystem?
Da Sie ja von analog gesprochen haben