Beiträge von Crumb

    Hallo Brotfisch.
    Nach langem Googeln habe ich nix gefunden, deswegen frage ich mal hier nach.


    Weiß einer, wo ich den Include für Pawno Namens offset herbekomme? Schonmal danke für eure Antworten :)


    Mit freundlichen Grüßen,
    Kruemel.

    Hallo Brotfisch.
    Ich scripte wie ihr in meiner Signatur sehen könnt gerade ein Selfmade in Las Ventruas.


    Nun möchte ich Vorschläge von euch einsammeln. Manche von euch haben bestimmt ein paar Gute Ideen, die ins Script eingebaut werden können. Besondere Ideen die auch möglich sind. Ich möchte einfach versuchen, eure Ideen ins Script einzubauen.


    Ihr müsst nur bedenken, ich bin nicht der aller beste Scripter. Das heißt auch Ideen, die auch für normale Scripter (keine Profis) möglich sind. Ich freue mich auf eure Ideen.


    Mit freundlichen Grüßen,
    Kruemel

    Ja, mir kann man PNs schicken.


    Server LoG:
    [13:15:39] Loading plugin: 23_mysql1.so
    [13:15:39]


    > MySQL plugin R6 successfully loaded.


    [13:15:39] Loaded.
    [13:15:39] Loading plugin: 25_mysql2.so
    [13:15:39]


    > MySQL plugin R7 successfully loaded.


    [13:15:39] Loaded.
    [13:15:39] Loading plugin: 4_crashdetect.so
    [13:15:39] crashdetect v4.7.3 is OK.
    [13:15:39] Loaded.
    [13:15:39] Loading plugin: 24_AntiCheat.so
    [13:15:39] Failed (libsampgdk.so.2: cannot open shared object file: No such file or directory)
    [13:15:39] Loading plugin: 26_audio.so
    [13:15:39]


    *** Audio Plugin v0.5 by Incognito loaded ***


    [13:15:39] Loaded.
    [13:15:39] Loading plugin: 21_streamer.so
    [13:15:39]


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


    [13:15:39] Loaded.
    [13:15:39] Loading plugin: 20_streamer.so
    [13:15:39]


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


    [13:15:39] Loaded.
    [13:15:39] Loading plugin: 8_mapandreas.so
    [13:15:39] Loaded.
    [13:15:39] Loading plugin: 22_mysql.so
    [13:15:39] SA:MP MySQL Plugin v2.1.1 Loaded.
    [13:15:39] Loaded.
    [13:15:39] Loading plugin: 2_sscanf.so
    [13:15:39] [MySQL] Thread running. Threadsafe: Yes.
    [13:15:39]


    [13:15:39] ===============================


    [13:15:39] sscanf plugin loaded.


    [13:15:39] (c) 2009 Alex "Y_Less" Cole


    [13:15:39] 0.3d-R2 500 Players "dnee"


    [13:15:39] ===============================


    [13:15:39] Loaded.
    [13:15:39] Loaded 10 plugins.


    [13:15:39]
    [13:15:39] Filterscripts
    [13:15:39] ---------------
    [13:15:39] Loaded 0 filterscripts.


    [13:15:39] *** Streamer Plugin: Include file version (0x26104) does not match plugin version (0x26002) (script needs to be recompiled with the latest include file)
    [13:15:39] [debug] Run time error 19: "File or function is not found"
    [13:15:39] [debug] The following natives are not registered:
    [13:15:39] [debug] regex_build
    [13:15:39] [debug] regex_match_exid
    [13:15:39] Script[gamemodes/script.amx]: Run time error 19: "File or function is not found"
    [13:15:39] Number of vehicle models: 0


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


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


    [13:21:52] filterscripts = "" (string)
    [13:21:52]
    [13:21:52] Server Plugins
    [13:21:52] --------------
    [13:21:52] Loading plugin: 27_mysql.so
    [13:21:52]


    > MySQL plugin R5 successfully loaded.


    [13:21:52] Loaded.
    [13:21:52] Loading plugin: 23_mysql1.so
    [13:21:52]


    > MySQL plugin R6 successfully loaded.


    [13:21:52] Loaded.
    [13:21:52] Loading plugin: 25_mysql2.so
    [13:21:52]


    > MySQL plugin R7 successfully loaded.


    [13:21:52] Loaded.
    [13:21:52] Loading plugin: 4_crashdetect.so
    [13:21:52] crashdetect v4.7.3 is OK.
    [13:21:52] Loaded.
    [13:21:52] Loading plugin: 24_AntiCheat.so
    [13:21:52] Failed (libsampgdk.so.2: cannot open shared object file: No such file or directory)
    [13:21:52] Loading plugin: 26_audio.so
    [13:21:52]


    *** Audio Plugin v0.5 by Incognito loaded ***


    [13:21:52] Loaded.
    [13:21:52] Loading plugin: 21_streamer.so
    [13:21:52]


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


    [13:21:52] Loaded.
    [13:21:52] Loading plugin: 20_streamer.so
    [13:21:52]


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


    [13:21:52] Loaded.
    [13:21:52] Loading plugin: 8_mapandreas.so
    [13:21:52] Loaded.
    [13:21:52] Loading plugin: 22_mysql.so
    [13:21:52] SA:MP MySQL Plugin v2.1.1 Loaded.
    [13:21:52] Loaded.
    [13:21:52] Loading plugin: 2_sscanf.so
    [13:21:52] [MySQL] Thread running. Threadsafe: Yes.
    [13:21:52]


    [13:21:52] ===============================


    [13:21:52] sscanf plugin loaded.


    [13:21:52] (c) 2009 Alex "Y_Less" Cole


    [13:21:52] 0.3d-R2 500 Players "dnee"


    [13:21:52] ===============================


    [13:21:52] Loaded.
    [13:21:52] Loaded 10 plugins.


    [13:21:52]
    [13:21:52] Filterscripts
    [13:21:52] ---------------
    [13:21:52] Loaded 0 filterscripts.


    [13:21:52] *** Streamer Plugin: Include file version (0x26104) does not match plugin version (0x26002) (script needs to be recompiled with the latest include file)
    [13:21:52] [debug] Run time error 19: "File or function is not found"
    [13:21:52] [debug] The following natives are not registered:
    [13:21:52] [debug] regex_build
    [13:21:52] [debug] regex_match_exid
    [13:21:52] Script[gamemodes/script.amx]: Run time error 19: "File or function is not found"
    [13:21:52] Number of vehicle models: 0

    Okay. Ich möchte nun N für den Motor und Y für das Licht haben. Muss ich dann bei den Motorn zum Beispiel einfach KEY_ANALOG_DOWN hinschreiben KEY_NO** ?

    Hey Breadfish.
    Im Script was ich gerade ein bisschen editen möchte ist eingestellt, dass man mit NUM 2 den Motor starten kann und mit NUM 8 das Licht anmachen kann. Doch wie kann ich mit dem folgenden Codes mit normaler 2 Taste und normaler 8 Taste die Funktionen machen?


    Motor:
    if((newkeys == KEY_ANALOG_DOWN)&&(IsPlayerInAnyVehicle(playerid)))
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(Motor[vehicleid] == false && IsPlayerDriver(playerid))
    {
    new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    new string[128];
    format(string,sizeof(string),"%s startet den Motor.",SpielerName(playerid));
    SendClientMessageInRange(playerid,string,cLila,50);
    Motor[vehicleid] = true;
    return 1;
    }
    if(Motor[vehicleid] == true && IsPlayerDriver(playerid))
    {
    new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    new string[128];
    format(string,sizeof(string),"%s schaltet den Motor aus.",SpielerName(playerid));
    SendClientMessageInRange(playerid,string,cLila,50);
    Motor[vehicleid] = false;
    return 1;
    }
    }


    Licht:
    if((newkeys == KEY_ANALOG_UP)&&(IsPlayerInAnyVehicle(playerid)))
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(Licht[vehicleid] == false && IsPlayerDriver(playerid))
    {
    new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vehicleid,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
    Echo(playerid,cRot,"Licht an.");
    Licht[vehicleid] = true;
    return 1;
    }
    if(Licht[vehicleid] == true && IsPlayerDriver(playerid))
    {
    new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vehicleid,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
    Echo(playerid,cRot,"Licht aus.");
    Licht[vehicleid] = false;
    return 1;
    }
    }
    return 1;
    }