Beiträge von Narushi

    z.B.



    enum Spielerdatei //Der Name des Enums
    {
    pKey[64]; //Die einzelnen Variablem
    pAdminlevel,
    pSupportlevel,
    pLevel
    }
    new PlayerInfo[MAX_PLAYERS][Spielerdatei]; //Mit dieser Variable kannst du Werte dann ändern, speichern usw.



    //Die Befehle
    if(PlayerInfo[playerid][pAdminlevel] == 2) //Ist ja klar.. Wenn der Spieler genau aLevel 2 hat ...
    if(PlayerInfo[playerid][pAdminlevel] >= 2) //Wenn der Spieler aLevel 2 / höher als aLevel 2 hat ...
    if(PlayerInfo[playerid][pAdminlevel] <= 2) //Wenn der Spieler aLevel 2 / kleiner als aLevel 2 hat ...
    if(PlayerInfo[playerid][pAdminlevel] < 2) //Wenn der Spieler ein niedrigeres aLevel als 2 hat..
    if(PlayerInfo[playerid][pAdminlevel] > 2) //Wenn der Spieler ein höheres aLevel als 2 hat..


    PlayerInfo[playerid][pAdminlevel] = 2; //Setzt Adminlevel auf 2
    //Und so weiter ..


    Speichern kannst du die ganz normal mit dini. ;)

    ein beispiel:


    Das Tor:
    X = 100
    Y = 200
    Z = 220



    ocmd:pd1(playerid,params[])
    {
    MoveObject(pdgate,100,200,220-10,3); //3 = Speed
    SetTimer("GatePDBack",3000,false);
    SendClientMessage(playerid,FARBE,"Tor schließt sich in 3 Sekunden!");
    return 1;
    }


    forward GatePDBack();
    public GatePDBack()
    {
    MoveObject(pdgate,100,200,220,3);
    return 1;
    }

    ungefähr so:


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/pd1", cmdtext, true, 10) == 0)
    {
    MoveObject(pdgate,x,y,z,speed);
    SetTimer("GatePDBack",3000,false);
    SendClientMessage(playerid,FARBE,"Tor schließt sich in 3 Sekunden!");
    return 1;
    }
    return 0;
    }


    forward GatePDBack();
    public GatePDBack()
    {
    MoveObject(pdgate,oldx,oldy,oldz,speed);
    return 1;
    }

    Hey, schick mir mal eine PN mit deinen TV Daten, besser als jetzt jeden Error einzeln durchzuquängeln :D


    Wenn du kein TV hast, dann schick einfach wieder Error Zeilen

    Das einfügen!


    // ------------------------- REMOVEBUILDINGS -------------------
    //TANKE+ PD SCHILD
    RemoveBuildingForPlayer(playerid, 1266, 1538.5234, -1609.8047, 19.8438, 0.25);
    RemoveBuildingForPlayer(playerid, 4229, 1597.9063, -1699.7500, 30.2109, 0.25);
    RemoveBuildingForPlayer(playerid, 4230, 1597.9063, -1699.7500, 30.2109, 0.25);
    RemoveBuildingForPlayer(playerid, 1260, 1538.5234, -1609.8047, 19.8438, 0.25);
    RemoveBuildingForPlayer(playerid, 5849, 1046.6797, -935.1953, 46.9922, 0.25);
    RemoveBuildingForPlayer(playerid, 5854, 992.5313, -962.7344, 60.7813, 0.25);
    RemoveBuildingForPlayer(playerid, 1266, 1029.1797, -939.5156, 52.7500, 0.25);
    RemoveBuildingForPlayer(playerid, 1260, 1029.1797, -939.5156, 52.7500, 0.25);
    RemoveBuildingForPlayer(playerid, 1294, 1034.7891, -950.3750, 46.4297, 0.25);
    RemoveBuildingForPlayer(playerid, 5848, 1046.6797, -935.1953, 46.9922, 0.25);
    RemoveBuildingForPlayer(playerid, 672, 1656.4688, 106.5703, 30.5547, 0.25);// BAUM RAST
    //----------------------------- SAN FIERRO AM HAUPTBAHNHOF ---------------------------------


    Statt Text3D:Text einen neuen Name eingeben.. zB pText


    hRentabil,
    hTakings,
    hVec,
    hVcol1,
    hVcol2,
    hDate,
    hLevel,
    Text3D:pText, //Umbenannt
    };

    schick mir mal zeile 5500 - 5520 und zeile 2910 - 2920


    EDIT:
    // ------------------------- REMOVEBUILDINGS -------------------
    //TANKE+ PD SCHILD
    RemoveBuildingForPlayer(playerid, 1266, 1538.5234, -1609.8047, 19.8438, 0.25);
    RemoveBuildingForPlayer(playerid, 4229, 1597.9063, -1699.7500, 30.2109, 0.25);
    RemoveBuildingForPlayer(playerid, 4230, 1597.9063, -1699.7500, 30.2109, 0.25);
    RemoveBuildingForPlayer(playerid, 1260, 1538.5234, -1609.8047, 19.8438, 0.25);
    RemoveBuildingForPlayer(playerid, 5849, 1046.6797, -935.1953, 46.9922, 0.25);
    RemoveBuildingForPlayer(playerid, 5854, 992.5313, -962.7344, 60.7813, 0.25);
    RemoveBuildingForPlayer(playerid, 1266, 1029.1797, -939.5156, 52.7500, 0.25);
    RemoveBuildingForPlayer(playerid, 1260, 1029.1797, -939.5156, 52.7500, 0.25);
    RemoveBuildingForPlayer(playerid, 1294, 1034.7891, -950.3750, 46.4297, 0.25);
    RemoveBuildingForPlayer(playerid, 5848, 1046.6797, -935.1953, 46.9922, 0.25);
    RemoveBuildingForPlayer(playerid, 672, 1656.4688, 106.5703, 30.5547, 0.25);// BAUM RAST
    ----------------------------- SAN FIERRO AM HAUPTBAHNHOF ---------------------------------//


    Du hast da : SAN FIERRO AM HAUPTBAHNHOF diese "//" nach dem Kommentar geschrieben
    muss so sein


    // ------------------------- REMOVEBUILDINGS -------------------
    //TANKE+ PD SCHILD
    RemoveBuildingForPlayer(playerid, 1266, 1538.5234, -1609.8047, 19.8438, 0.25);
    RemoveBuildingForPlayer(playerid, 4229, 1597.9063, -1699.7500, 30.2109, 0.25);
    RemoveBuildingForPlayer(playerid, 4230, 1597.9063, -1699.7500, 30.2109, 0.25);
    RemoveBuildingForPlayer(playerid, 1260, 1538.5234, -1609.8047, 19.8438, 0.25);
    RemoveBuildingForPlayer(playerid, 5849, 1046.6797, -935.1953, 46.9922, 0.25);
    RemoveBuildingForPlayer(playerid, 5854, 992.5313, -962.7344, 60.7813, 0.25);
    RemoveBuildingForPlayer(playerid, 1266, 1029.1797, -939.5156, 52.7500, 0.25);
    RemoveBuildingForPlayer(playerid, 1260, 1029.1797, -939.5156, 52.7500, 0.25);
    RemoveBuildingForPlayer(playerid, 1294, 1034.7891, -950.3750, 46.4297, 0.25);
    RemoveBuildingForPlayer(playerid, 5848, 1046.6797, -935.1953, 46.9922, 0.25);
    RemoveBuildingForPlayer(playerid, 672, 1656.4688, 106.5703, 30.5547, 0.25);// BAUM RAST
    //----------------------------- SAN FIERRO AM HAUPTBAHNHOF ---------------------------------

    Hey,


    wenn ich in meinem Script
    #pragma tabsize 0
    eingebe, kommen immernoch diese Warnings



    C:\Users\Narushi\Desktop\Server\ServerSh12\gamemodes\sh12.pwn(22914) : warning 217: loose indentation
    C:\Users\Narushi\Desktop\Server\ServerSh12\gamemodes\sh12.pwn(22951) : warning 217: loose indentation
    C:\Users\Narushi\Desktop\Server\ServerSh12\gamemodes\sh12.pwn(63291) : warning 217: loose indentation
    C:\Users\Narushi\Desktop\Server\ServerSh12\gamemodes\sh12.pwn(63292) : warning 217: loose indentation
    C:\Users\Narushi\Desktop\Server\ServerSh12\gamemodes\sh12.pwn(74115) : warning 217: loose indentation
    C:\Users\Narushi\Desktop\Server\ServerSh12\gamemodes\sh12.pwn(74120) : warning 217: loose indentation
    C:\Users\Narushi\Desktop\Server\ServerSh12\gamemodes\sh12.pwn(74129) : warning 217: loose indentation
    C:\Users\Narushi\Desktop\Server\ServerSh12\gamemodes\sh12.pwn(74134) : warning 217: loose indentation
    C:\Users\Narushi\Desktop\Server\ServerSh12\gamemodes\sh12.pwn(74160) : warning 217: loose indentation
    C:\Users\Narushi\Desktop\Server\ServerSh12\gamemodes\sh12.pwn(74165) : warning 217: loose indentation
    C:\Users\Narushi\Desktop\Server\ServerSh12\gamemodes\sh12.pwn(77349) : warning 217: loose indentation
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    11 Warnings.


    //EDIT: Warnings, keine Errors ^^