Beiträge von Helti

    So jetzt funktioniert das Script, jedoch habe ich ein Problem.
    Und zwar wird eine Spalte für den Benutzer angefertigt, jedoch wird darin nichts gespeichert. geladen jedoch schon.


    Bitte um Hilfe.


    MfG


    Helti

    ----------
    Loaded log file: "server_log.txt".
    ----------


    SA-MP Dedicated Server
    ----------------------
    v0.3x, (C)2005-2013 SA-MP Team


    [21:24:09]
    [21:24:09] Server Plugins
    [21:24:09] --------------
    [21:24:09] Loading plugin: streamer
    [21:24:09]


    *** Streamer Plugin v2.6.1 by Incognito loaded ***


    [21:24:09] Loaded.
    [21:24:09] Loading plugin: sscanf2
    [21:24:09]


    [21:24:09] ===============================


    [21:24:09] sscanf plugin loaded.


    [21:24:09] Version: 2.8.1


    [21:24:09] (c) 2012 Alex "Y_Less" Cole


    [21:24:09] ===============================


    [21:24:09] Loaded.
    [21:24:09] Loading plugin: mysql
    [21:24:09]


    > MySQL plugin R5 successfully loaded.


    [21:24:09] Loaded.
    [21:24:09] Loaded 3 plugins.


    [21:24:09]
    [21:24:09] Filterscripts
    [21:24:09] ---------------
    [21:24:09] Loading filterscript 'Filterscript_Interiors.amx'...
    [21:24:09]
    --------------------------------------
    [21:24:09] ShoX(X) aka. Vegas - Interior Script V.1.1 wurde erfolgreich geladen!
    [21:24:09] --------------------------------------


    [21:24:09] Loading filterscript 'Blitzer.amx'...
    [21:24:09]
    --------------------------------------
    [21:24:09] Blitzersystem - sa-mp.de
    [21:24:09] --------------------------------------


    [21:24:09] Loading filterscript 'Object.amx'...
    [21:24:09]
    --------------------------------------
    [21:24:09] Blank Filterscript by your name here
    [21:24:09] --------------------------------------


    [21:24:09] Loading filterscript 'TD.amx'...
    [21:24:09]
    --------------------------------------
    [21:24:09] Text Draw Editor 1.0RC2 by Zamaroht for SA-MP 0.3 Loaded.
    [21:24:09] --------------------------------------


    [21:24:09] Loading filterscript 'cameditor.amx'...
    [21:24:09]
    --------------------------------------
    [21:24:09] CamEditor by Drebin
    [21:24:09] --------------------------------------


    [21:24:09] Loaded 5 filterscripts.


    [21:24:09] MySql: Verbindung zur Datenbank: gta wird hergestellt...
    [21:24:09] MySql: Verbindung zur Datenbank: gta erfolgreich hergestellt...
    [21:24:09] 2076 Objekte wurden geladen...
    [21:24:09] -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
    [21:24:09] Roleplay-SelfMade
    [21:24:09] v0.0.3a geladen...
    [21:24:09] Copyright by Helti
    [21:24:09] -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
    [21:24:09] Number of vehicle models: 24

    Hallo Breadfish,


    ich habe heute mein SelfMade auf MySQL umgeschrieben. hat auch alles einwandfrei funtkioniert.
    Als ich es gerade eben versuchen wollte.
    Ging das Login/Register-System nicht.


    Der Server verbindet mit der Datenbank.


    Danke im Vorraus für Hilfe


    xX_Helt_Xx


    Ich verwende die Includes von G-Styleez(+Plugin) und das Vereinfachungsinclude von RFT

    Hallo Breadfish,


    ich wollte bei meinem GF Edit einen Befehl einbauen, mit dem sich der Fahrzeugbesitzer abfragen lässt.
    Habe schon verschiedenes ausprobiert, jedoch funktioniert das nicht.



    Hier mal ein Auszug aus dem CarSystem
    public OnPlayerCarLogin(playerid)
    {
    for(new x = 0; x < MaxVeh; x++)
    {
    if(!Dtc_PlayerHaveCar[playerid][x])
    {
    new string2[128];
    new playername2[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername2, sizeof(playername2));
    format(string2, sizeof(string2), "/Autos/%s%d.dtcar", playername2,x);
    new File: UserFile = fopen(string2, io_read);
    if (UserFile)
    {
    Dtc_PlayerHaveCar[playerid][x] = 1;
    new key[ 256 ] , val[ 256 ];
    new Data[ 256 ];
    while ( fread( UserFile , Data , sizeof( Data ) ) )
    {
    key = ini_GetKey( Data );
    if( strcmp( key , "CarId" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarId] = strval( val ); }
    if( strcmp( key , "CarModel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarModel] = strval( val ); }
    if( strcmp( key , "CarPos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPos_x] = floatstr( val ); }
    if( strcmp( key , "CarPos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPos_y] = floatstr( val ); }
    if( strcmp( key , "CarPos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPos_z] = floatstr( val ); }
    if( strcmp( key , "CarRotate" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarRotate] = floatstr( val ); }
    if( strcmp( key , "CarNitro" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarNitro] = strval( val ); }
    if( strcmp( key , "CarHyd" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarHyd] = strval( val ); }
    if( strcmp( key , "CarWheel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarWheel] = strval( val ); }
    if( strcmp( key , "CarAusp" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarAusp] = strval( val ); }
    if( strcmp( key , "CarSideL" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarSideL] = strval( val ); }
    if( strcmp( key , "CarSideR" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarSideR] = strval( val ); }
    if( strcmp( key , "CarFB" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarFB] = strval( val ); }
    if( strcmp( key , "CarRB" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarRB] = strval( val ); }
    if( strcmp( key , "CarSpoiler" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarSpoiler] = strval( val ); }
    if( strcmp( key , "CarRoof" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarRoof] = strval( val ); }
    if( strcmp( key , "CarHood" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarHood] = strval( val ); }
    if( strcmp( key , "CarVents" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarVents] = strval( val ); }
    if( strcmp( key , "CarLamps" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarLamps] = strval( val ); }
    if( strcmp( key , "CarPJ" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPJ] = strval( val ); }
    if( strcmp( key , "CarC1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarC1] = strval( val ); }
    if( strcmp( key , "CarC2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarC2] = strval( val ); }
    if( strcmp( key , "Preis" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPreis] = strval( val ); }
    }
    fclose(UserFile);
    PlayerCarSpawn(playerid,x);
    }
    }
    }
    }

    public OnPlayerCarLogin(playerid)
    {
    for(new x = 0; x < MaxVeh; x++)
    {
    if(!Dtc_PlayerHaveCar[playerid][x])
    {
    new string2[128];
    new playername2[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername2, sizeof(playername2));
    format(string2, sizeof(string2), "/Autos/%s%d.dtcar", playername2,x);
    new File: UserFile = fopen(string2, io_read);
    if (UserFile)
    {
    Dtc_PlayerHaveCar[playerid][x] = 1;
    new key[ 256 ] , val[ 256 ];
    new Data[ 256 ];
    while ( fread( UserFile , Data , sizeof( Data ) ) )
    {
    key = ini_GetKey( Data );
    if( strcmp( key , "CarId" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarId] = strval( val ); }
    if( strcmp( key , "CarModel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarModel] = strval( val ); }
    if( strcmp( key , "CarPos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPos_x] = floatstr( val ); }
    if( strcmp( key , "CarPos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPos_y] = floatstr( val ); }
    if( strcmp( key , "CarPos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPos_z] = floatstr( val ); }
    if( strcmp( key , "CarRotate" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarRotate] = floatstr( val ); }
    if( strcmp( key , "CarNitro" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarNitro] = strval( val ); }
    if( strcmp( key , "CarHyd" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarHyd] = strval( val ); }
    if( strcmp( key , "CarWheel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarWheel] = strval( val ); }
    if( strcmp( key , "CarAusp" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarAusp] = strval( val ); }
    if( strcmp( key , "CarSideL" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarSideL] = strval( val ); }
    if( strcmp( key , "CarSideR" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarSideR] = strval( val ); }
    if( strcmp( key , "CarFB" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarFB] = strval( val ); }
    if( strcmp( key , "CarRB" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarRB] = strval( val ); }
    if( strcmp( key , "CarSpoiler" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarSpoiler] = strval( val ); }
    if( strcmp( key , "CarRoof" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarRoof] = strval( val ); }
    if( strcmp( key , "CarHood" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarHood] = strval( val ); }
    if( strcmp( key , "CarVents" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarVents] = strval( val ); }
    if( strcmp( key , "CarLamps" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarLamps] = strval( val ); }
    if( strcmp( key , "CarPJ" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPJ] = strval( val ); }
    if( strcmp( key , "CarC1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarC1] = strval( val ); }
    if( strcmp( key , "CarC2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarC2] = strval( val ); }
    if( strcmp( key , "Preis" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPreis] = strval( val ); }
    }
    fclose(UserFile);
    PlayerCarSpawn(playerid,x);
    }
    }
    }
    }


    Bitte immer noch um Hilfe

    SA-MP Dedicated Server
    ----------------------
    v0.3e, (C)2005-2012 SA-MP Team


    [22:22:59]
    [22:22:59] Server Plugins
    [22:22:59] --------------
    [22:22:59] Loading plugin: streamer.so
    [22:22:59]


    *** Streamer Plugin v2.5.2 by Incognito loaded ***


    [22:22:59] Loaded.
    [22:22:59] Loading plugin: mysql.so
    [22:22:59] SA:MP MySQL Plugin v2.1.1 Loaded.
    [22:22:59] Loaded.
    [22:22:59] Loading plugin: MapAndreas.so
    [22:22:59] Loaded.
    [22:22:59] Loaded 3 plugins.


    [22:22:59] [MySQL] Thread running. Threadsafe: Yes.
    [22:22:59]
    [22:22:59] Ban list
    [22:22:59] --------
    [22:22:59] Loaded: samp.ban
    [22:22:59]
    [22:22:59]
    [22:22:59] Filterscripts
    [22:22:59] ---------------
    [22:22:59] Loading filterscript 'Filterscript_Interiors.amx'...
    [22:22:59]
    --------------------------------------
    [22:22:59] ShoX(X) aka. Vegas - Interior Script V.1.1 wurde erfolgreich geladen!
    [22:22:59] --------------------------------------


    [22:22:59] Loaded 1 filterscripts.


    [22:22:59] Script[gamemodes/hd.amx]: Run time error 19: "File or function is not found"
    [22:22:59] Number of vehicle models: 0

    SA-MP Dedicated Server
    ----------------------
    v0.3e, (C)2005-2012 SA-MP Team


    [22:16:28]
    [22:16:28] Server Plugins
    [22:16:28] --------------
    [22:16:28] Loading plugin: streamer.so
    [22:16:28]


    *** Streamer Plugin v2.5.2 by Incognito loaded ***


    [22:16:28] Loaded.
    [22:16:28] Loading plugin: mysql.so
    [22:16:28] SA:MP MySQL Plugin v2.1.1 Loaded.
    [22:16:28] Loaded.
    [22:16:28] Loading plugin: mapAndreas
    [22:16:28] Failed (plugins/mapAndreas: cannot open shared object file: No such file or directory)
    [22:16:28] Loaded 2 plugins.


    [22:16:28] [MySQL] Thread running. Threadsafe: Yes.
    [22:16:28]
    [22:16:28] Ban list
    [22:16:28] --------
    [22:16:28] Loaded: samp.ban
    [22:16:28]
    [22:16:28]
    [22:16:28] Filterscripts
    [22:16:28] ---------------
    [22:16:28] Loading filterscript 'Filterscript_Interiors.amx'...
    [22:16:28]
    --------------------------------------
    [22:16:28] ShoX(X) aka. Vegas - Interior Script V.1.1 wurde erfolgreich geladen!
    [22:16:28] --------------------------------------


    [22:16:28] Loaded 1 filterscripts.


    [22:16:28] Script[gamemodes/hd.amx]: Run time error 19: "File or function is not found"
    [22:16:28] Number of vehicle models: 0

    Hallo Breadfish,


    ich und mein Kollege sind gerade dabei unter Script auf MySql umzuschreiben.
    Wir sind genaustens dieser Anweisung gefolgt:
    [ SCRIPTING ] MySQL (Installation, Zugriff, Einstellungen, Login & Register Beispiel)


    Das Script hatte beim Compailen keinen Error.
    Jetzt haben wir das Problem, dass das Script sich nicht starten lässt.
    Script[gamemodes/Script.amt]: Run time error 19: "File or function is not found"


    Wer kann uns helfen?
    Was könnten wir falsch gemacht haben?


    Danke im Vorraus


    xX_Helt_Xx

    Hallo Breadfish,


    wie kann ich einen Healpoint erschaffen.
    Durch denn man durchläuft und dann 100HP bekommt
    Habe schon verschiedenes Versucht hat aber nicht geklappt.
    Der Healpoint ist ein Pickup


    Danke für eure Hilfe im Vorraus



    Helti

    Kannst du nicht einfach mir die license ueberschreiben,wie es sich eig. gehoert. Wenn ich dir schin vertraue. Und du mich dann gnadenlos ober den tisch ziehst


    PS: Du bist nun verpflichtet,uns die aktellste version unseres scriptes zu geben und alles an txt und pwn datein von mir zu loeschen fals du ein schlechtes gewissen hast melde dich doch mal die tage um das mit der vereinbarung zu klaeren


    Mfg


    Helti