Beiträge von BloR-Extasy

    Liebe SAMP-Community,


    Ich habe malwieder ein Problem mit meim Server -.-'.
    Und zwar wenn ein Spieler in ein Auto einsteigt,
    wird er meistens gefreezed.
    Man kann ihn nur entfreezen wenn ein Admin
    /unfreeze eingibt.
    Woran könnte das liegen??
    Wie kann ich es fixen??
    Bitte um Antwort.


    Sollte bis 18:00 noch keine Antwort kommen, kann ich leider erst wieder um 20 Uhr antworten.


    MfG
    Nils

    So :
    Befehl:
    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if(strcmp(cmdtext,"/carradio",true)==0)
    {
    if(IsPlayerInAnyVehicle(playerid))ShowPlayerDialog(playerid,DIALOG_RADIO,DIALOG_STYLE_LIST, "Gute Radiosender", "TechnoBase.FM\nHouseTime.FM\nByte.FM\nILoveRadio.de\nTop100 Station\nDubstep.FM\nRockland Radio\nRauteMusic House\nRauteMusic Club\nRadio ausschalten", "Auswählen", "Beenden");
    else SendClientMessage(playerid,0x00FF00AA,"Du bist in keinem Fahrzeug");StopAudioStreamForPlayer(playerid);
    return 1;
    }
    return 1;
    }
    Ist das Return überflüssig??
    else SendClientMessage(playerid,0x00FF00AA,"Du bist in keinem Fahrzeug");StopAudioStreamForPlayer(playerid);
    return 1;

    Tach Community,
    Ich habe hier ein Problem...
    Und zwar bastel ich zurzeit ein Motorscript für meinen Server.
    Hier mal der Code:
    #include <a_samp>


    //Defines etc.


    #define COLOR_RED 0xFF0000FF
    #define COLOR_GREEEN 0x00FF0000


    new engine,lights,alarm,doors,bonnet,boot,objective;
    new bool:Motor[MAX_VEHICLES]=false;


    //Code:


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" Motor-FS by ExTAsY loaded (v1.0 Beta) ");
    print("--------------------------------------\n");
    return 1;
    }


    for (new i=0; i< MAX_VEHICLES; i++)
    {
    GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(i,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    Motor[i] = false;
    }


    public OnVehicleSpawn(vehicleid)
    {
    GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    Motor[vehicleid] = false;
    return 1;
    }


    if(strcmp(cmdtext, "/engine", true) == 0)
    {
    if(GetPlayerVehicleSeat(playerid) == 0)
    {
    new car = GetPlayerVehicleID(playerid);
    if(GetVehicleModel(car) == 509 || GetVehicleModel(car) == 481 || GetVehicleModel(car) == 510)
    {
    SendClientMessage(playerid, COLOR_RED, "Du sitzt auf einem Fahrrad. Das hat keinen Motor!");
    }
    else if (Motor[car] == false)
    {
    GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(car,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    SendClientMessage(playerid, COLOR_GREEN, "Der Motor wurde erfolgreich gestartet!");
    Motor[car] = true;
    }
    else
    {
    GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(car,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    SendClientMessage(playerid, COLOR_GREEN, "Du hast den Motor gestoppt!);
    Motor[car] = false;
    }
    }
    return 1;
    }
    if(GetVehicleModel(vehicleid) == 509 || GetVehicleModel(vehicleid) == 481 || GetVehicleModel(vehicleid) == 510)
    {
    GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    }

    Das Script hat das Problem, dass wenn ich es kompiliere, eine Fehlermeldung bekomme die Heist "Pawn Compiler Libary funktioniert nichtmehr".
    Woran liegt das (nutze 0.3D)


    MfG
    ExTAsY

    Hey Community,
    Ich habe hier ein paar Probleme mit meinem Radiosystem.
    Code:
    #include <a_samp>
    //-----------------------------------------------------------------------------//
    #define DIALOG_RADIO 1


    if(strcmp(cmdtext, "/radio", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    ShowPlayerDialog(playerid, DIALOG_RADIO,DIALOG_STYLE_LIST, "Internet Radios", "Technobase.FM\nHousetime.FM\nILoveRadio.de\nByteFM\nTOP100 Station\nDubstep.FM\nRockland Radio!\nRauteMusic House\nRauteMusic Club\nRadio Aus", "Weiter", "Abbrechen");
    }
    return 1;
    }
    if(dialogid == DIALOG_RADIO)
    {
    if(response)
    {
    if(listitem == 0)
    {
    SendClientMessage(playerid, 0x00ABFFFF, "Technobase.FM!");
    PlayAudioStreamForPlayer(playerid, "http://listen.technobase.fm/dsl.pls");
    }
    if(listitem == 1)
    {
    SendClientMessage(playerid, 0x00ABFFFF, "Housetime.FM!");
    PlayAudioStreamForPlayer(playerid, "http://www.housetime.fm/wmplayer/");
    }
    if(listitem == 2)
    {
    SendClientMessage(playerid, 0x00ABFFFF, "ILoveRadio!");
    PlayAudioStreamForPlayer(playerid, "http://www.iloveradio.de/listen.pls");
    }
    if(listitem == 3)
    {
    SendClientMessage(playerid, 0x00ABFFFF, "ByteFM!");
    PlayAudioStreamForPlayer(playerid, "http://www.byte.fm/stream/bytefm.pls");
    }
    if(listitem == 4)
    {
    SendClientMessage(playerid, 0x00ABFFFF, "TOP100 Station!");
    PlayAudioStreamForPlayer(playerid, "http://www.top100station.de/switch/top100station.pls");
    }
    if(listitem == 5)
    {
    SendClientMessage(playerid, 0x00ABFFFF, "Dubstep.FM!");
    PlayAudioStreamForPlayer(playerid, "http://dubstep.fm/listen.pls");
    }
    if(listitem == 6)
    {
    SendClientMessage(playerid, 0x00ABFFFF, "Rockland Radio!");
    PlayAudioStreamForPlayer(playerid, "http://freestream.nmdn.net/freestream/download/rocklandradio/frameset.html");
    }
    if(listitem == 7)
    {
    SendClientMessage(playerid, 0x00ABFFFF, "RauteMusic House!");
    PlayAudioStreamForPlayer(playerid, "http://house-high.rautemusik.fm/rm.page//listen.pls");
    }
    if(listitem == 8)
    {
    SendClientMessage(playerid, 0x00ABFFFF, "RauteMusic Club!");
    PlayAudioStreamForPlayer(playerid, "http://club-high.rautemusik.fm/rm.page//listen.asx");
    }
    if(listitem == 9)
    {
    SendClientMessage(playerid, 0x00ABFFFF, "Radio Aus!");
    StopAudioStreamForPlayer(playerid);
    }
    return 1;
    }
    }


    public OnPlayerExitVehicle(playerid, vehicleid)
    {
    StopAudioStreamForPlayer(playerid);
    }
    return 1;
    }
    //-----------------------------------------------------------------------------//


    Compile-Fehler:
    C:\samp\pawno\RadioScript.pwn(9) : error 010: invalid function or declaration
    C:\samp\pawno\RadioScript.pwn(11) : error 010: invalid function or declaration
    C:\samp\pawno\RadioScript.pwn(15) : error 010: invalid function or declaration
    C:\samp\pawno\RadioScript.pwn(17) : error 010: invalid function or declaration
    C:\samp\pawno\RadioScript.pwn(19) : error 010: invalid function or declaration
    C:\samp\pawno\RadioScript.pwn(21) : error 010: invalid function or declaration
    C:\samp\pawno\RadioScript.pwn(26) : error 010: invalid function or declaration
    C:\samp\pawno\RadioScript.pwn(31) : error 010: invalid function or declaration
    C:\samp\pawno\RadioScript.pwn(36) : error 010: invalid function or declaration
    C:\samp\pawno\RadioScript.pwn(41) : error 010: invalid function or declaration
    C:\samp\pawno\RadioScript.pwn(46) : error 010: invalid function or declaration
    C:\samp\pawno\RadioScript.pwn(51) : error 010: invalid function or declaration
    C:\samp\pawno\RadioScript.pwn(56) : error 010: invalid function or declaration
    C:\samp\pawno\RadioScript.pwn(61) : error 010: invalid function or declaration
    C:\samp\pawno\RadioScript.pwn(66) : error 010: invalid function or declaration
    C:\samp\pawno\RadioScript.pwn(71) : error 010: invalid function or declaration
    C:\samp\pawno\RadioScript.pwn(79) : error 010: invalid function or declaration
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    17 Errors.