Beiträge von Link1994

    Ok, habs es klappt auch, aber ich kann da drinne keine Waffen benutzten


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    if(pickupid == port1)
    {
    SetPlayerPos(playerid, 246.40, 110.84, 1003.22 );
    SetPlayerInterior(playerid, 10);
    SetPlayerWorldBounds(playerid,20000.0000,-20000.0000,20000.0000,-20000.0000);
    }
    return 1;
    }


    Und wie kann ich dan da drinne auch ein Zeichen machen das mich wieder Raus Portet?

    Ahh Hilfe -.- Ja ist Selfmade nurn 5 Errors

    D:\Tobias\Programme\GTA San Andreas\pawno\ZekolFreeroomStunt&Dm.pwn(610) : warning 217: loose indentation
    D:\Tobias\Programme\GTA San Andreas\pawno\ZekolFreeroomStunt&Dm.pwn(610) : error 029: invalid expression, assumed zero
    D:\Tobias\Programme\GTA San Andreas\pawno\ZekolFreeroomStunt&Dm.pwn(610) : error 004: function "OnPlayerSelectedMenuRow" is not implemented
    D:\Tobias\Programme\GTA San Andreas\pawno\ZekolFreeroomStunt&Dm.pwn(615) : warning 225: unreachable code
    D:\Tobias\Programme\GTA San Andreas\pawno\ZekolFreeroomStunt&Dm.pwn(615) : error 029: invalid expression, assumed zero
    D:\Tobias\Programme\GTA San Andreas\pawno\ZekolFreeroomStunt&Dm.pwn(615) : error 004: function "OnPlayerExitedMenu" is not implemented
    D:\Tobias\Programme\GTA San Andreas\pawno\ZekolFreeroomStunt&Dm.pwn(620) : error 030: compound statement not closed at the end of file (started at line 604)
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    5 Errors.


    Ganz oben ist
    new port1;
    Bei OnGamemodeInit
    port1 = CreatePickup(1318,24, 1124.1760,-2037.0836,69.8849);


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    if(pickupid == port1)
    {
    SetPlayerPos(playerid, 1728,326, -1740.003);
    return 1;
    }


    public OnPlayerSelectedMenuRow(playerid, row)
    {
    return 1;
    }


    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }

    bekomme 2 Errors


    D:\Tobias\Programme\GTA San Andreas\pawno\ZekolFreeroomStunt&Dm.pwn(613) : error 017: undefined symbol "pickupid"
    D:\Tobias\Programme\GTA San Andreas\pawno\ZekolFreeroomStunt&Dm.pwn(618) : error 030: compound statement not closed at the end of file (started at line 613)

    Moin, ich möchte gerne ein Teleport Infozeichen Scripten,
    Wer nicht weis was ich meine ich erkäre es:
    Ein einer Stelle soll ein Infozeichen also ein "i" hin, wen man da drauf ist muss man z.B /hin eingeben, dann kommt man auf einer anderen Stelle wieder


    Wie mache ich das den?

    Moin, ich habe PickUps mit MTA 1.0 erstellt nur, wo kann ich die COnverten?


    <map edf:definitions="editor_main">
    <pickup id="pickup (Shotgun) (1)" type="25" interior="0" amount="200" respawn="30000" dimension="0" posX="1124.7650146484" posY="-2039.9539794922" posZ="69.881767272949" rotX="0" rotY="0" rotZ="0" />
    <pickup id="pickup (Deagle) (1)" type="24" interior="0" amount="200" respawn="30000" dimension="0" posX="1124.8961181641" posY="-2037.3579101563" posZ="69.882652282715" rotX="0" rotY="0" rotZ="0" />
    <pickup id="pickup (M4) (1)" type="31" interior="0" amount="200" respawn="30000" dimension="0" posX="1125.1218261719" posY="-2034.8134765625" posZ="69.883232116699" rotX="0" rotY="0" rotZ="0" />
    <pickup id="pickup (health) (1)" type="health" interior="0" amount="100" respawn="30000" dimension="0" posX="1123.5875244141" posY="-2044.4000244141" posZ="74.4296875" rotX="0" rotY="0" rotZ="0" />
    <pickup id="pickup (armor) (1)" type="armor" interior="0" amount="50" respawn="30000" dimension="0" posX="1123.8149414063" posY="-2029.9801025391" posZ="74.4296875" rotX="0" rotY="0" rotZ="0" />
    <pickup id="pickup (Molotov) (1)" type="18" interior="0" amount="100" respawn="30000" dimension="0" posX="1117.8637695313" posY="-2036.7119140625" posZ="78.75" rotX="0" rotY="0" rotZ="0" />
    <pickup id="pickup (Uzi) (1)" type="28" interior="0" amount="100" respawn="30000" dimension="0" posX="1122.0173339844" posY="-2069.8601074219" posZ="69.837043762207" rotX="0" rotY="0" rotZ="0" />
    </map>

    Ja, aber du hast die Punkte Vergessen, so


    new gangzone;


    public OnGameModeInit()
    gangzone = GangZoneCreate(-2251.763, 578.2819, -2124.295, 775.5302);


    GangZoneShowForPlayer(playerid, Yakuza, 0xFF0000FF);


    Du hast Komma an den stellen gemacht wo Punkte hinmuessen

    //|~~~~~~~~~~~~~~~~~~~~~|
    //| Gamemode by |
    //| Link1994 |
    //|~~~~~~~~~~~~~~~~~~~~~|


    //Include
    #include <a_samp>
    #include <datagram>
    #include <time>


    //Forwards
    forward hinweise1();
    //Timer
    SetTimer("hinweise1",60000,true);
    //Die Defineds
    #define turkis 0x00FFFFFF
    #define gruen 0x00FF00FF
    #define hellblau 0x00B2FFFF
    #define orange 0xFF5000FF
    #define rot 0xFF0000FF
    #define gelb 0xFFFF8BFF
    //Sonstige
    #if defined FILTERSCRIPT
    #define FILTERSCRIPT

    Moin, ich bins wieder mit folgendem Problem:


    ich habe mir ein Timer erstellt der soll jede Minute ein Hinweis absenden


    //Forwards
    forward hinweise1();
    //Timer
    SetTimer("hinweise1",60000,true);


    Ganz unten im Script:


    public hinweise1()
    {
    SendClientMessageToAll(turkis, "|__________Hinweis__________|");
    SendClientMessageToAll(turkis, "Benutzte /Help und /Teleports!");
    SendClientMessageToAll(turkis, "Lies dir die Regeln vor und halte dich daran!");
    SendClientMessageToAll(turkis, "Einzulesen unter /Regeln");
    }


    Und nun der eine Error:


    ZekolFreeroomStunt&Dm.pwn(14) : error 021: symbol already defined: "SetTimer"

    Find den nicht, hab nirgends #else und #endif stehen hier mal das Script


    #include <a_samp>
    #include <datagram>
    #include <time>


    //|~~~~~~~~~~~~~~~~~~~~~|
    //| Gamemode by |
    //| Link1994 |
    //|~~~~~~~~~~~~~~~~~~~~~|





    //Die Defineds
    #if defined turkis 0x00FFFFFF
    #if defined gruen 0x00FF00FF
    #if defined hellblau 0x00B2FFFF
    #if defined orange 0xFF5000FF
    #if defined rot 0xFF0000FF
    #if defined gelb 0xFFFF8BFF


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" NoFilterscript ");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    main()
    {
    print("\n----------------------------------");
    print(" Gamemode by:Link1994 ");
    print("----------------------------------\n");
    }


    public OnGameModeInit()
    {
    SetGameModeText("ZekolFreeroom");
    UsePlayerPedAnims();
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
    }


    public OnPlayerRequestSpawn(playerid)
    {
    SendClientMessage(playerid, hellblau, "Willkommen auf dem Zekol-Freeroom-Stunt&Dm Server!");
    SendClientMessage(playerid, hellblau, "Benutzte /Help und /Teleports für weitere Hilfe!");
    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;
    }


    public OnPlayerPrivmsg(playerid, recieverid, text[])
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/kill", cmdtext, true, 10) == 0)
    {
    SetPlayerHealth(playerid, 0);
    SendClientMessage(playerid, rot, "Selbstmord ist keine Loesung!");
    return 1;
    }
    return 0;
    }


    public OnPlayerInfoChange(playerid)
    {
    return 1;
    }


    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 OnObjectMoved(objectid)
    {
    return 1;
    }


    public OnPlayerObjectMoved(playerid, objectid)
    {
    return 1;
    }


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    return 1;
    }


    public OnPlayerSelectedMenuRow(playerid, row)
    {
    return 1;
    }


    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }