Beiträge von TheDivine

    Hey Leute ich habe hier so ein filterscript gefunden und möchte die Sirene auf einen Krankenwagen und so setzen da würde ich gerne wissen was die [x] [y] [z] Koordinate sind.


    else if(GetVehicleModel(tmpcar) == 416)
    {
    sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene1[GetPlayerVehicleID(playerid)] = CreateObject(19419,0,0,0,0,0,0,100);
    sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,2.6,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),00.0,0.0,0.6,0,0,0);//Dach sirene
    AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
    UCL[GetPlayerVehicleID(playerid)] = 1;
    SendClientMessage(playerid,0xFF0000,"Blaulicht eingeschalten!");
    return 1;
    }

    ok ich wusste es ja nicht wollte nur helfen ;)


    if(newkeys == KEY_YES)
    {
    if(mysql_ip(playerid) == 0){SendClientMessage(playerid, Rot, "Deine IP ist nicht in der DB Gefunden worden");}
    else SendClientMessage(playerid, Rot, "Deine IP wurde in der Datenbank gefunden!");
    return 1;
    }

    aber schau mal zeile 3 das ist doch falsch oder );} ?

    kann es sein das du die } falsch gesetzt hast
    if(mysql_ip(playerid) == 0){SendClientMessage(playerid, Rot, "Deine IP ist nicht in der DB Gefunden worden");}
    if(mysql_ip(playerid) == 0){SendClientMessage(playerid, Rot, "Deine IP ist nicht in der DB Gefunden worden")};
    :?:


    müssen die klammern nicht immer vor dem ; sein :?:

    Jetzt habe ich 8 Errors


    Da der ganze Gamemode


    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(253) : error 017: undefined symbol "DIALOG_STYLE_IMPUT"
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(258) : error 017: undefined symbol "Register"
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(259) : error 001: expected token: ";", but found "return"
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(262) : warning 217: loose indentation
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(265) : warning 217: loose indentation
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(265) : error 029: invalid expression, assumed zero
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(265) : error 004: function "OnPlayerClickPlayer" is not implemented
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(270) : warning 225: unreachable code
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(270) : error 029: invalid expression, assumed zero
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(270) : error 017: undefined symbol "Register"
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(274) : error 030: compound statement not closed at the end of file (started at line 240)
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    8 Errors.


    ___________________________________________________________


    #include <a_samp>
    #include <dini>


    #define BLAU 0x0087FFFF


    new SHenter;
    new SHexit;


    #define DIALOG_REGISTER 0
    #define DIALOG_LOGIN 1


    main()
    {
    print("\n----------------------------------");
    print("German Roleplay v1.0.0");
    print("----------------------------------\n");
    }


    public OnGameModeInit()
    {
    UsePlayerPedAnims();
    SHexit=CreatePickup(1559,1,390.1157,173.8773,1008.3828);
    SHenter=CreatePickup(1559,1,1481.1228,-1772.3123,18.7958);


    DisableInteriorEnterExits();
    SetGameModeText("German Roleplay");
    AddPlayerClass(0,1663.3906,-2332.3948,13.5469,356.3918,0,0,0,0,0,0); // Pos
    AddPlayerClass(1,1663.3906,-2332.3948,13.5469,356.3918,0,0,0,0,0,0); // Pos

    //********************************************Autos*********************************************
    AddStaticVehicle(541,1663.1593,-2313.5281,13.0880,87.8235,13,8); // Testauto1
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid,1663.3906,-2332.3948,13.5469); // Position
    SetPlayerFacingAngle(playerid,356.3918);
    SetPlayerCameraPos(playerid,1663.3630,-2330.0259,13.5469);
    SetPlayerCameraLookAt(playerid,1663.3906,-2332.3948,13.5469);
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Gib Bitte das gewünschte Paswort ein","Register","Abbrechen");
    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;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if(strcmp(cmdtext,"/kill",true)==0)
    {
    SetPlayerHealth(playerid,0);
    return 1;
    }
    if(strcmp(cmdtext,"/restart",true)==0)
    {
    SendRconCommand("gmx");
    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)
    {
    if(pickupid==SHenter)
    {
    SetPlayerPos(playerid,388.1541,173.6130,1008.3828);
    SetPlayerInterior(playerid,3);
    }
    if(pickupid==SHexit)
    {
    SetPlayerPos(playerid,1481.1545,-1768.9612,18.7958);
    SetPlayerFacingAngle(playerid,356.0003);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    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==0)
    {
    SendClientMessage(playerid,BLAU,"Du hast den Vorgang abgebrochen.");
    Kick(playerid);
    return 1;
    }
    if(response==1)
    {
    if(!strlen(inputtext))
    {
    SendClientMessage(playerid,BLAU,"Das Passwort war nicht lang genug.");
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_IMPUT,"Registrieren","Gib Bitte das gewünschte Paswort ein","Register","Abbrechen");
    return 1;
    }
    else
    {
    Register(playerid,inputtext)
    return 1;
    }
    }
    return 1;
    }


    public OnPlayerClickPlayer(playerid, clickedplayerid, source)
    {
    return 1;
    }


    stock Register(playerid,key[])
    {
    return 1;
    }

    #include <a_samp>
    #include <dini>


    #define BLAU 0x0087FFFF


    new SHenter;
    new SHexit;


    #define DIALOG_REGISTER
    #define DIALOG_LOGIN


    main()
    {
    print("\n----------------------------------");
    print("German Roleplay v1.0.0");
    print("----------------------------------\n");
    }


    public OnGameModeInit()
    {
    UsePlayerPedAnims();
    SHexit=CreatePickup(1559,1,390.1157,173.8773,1008.3828);
    SHenter=CreatePickup(1559,1,1481.1228,-1772.3123,18.7958);


    DisableInteriorEnterExits();
    SetGameModeText("German Roleplay");
    AddPlayerClass(0,1663.3906,-2332.3948,13.5469,356.3918,0,0,0,0,0,0); // Pos
    AddPlayerClass(1,1663.3906,-2332.3948,13.5469,356.3918,0,0,0,0,0,0); // Pos

    //********************************************Autos*********************************************
    AddStaticVehicle(541,1663.1593,-2313.5281,13.0880,87.8235,13,8); // Testauto1
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid,1663.3906,-2332.3948,13.5469); // Position
    SetPlayerFacingAngle(playerid,356.3918);
    SetPlayerCameraPos(playerid,1663.3630,-2330.0259,13.5469);
    SetPlayerCameraLookAt(playerid,1663.3906,-2332.3948,13.5469);
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Gib Bitte das gewünschte Paswort ein","Register","Abbrechen");
    return 1;
    }
    }

    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(52) : error 029: invalid expression, assumed zero
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(52) : warning 215: expression has no effect
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(52) : warning 215: expression has no effect
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(52) : warning 215: expression has no effect
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(52) : warning 215: expression has no effect
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(52) : warning 215: expression has no effect
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(52) : error 001: expected token: ";", but found ")"
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(52) : error 029: invalid expression, assumed zero
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(52) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.


    public OnPlayerConnect(playerid)
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Gib Bitte das gewünschte Paswort ein","Register","Abbrechen");
    return 1;
    }


    Danke im Vor raus