Beiträge von xTheMeniacx

    Habe immer noch Errors


    C:\Users\-.-\Desktop\RegisterLogin.pwn(21) : error 026: no matching "#if..."
    C:\Users\-.-\Desktop\RegisterLogin.pwn(30) : error 026: no matching "#if..."
    C:\Users\-.-\Desktop\RegisterLogin.pwn(61) : error 017: undefined symbol "DIALOG_LOGIN"
    C:\Users\-.-\Desktop\RegisterLogin.pwn(242) : error 017: undefined symbol "DIALOG_LOGIN"
    C:\Users\-.-\Desktop\RegisterLogin.pwn(246) : error 017: undefined symbol "ROT"
    C:\Users\-.-\Desktop\RegisterLogin.pwn(254) : error 017: undefined symbol "ROT"
    C:\Users\-.-\Desktop\RegisterLogin.pwn(255) : error 017: undefined symbol "DIALOG_LOGIN"
    C:\Users\-.-\Desktop\RegisterLogin.pwn(265) : warning 217: loose indentation
    C:\Users\-.-\Desktop\RegisterLogin.pwn(269) : error 017: undefined symbol "ROT"
    C:\Users\-.-\Desktop\RegisterLogin.pwn(277) : error 017: undefined symbol "GR"
    C:\Users\-.-\Desktop\RegisterLogin.pwn(277) : error 029: invalid expression, assumed zero
    C:\Users\-.-\Desktop\RegisterLogin.pwn(277) : error 017: undefined symbol "N"
    C:\Users\-.-\Desktop\RegisterLogin.pwn(277) : fatal error 107: too many error messages on one line


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



    12 Errors.

    Kann mir vielleicht jemand kurz sagen was ich falsch gemacht habe?


    Fehler


    C:\Users\-.-\Desktop\RegisterLogin.pwn(21) : error 026: no matching "#if..."
    C:\Users\-.-\Desktop\RegisterLogin.pwn(30) : error 026: no matching "#if..."
    C:\Users\-.-\Desktop\RegisterLogin.pwn(56) : warning 217: loose indentation
    C:\Users\-.-\Desktop\RegisterLogin.pwn(57) : warning 217: loose indentation
    C:\Users\-.-\Desktop\RegisterLogin.pwn(61) : error 017: undefined symbol "DIALOG_LOGIN"
    C:\Users\-.-\Desktop\RegisterLogin.pwn(73) : error 017: undefined symbol "Spielerdatei"
    C:\Users\-.-\Desktop\RegisterLogin.pwn(77) : warning 217: loose indentation
    C:\Users\-.-\Desktop\RegisterLogin.pwn(242) : error 017: undefined symbol "DIALOG_LOGIN"
    C:\Users\-.-\Desktop\RegisterLogin.pwn(246) : error 017: undefined symbol "ROT"
    C:\Users\-.-\Desktop\RegisterLogin.pwn(254) : error 017: undefined symbol "ROT"
    C:\Users\-.-\Desktop\RegisterLogin.pwn(255) : error 017: undefined symbol "DIALOG_LOGIN"
    C:\Users\-.-\Desktop\RegisterLogin.pwn(265) : warning 217: loose indentation
    C:\Users\-.-\Desktop\RegisterLogin.pwn(269) : error 017: undefined symbol "ROT"
    C:\Users\-.-\Desktop\RegisterLogin.pwn(277) : error 017: undefined symbol "GR"
    C:\Users\-.-\Desktop\RegisterLogin.pwn(277) : error 029: invalid expression, assumed zero
    C:\Users\-.-\Desktop\RegisterLogin.pwn(277) : error 017: undefined symbol "N"
    C:\Users\-.-\Desktop\RegisterLogin.pwn(277) : fatal error 107: too many error messages on one line


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



    13 Errors.



    Snipsel


    #include <a_samp>
    #include <Dini>
    #include <MD5>


    #define DIALOG_REGISTER 1
    #define DIALOG_Login 2


    #define Blau #0101DF
    #define Rot #FF0000


    public OnPlayerConnect(playerid)
    {
    if(IsPlayerNPC(playerid))return 1; //Ein NPC soll sich ja nicht registrieren sonst käme er ja nicht auf unseren Server
    new Spielerdatei[128],string[128],string2[128]; //Spielerdatei,sowie 2 Strings
    format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.ini",SpielerName(playerid)); //Ist klar
    if(dini_Exists(Spielerdatei)) //Hier wird abgefragt ob der User Bereits registriert ist
    { //Wenn ja , dann...
    format(string,sizeof(string),"{FFFFFF}Herzlich Willkommen zurück auf meinem Server {FFFA00}%s.\n{FFFFFF}Gib unten bitte dein Passwort ein!",SpielerName(playerid)); //String1......
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login Vorgang",string,"Einloggen","Abbrechen"); //Login Dialog mit der Info string
    }
    else
    { //Falls nicht
    format(string2,sizeof(string2),"{FFFFFF}Herzlich willkommen {FFFA00}%s.\n{FFFFFF}Da dies dein erster Besuch hier ist musst du dich erst registrieren.\nBitte gib unten dein gewünschtes Passwort ein!",SpielerName(playerid)); //String 2
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"Registrierungs Vorgang",string2,"Register","Abbrechen"); //Register-Dialog mit der Info string2
    }
    return 1;
    }



    public OnPlayerDisconnect(playerid, reason)
    {
    if(GetPVarInt(Spielerdatei,"loggedin") == 1 //Falls er eingeloggt war
    {
    SpielerSpeichern(playerid); //Unsere SpielerSpeichern-Funktion wird angewendet......
    }
    return 1;
    }



    [pwn=170]ocmd:makeadmin(playerid,params[])
    {
    if(GetPVarInt(playerid,"Eingeloggt") == 0)return SCM(playerid,COLOR_GRAU,"Du bist nicht Eingeloggt.");
    if(!IsPlayerAdmin(playerid))return SCM(playerid,COLOR_GRAU,"Melde dich bitte als RCON-Admin an.");
    new pID,alevel,string[128];
    if(sscanf(params,"ui",pID,alevel))return SCM(playerid,COLOR_GRAU,"Info: /makeadmin [playerid/name] [adminlevel(0-8)]");
    if(!IsPlayerConnected(pID))return SCM(playerid,COLOR_GRAU,"Info: Der angegebene Spieler ist zurzeit nicht Online.");
    if(alevel <0 || alevel >8)return SCM(playerid,COLOR_GRAU,"Bitte wähle ein Adminlevel zwischen 0-8");
    if(alevel == 0)
    {
    SetPVarInt(playerid,"Adminlevel",0);
    format(string,128,"Admin %s hat dir deine Adminrechte komplett entzogen. Adminlevel: %d",SpielerName(playerid),alevel);
    SCM(pID,COLOR_BLAU,string);
    format(string,128,"Du hast %s die Adminrechte entzogen. (Adminlevel: %d)",SpielerName(pID),alevel);
    SCM(playerid,COLOR_BLAU,string);
    return 1;
    }
    format(string,128,"Admin %s hat dir das Adminlevel %d vergeben.",SpielerName(playerid),alevel);
    SCM(pID,COLOR_BLAU,string);
    format(string,128,"Du hast %s das Adminlevel %d gegeben.",SpielerName(pID),alevel);
    SCM(pID,COLOR_BLAU,string);
    SetPVarInt(playerid,"Adminlevel",alevel);
    printf("Admin: %s | pID: %s | Adminlevel vergeben: %d",SpielerName(playerid),SpielerName(pID),alevel);
    return 1;
    }


    ocmd@2:ac,adminchat(playerid,params[])
    {
    if(GetPVarInt(playerid,"Eingeloggt") == 0)return SCM(playerid,COLOR_GRAU,"Du bist nicht Eingeloggt.");
    if(GetPVarInt(playerid,"Adminlevel") <1)return SCM(playerid,COLOR_GRAU,"Du bist nicht befugt diesen Befehl zu nutzen!");
    new string[128],text[128];
    if(sscanf(params,"s[128]",text))return SCM(playerid,COLOR_GRAU,"Info: /ac oder /adminchat [text]");
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i) && GetPVarInt(i,"Adminlevel") >0)
    {
    format(string,128,"[Adminchat]: %s: %s",SpielerName(i),text);
    SCM(i,COLOR_BLAU,string);
    }
    return 1;
    }
    return 1;
    }


    ocmd:freeze(playerid,params[])
    {
    if(GetPVarInt(playerid,"Eingeloggt") == 0)return SCM(playerid,COLOR_GRAU,"Du bist nicht Eingeloggt.");
    if(GetPVarInt(playerid,"Adminlevel") <1)return SCM(playerid,COLOR_GRAU,"Du bist nicht befugt diesen Befehl zu nutzen!");
    new pID,grund[128];
    new string[128];
    if(sscanf(params,"us[128]",pID,grund))return SCM(playerid,COLOR_GRAU,"Info: /freeze [playerid/name] [grund]");
    if(!IsPlayerConnected(pID))return SCM(playerid,COLOR_GRAU,"Info: Der Spieler ist zurzeit nicht Online!");
    if(GetPVarInt(playerid,"Freeze") == 0)
    {
    format(string,128,"Du wurdest von Admin %s gefreezed, Grund: %s",SpielerName(playerid),grund);
    SCM(pID,COLOR_ROT,string);
    TogglePlayerControllable(playerid,0);
    SetPVarInt(playerid,"Freeze",1);
    }
    else if(GetPVarInt(playerid,"Freeze") == 1)
    {
    format(string,128,"Du wurdest von Admin %s ungefreezed.",SpielerName(playerid));
    SCM(pID,COLOR_ROT,string);
    TogglePlayerControllable(playerid,1);
    SetPVarInt(playerid,"Freeze",0);
    }
    return 1;
    }


    ocmd:kick(playerid,params[])
    {
    if(GetPVarInt(playerid,"Eingeloggt") == 0)return SCM(playerid,COLOR_GRAU,"Du bist nicht Eingeloggt.");
    if(GetPVarInt(playerid,"Adminlevel") <1)return SCM(playerid,COLOR_GRAU,"Du bist nicht befugt diesen Befehl zu nutzen!");
    new string[128],grund[128],pID;
    if(sscanf(params,"us[128]",pID,grund))return SCM(playerid,COLOR_GRAU,"Info: /kick [playerid/name] [grund]");
    if(!IsPlayerConnected(pID))return SCM(playerid,COLOR_GRAU,"Info: Der Spieler ist zurzeit nicht Online!");
    format(string,128,"Info: %s wurde von %S gekickt, Grund: %s",SpielerName(pID),SpielerName(playerid),grund);
    SCMToAll(COLOR_ROT,string);
    SCM(pID,COLOR_ROT,"Du wurdest gekickt!");
    Kick(pID);
    return 1;
    }


    ocmd:ban(playerid,params[])
    {
    if(GetPVarInt(playerid,"Eingeloggt") == 0)return SCM(playerid,COLOR_GRAU,"Du bist nicht Eingeloggt.");
    if(GetPVarInt(playerid,"Adminlevel") <1)return SCM(playerid,COLOR_GRAU,"Du bist nicht befugt diesen Befehl zu nutzen!");
    new string[128],grund[128],pID;
    if(sscanf(params,"us[128]",pID,grund))return SCM(playerid,COLOR_GRAU,"Info: /ban [playerid/name] [grund]");
    if(!IsPlayerConnected(pID))return SCM(playerid,COLOR_GRAU,"Info: Der Spieler ist zurzeit nicht Online!");
    format(string,128,"Info: %s wurde von %s gebannt, Grund: %s",SpielerName(pID),SpielerName(playerid),grund);
    SCMToAll(COLOR_ROT,string);
    SCM(pID,COLOR_ROT,"Du wurdest soeben Gebannt.");
    SCM(pID,COLOR_ROT,"Sollte das ein nicht gültiger ban gewesen sein, wende dich bitte an den Admin der dich gebannt hat oder an ein High Admin.");
    SetPVarInt(playerid,"Ban",1);
    Kick(pID);
    return 1;
    }


    ocmd:veh(playerid,params[])
    {
    if(GetPVarInt(playerid,"Eingeloggt") == 0)return SCM(playerid,COLOR_GRAU,"Du bist nicht Eingeloggt.");
    if(GetPVarInt(playerid,"Adminlevel") <1)return SCM(playerid,COLOR_GRAU,"Du bist nicht befugt diesen Befehl zu nutzen!");
    new vID, color1,color2,string[128];
    if(sscanf(params,"iii",vID,color1,color2))return SCM(playerid,COLOR_GRAU,"Info: /veh [vehicleID] [color1] [color2]");
    if(IsPlayerInAnyVehicle(playerid))return SCM(playerid,COLOR_GRAU,"Du bist in einem Fahrzeug, du darfst diesen Befehl nicht ausführen!");
    if(vID <400 || vID >611)return SCM(playerid,COLOR_GRAU,"Bitte wähle ein Fahrzeug zwischen 400-611");
    if(color1 <0 || color1 >255)return SCM(playerid,COLOR_GRAU,"Wähle eine Farbe zwischen 0-255 aus.");
    if(color2 <0 || color2 >255)return SCM(playerid,COLOR_GRAU,"Wähle eine Farbe zwischen 0-255 aus.");
    new Float:x,Float:y,Float:z,Float:r;
    GetPlayerPos(playerid,x,y,z);
    GetPlayerFacingAngle(playerid,r);
    new cv = CreateVehicle(vID, x,y,z, r,color1,color2, -1);
    format(string,128,"Du hast dir das Fahrzeug mit der ID %d erstellt.",vID);
    SCM(playerid,COLOR_BLAU,string);
    SCM(playerid,COLOR_GRAU,"Benutze '/dveh' um das Fahrzeug zu löschen.");
    PutPlayerInVehicle(playerid,cv,0);
    return 1;
    }


    ocmd:dveh(playerid,params[])
    {
    if(GetPVarInt(playerid,"Eingeloggt") == 0)return SCM(playerid,COLOR_GRAU,"Du bist nicht Eingeloggt.");
    if(GetPVarInt(playerid,"Adminlevel") <1)return SCM(playerid,COLOR_GRAU,"Du bist nicht befugt diesen Befehl zu nutzen!");
    new vID = GetPlayerVehicleID(playerid);
    if(!IsPlayerInAnyVehicle(playerid))return SCM(playerid,COLOR_GRAU,"Du bist in kein Fahrzeug!");
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)return SCM(playerid,COLOR_GRAU,"Du bist nicht der Fahrer dieses Fahrzeuges!");
    new string[128];
    format(string,128,"Du hast das Fahrzeug mit der ID %d gelöscht.",vID);
    SCM(playerid,COLOR_GRAU,string);
    DestroyVehicle(vID);
    return 1;
    }[/pwn]

    [pwn=162]FahrschulCars[14] = AddStaticVehicleEx(519,-1356.0914,-476.5251,14.2317,206.1077,1,1,1000); // Fahrschul Shamal 2

    MedicCars[1] = AddStaticVehicleEx(416,1177.8534,-1339.0718,13.6357,268.6990,1,3,1000); // Krangenwagen 1
    MedicCars[2] = AddStaticVehicleEx(416,1177.6042,-1308.5869,13.5930,269.4106,1,3,1000); // Krangenwagen 2
    MedicCars[3] = AddStaticVehicleEx(416,1135.5831,-1341.7534,13.4816,0.3504,1,3,1000); // Krangenwagen 3
    MedicCars[4] = AddStaticVehicleEx(416,1143.1168,-1339.1145,13.3369,358.3151,1,3,1000); // Krangenwagen 4
    MedicCars[5] = AddStaticVehicleEx(416,1143.6935,-1320.9633,13.3137,358.5519,1,3,1000); // Krangenwagen 5
    MedicCars[6] = AddStaticVehicleEx(416,1136.1028,-1312.9148,13.3049,270.8887,1,3,1000); // Krangenwagen 6
    MedicCars[7] = AddStaticVehicleEx(416,1135.7151,-1306.9218,13.3074,267.8231,1,3,1000); // Krangenwagen 7
    MedicCars[8] = AddStaticVehicleEx(416,1135.6022,-1299.7659,13.2937,268.5082,1,3,1000); // Krangenwagen 8
    MedicCars[9] = AddStaticVehicleEx(416,1135.5160,-1294.4200,13.2794,268.1387,1,3,1000); // Krangenwagen 9
    MedicCars[10] = AddStaticVehicleEx(490,1147.8090,-1314.6594,13.3980,358.4345,1,3,1000); // Krangenwagen FBI Car

    YakuzaVehs[1] = AddStaticVehicleEx(409,1953.4269,687.4469,10.6335,56.0762,1,1,-1); // Yakuza Fahzeuge: Limosine 1
    YakuzaVehs[2] = AddStaticVehicleEx(409,1953.1686,718.5054,10.6168,132.8170,1,1,-1); // Yakuza Fahzeuge: Limosine 2
    YakuzaVehs[3] = AddStaticVehicleEx(451,1942.1019,698.2009,10.5503,180.9777,1,1,-1); // Yakuza Fahzeuge: Turismo 1
    YakuzaVehs[4] = AddStaticVehicleEx(451,1938.7288,697.9783,10.5361,180.0933,1,1,-1); // Yakuza Fahzeuge: Turismo 2
    YakuzaVehs[5] = AddStaticVehicleEx(521,1935.6676,698.7816,10.3905,178.2275,1,1,-1); // Yakuza Fahzeuge: FCR 1
    YakuzaVehs[6] = AddStaticVehicleEx(521,1932.5667,698.3093,10.3804,177.4943,1,1,-1); // Yakuza Fahzeuge: FCR 2
    YakuzaVehs[7] = AddStaticVehicleEx(482,1929.1219,698.2360,11.0817,178.8143,1,1,-1); // Yakuza Fahzeuge: Burrito 1
    YakuzaVehs[8] = AddStaticVehicleEx(482,1925.8937,698.0342,11.0712,177.7685,1,1,-1); // Yakuza Fahzeuge: Burrito 2
    YakuzaVehs[9] = AddStaticVehicleEx(522,1922.4387,698.8093,10.3939,178.6608,1,1,-1); // Yakuza Fahzeuge: Nrg 1
    YakuzaVehs[10] = AddStaticVehicleEx(522,1919.8107,698.8483,10.3874,184.0895,1,1,-1); // Yakuza Fahzeuge: Nrg 2
    YakuzaVehs[11] = AddStaticVehicleEx(522,1916.6313,698.8198,10.3813,180.4826,1,1,-1); // Yakuza Fahzeuge: Nrg 3
    YakuzaVehs[12] = AddStaticVehicleEx(562,1913.1155,698.0507,10.4643,179.6550,1,1,-1); // Yakuza Fahzeuge: Elegy 1
    YakuzaVehs[13] = AddStaticVehicleEx(562,1909.9237,698.1166,10.4866,180.8126,1,1,-1); // Yakuza Fahzeuge: Elegy 2
    YakuzaVehs[14] = AddStaticVehicleEx(560,1909.8564,708.1511,10.6819,358.9208,1,1,-1); // Yakuza Fahzeuge: Sultan 1
    YakuzaVehs[15] = AddStaticVehicleEx(560,1913.3345,708.5348,10.6589,358.5440,1,1,-1); // Yakuza Fahzeuge: Sultan 2
    YakuzaVehs[16] = AddStaticVehicleEx(560,1916.2526,708.3020,10.6722,359.1665,1,1,-1); // Yakuza Fahzeuge: Sultan 3
    YakuzaVehs[17] = AddStaticVehicleEx(560,1919.7177,708.4517,10.6860,1.0190,1,1,-1); // Yakuza Fahzeuge: Sultan 4
    YakuzaVehs[18] = AddStaticVehicleEx(560,1922.8168,708.3531,10.6626,0.8918,1,1,-1); // Yakuza Fahzeuge: Sultan 5
    YakuzaVehs[19] = AddStaticVehicleEx(411,1926.0315,708.1186,10.5244,357.5020,1,1,-1); // Yakuza Fahzeuge: Infernus 1
    YakuzaVehs[20] = AddStaticVehicleEx(411,1929.2939,708.3875,10.4861,1.0184,1,1,-1); // Yakuza Fahzeuge: Infernus 2
    YakuzaVehs[21] = AddStaticVehicleEx(480,1932.3081,708.1951,10.5709,358.3488,1,1,-1); // Yakuza Fahzeuge: Comet 1
    YakuzaVehs[22] = AddStaticVehicleEx(480,1935.6993,708.2654,10.5780,0.0133,1,1,-1); // Yakuza Fahzeuge: Comet 2
    YakuzaVehs[23] = AddStaticVehicleEx(415,1938.9503,708.1233,10.4436,3.2583,1,1,-1); // Yakuza Fahzeuge: Cheetah 1
    YakuzaVehs[24] = AddStaticVehicleEx(415,1942.0502,708.1960,10.4386,0.3342,1,1,-1); // Yakuza Fahzeuge: Cheetah 2

    GroveCars[1] = AddStaticVehicleEx(560,2511.0088,-1688.1639,13.2607,47.7240,86,86,1000); // Grove Street Sultan 1
    GroveCars[2] = AddStaticVehicleEx(560,2507.1790,-1695.4821,13.2602,0.7789,86,86,1000); // Grove Street Sultan 2
    GroveCars[3] = AddStaticVehicleEx(560,2503.8291,-1696.0891,13.2612,0.6000,86,86,1000); // Grove Street Sultan 3
    GroveCars[4] = AddStaticVehicleEx(411,2473.1816,-1704.8860,13.2311,359.6014,86,86,1000); // Grove Street Infernus 1
    GroveCars[5] = AddStaticVehicleEx(411,2473.2405,-1696.5900,13.2214,359.5426,86,86,1000); // Grove Street Infernus 2
    GroveCars[6] = AddStaticVehicleEx(411,2483.3884,-1684.2458,13.1215,266.9247,86,86,1000); // Grove Street Infernus 3
    GroveCars[7] = AddStaticVehicleEx(466,2478.8245,-1654.1907,13.0953,90.9921,86,86,1000); // Grove Street Karre 1
    GroveCars[8] = AddStaticVehicleEx(466,2486.8579,-1654.0878,13.1059,89.9035,86,86,1000); // Grove Street Karre 2
    GroveCars[9] = AddStaticVehicleEx(522,2507.0798,-1677.1934,12.9510,326.1717,86,86,1000); // Grove Bike 1
    GroveCars[10] = AddStaticVehicleEx(522,2505.1387,-1679.5786,12.9628,314.9531,86,86,1000); // Grove Bike 2


    CreateDynamicObject(2942, 1496.13671875, -1749.9293212891, 15.088212013245, 0, 0, 180.25);
    CreateDynamicObject(2942, 1546.5606689453, -1679.5637207031, 13.204384803772, 0, 0, 0.4971923828125);
    CreateDynamicObject(2942, 1087.4376220703, -1803.6749267578, 13.245109558105, 0, 0, 181.49438476563);
    CreateDynamicObject(2942, 932.91314697266, -1239.6407470703, 16.148252487183, 0, 0, 89.244140625);
    CreateDynamicObject(2942, 732.35614013672, -1351.1682128906, 13.142899513245, 0, 0, 90.241943359375);
    CreateDynamicObject(2942, 1191.3444824219, -916.74786376953, 42.847599029541, 0, 0, 5.49169921875);
    CreateDynamicObject(2942, 1366.3469238281, -1273.7358398438, 13.189774513245, 0, 0, 5.4876708984375);
    CreateDynamicObject(2942, 1172.1220703125, -1326.7723388672, 14.996265411377, 0, 0, 90.237670898438);
    CreateDynamicObject(2942, -2025.2329101563, -101.99922180176, 34.81477355957, 0, 0, 179.98620605469);
    CreateDynamicObject(2942, -1980.7943115234, 141.30894470215, 27.33039855957, 0, 0, 268.23352050781);
    CreateDynamicObject(2942, -1650.0007324219, 1202.7108154297, 6.8928995132446, 0, 0, 0);[/pwn]

    211 CreateDynamicObject(2942, 1496.13671875, -1749.9293212891, 15.088212013245, 0, 0, 180.25);
    212 CreateDynamicObject(2942, 1546.5606689453, -1679.5637207031, 13.204384803772, 0, 0, 0.4971923828125);
    213 CreateDynamicObject(2942, 1087.4376220703, -1803.6749267578, 13.245109558105, 0, 0, 181.49438476563);
    214 CreateDynamicObject(2942, 932.91314697266, -1239.6407470703, 16.148252487183, 0, 0, 89.244140625);
    215 CreateDynamicObject(2942, 732.35614013672, -1351.1682128906, 13.142899513245, 0, 0, 90.241943359375);
    216 CreateDynamicObject(2942, 1191.3444824219, -916.74786376953, 42.847599029541, 0, 0, 5.49169921875);
    217 CreateDynamicObject(2942, 1366.3469238281, -1273.7358398438, 13.189774513245, 0, 0, 5.4876708984375);
    218 CreateDynamicObject(2942, 1172.1220703125, -1326.7723388672, 14.996265411377, 0, 0, 90.237670898438);
    219 CreateDynamicObject(2942, -2025.2329101563, -101.99922180176, 34.81477355957, 0, 0, 179.98620605469);
    220 CreateDynamicObject(2942, -1980.7943115234, 141.30894470215, 27.33039855957, 0, 0, 268.23352050781);
    221 CreateDynamicObject(2942, -1650.0007324219, 1202.7108154297, 6.8928995132446, 0, 0, 0);

    Jetzt kommt das


    C:\Users\-.-\Pictures\Gamemodes\xBigBossx Script.pwn(211) : error 012: invalid function call, not a valid address
    C:\Users\-.-\Pictures\Gamemodes\xBigBossx Script.pwn(211) : warning 215: expression has no effect
    C:\Users\-.-\Pictures\Gamemodes\xBigBossx Script.pwn(211) : warning 215: expression has no effect
    C:\Users\-.-\Pictures\Gamemodes\xBigBossx Script.pwn(211) : warning 215: expression has no effect
    C:\Users\-.-\Pictures\Gamemodes\xBigBossx Script.pwn(211) : warning 215: expression has no effect
    C:\Users\-.-\Pictures\Gamemodes\xBigBossx Script.pwn(211) : warning 215: expression has no effect
    C:\Users\-.-\Pictures\Gamemodes\xBigBossx Script.pwn(211) : warning 215: expression has no effect
    C:\Users\-.-\Pictures\Gamemodes\xBigBossx Script.pwn(211) : warning 215: expression has no effect
    C:\Users\-.-\Pictures\Gamemodes\xBigBossx Script.pwn(211) : error 001: expected token: ";", but found ")"
    C:\Users\-.-\Pictures\Gamemodes\xBigBossx Script.pwn(211) : error 029: invalid expression, assumed zero
    C:\Users\-.-\Pictures\Gamemodes\xBigBossx Script.pwn(211) : 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.



    Code


    CreateDynamicObject(2942, 1496.13671875, -1749.9293212891, 15.088212013245, 0, 0, 180.25);
    CreateDynamicObject(2942, 1546.5606689453, -1679.5637207031, 13.204384803772, 0, 0, 0.4971923828125);
    CreateDynamicObject(2942, 1087.4376220703, -1803.6749267578, 13.245109558105, 0, 0, 181.49438476563);
    CreateDynamicObject(2942, 932.91314697266, -1239.6407470703, 16.148252487183, 0, 0, 89.244140625);
    CreateDynamicObject(2942, 732.35614013672, -1351.1682128906, 13.142899513245, 0, 0, 90.241943359375);
    CreateDynamicObject(2942, 1191.3444824219, -916.74786376953, 42.847599029541, 0, 0, 5.49169921875);
    CreateDynamicObject(2942, 1366.3469238281, -1273.7358398438, 13.189774513245, 0, 0, 5.4876708984375);
    CreateDynamicObject(2942, 1172.1220703125, -1326.7723388672, 14.996265411377, 0, 0, 90.237670898438);
    CreateDynamicObject(2942, -2025.2329101563, -101.99922180176, 34.81477355957, 0, 0, 179.98620605469);
    CreateDynamicObject(2942, -1980.7943115234, 141.30894470215, 27.33039855957, 0, 0, 268.23352050781);
    CreateDynamicObject(2942, -1650.0007324219, 1202.7108154297, 6.8928995132446, 0, 0, 0);

    Brauche mal gerade eure hilfe



    Fehler


    C:\Users\-.-\Pictures\Gamemodes\xBigBossx Script.pwn(111) : error 017: undefined symbol "PDCars"
    C:\Users\-.-\Pictures\Gamemodes\xBigBossx Script.pwn(111) : warning 215: expression has no effect
    C:\Users\-.-\Pictures\Gamemodes\xBigBossx Script.pwn(111) : error 001: expected token: ";", but found "]"
    C:\Users\-.-\Pictures\Gamemodes\xBigBossx Script.pwn(111) : error 029: invalid expression, assumed zero
    C:\Users\-.-\Pictures\Gamemodes\xBigBossx Script.pwn(111) : 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.



    Code:



    //PDCARS
    PDCars[0] = AddStaticVehicleEx(596,1602.8312,-1683.9319,5.6337,89.9336,1,53,1000); // SAPD Car 1
    PDCars[1] = AddStaticVehicleEx(596,1602.7247,-1688.1338,5.6260,89.7236,1,53,1000); // SAPD Car 2
    PDCars[2] = AddStaticVehicleEx(596,1602.6818,-1692.0481,5.6391,89.2332,1,53,1000); // SAPD Car 3
    PDCars[3] = AddStaticVehicleEx(596,1602.7667,-1696.1122,5.6329,90.4945,1,53,1000); // SAPD Car 4
    PDCars[4] = AddStaticVehicleEx(596,1602.8379,-1700.3588,5.6274,91.4479,1,53,1000); // SAPD Car 5
    PDCars[5] = AddStaticVehicleEx(596,1602.6279,-1704.2158,5.6343,90.4204,1,53,1000); // SAPD Car 6
    PDCars[6] = AddStaticVehicleEx(596,1595.5583,-1711.7593,5.6335,359.1875,1,53,1000); // SAPD Car 7
    PDCars[7] = AddStaticVehicleEx(596,1591.7217,-1711.7606,5.6340,358.4828,1,53,1000); // SAPD Car 8
    PDCars[8] = AddStaticVehicleEx(596,1587.5668,-1711.6199,5.6366,359.0317,1,53,1000); // SAPD Car 9
    PDCars[9] = AddStaticVehicleEx(596,1583.4099,-1711.8784,5.6334,359.9357,1,53,1000); // SAPD Car 10
    PDCars[10] = AddStaticVehicleEx(596,1578.6199,-1711.7716,5.6334,357.8534,1,53,1000); // SAPD Car 11
    PDCars[11] = AddStaticVehicleEx(596,1574.5674,-1711.8130,5.6332,359.0223,1,53,1000); // SAPD Car 12
    PDCars[12] = AddStaticVehicleEx(596,1570.5594,-1711.8707,5.6337,359.6084,1,53,1000); // SAPD Car 13
    PDCars[13] = AddStaticVehicleEx(596,1527.8876,-1687.8621,5.6342,269.7995,1,53,1000); // SAPD Car 14
    PDCars[14] = AddStaticVehicleEx(596,1527.8339,-1683.9460,5.6329,269.5689,1,53,1000); // SAPD Car 15
    PDCars[15] = AddStaticVehicleEx(596,1546.3927,-1684.3220,5.6291,92.0286,1,53,1000); // SAPD Car 16
    PDCars[16] = AddStaticVehicleEx(596,1546.3583,-1680.2749,5.6286,89.7739,1,53,1000); // SAPD Car 17
    PDCars[17] = AddStaticVehicleEx(596,1546.4424,-1676.2463,5.6331,87.5472,1,53,1000); // SAPD Car 19
    PDCars[18] = AddStaticVehicleEx(596,1546.1554,-1672.1615,5.6328,90.6479,1,53,1000); // SAPD Car 20
    PDCars[19] = AddStaticVehicleEx(596,1546.1888,-1668.0952,5.6343,90.9828,1,53,1000); // SAPD Car 21
    PDCars[20] = AddStaticVehicleEx(596,1546.3805,-1663.1318,5.6326,90.4199,1,53,1000); // SAPD Car 22
    PDCars[21] = AddStaticVehicleEx(596,1546.4377,-1659.0917,5.6356,89.8521,1,53,1000); // SAPD Car 23
    PDCars[22] = AddStaticVehicleEx(596,1546.4248,-1655.0211,5.6335,88.5019,1,53,1000); // SAPD Car 24
    PDCars[23] = AddStaticVehicleEx(596,1546.1348,-1651.0414,5.6357,91.3333,1,53,1000); // SAPD Car 25
    PDCars[24] = AddStaticVehicleEx(490,1538.7701,-1644.8920,5.6338,180.2638,1,53,1000); // SAPD Car Truck
    PDCars[25] = AddStaticVehicleEx(490,1534.5852,-1643.7656,5.6332,178.7362,1,53,1000); // SAPD Car Truck 2
    PDCars[26] = AddStaticVehicleEx(490,1530.4230,-1644.6782,5.6341,180.4717,1,53,1000); // SAPD Car Truck 3
    PDCars[27] = AddStaticVehicleEx(490,1526.4784,-1644.6782,5.6341,182.2000,1,53,1000); // SAPD Car Truck 4
    PDCars[28] = AddStaticVehicleEx(596,1535.7908,-1678.0121,13.1261,359.4795,1,53,1000); // PDCar (Draußen)
    PDCars[29] = AddStaticVehicleEx(596,1535.8911,-1666.9319,13.1256,359.4794,1,53,1000); // PDCar2 (Draußen)

    Also ich habe schon ein AdminSystem


    Hier mal bisschen was vom Script.



    ocmd:makeadmin(playerid,params[]){ if(GetPVarInt(playerid,"Eingeloggt") == 0)return SCM(playerid,COLOR_GRAU,"Du bist nicht Eingeloggt."); if(!IsPlayerAdmin(playerid))return SCM(playerid,COLOR_GRAU,"Melde dich bitte als RCON-Admin an."); new pID,alevel,string[128]; if(sscanf(params,"ui",pID,alevel))return SCM(playerid,COLOR_GRAU,"Info: /makeadmin [playerid/name] [adminlevel(0-8)]"); if(!IsPlayerConnected(pID))return SCM(playerid,COLOR_GRAU,"Info: Der angegebene Spieler ist zurzeit nicht Online."); if(alevel <0 || alevel >8)return SCM(playerid,COLOR_GRAU,"Bitte wähle ein Adminlevel zwischen 0-8"); if(alevel == 0) { SetPVarInt(playerid,"Adminlevel",0); format(string,128,"Admin %s hat dir deine Adminrechte komplett entzogen. Adminlevel: %d",SpielerName(playerid),alevel); SCM(pID,COLOR_BLAU,string); format(string,128,"Du hast %s die Adminrechte entzogen. (Adminlevel: %d)",SpielerName(pID),alevel); SCM(playerid,COLOR_BLAU,string); return 1; } format(string,128,"Admin %s hat dir das Adminlevel %d vergeben.",SpielerName(playerid),alevel); SCM(pID,COLOR_BLAU,string); format(string,128,"Du hast %s das Adminlevel %d gegeben.",SpielerName(pID),alevel); SCM(pID,COLOR_BLAU,string); SetPVarInt(playerid,"Adminlevel",alevel); printf("Admin: %s | pID: %s | Adminlevel vergeben: %d",SpielerName(playerid),SpielerName(pID),alevel); return 1;}



    CreateAcc(playerid){ new Spielerdatei[64]; format(Spielerdatei,64,"/%s/%s",ACC_SAVED,SpielerName(playerid)); dini_Create(Spielerdatei); dini_IntSet(Spielerdatei,"Adminlevel",0); dini_IntSet(Spielerdatei,"Ban",0); dini_FloatSet(Spielerdatei,"sX",0.0); dini_FloatSet(Spielerdatei,"sY",0.0); dini_FloatSet(Spielerdatei,"sZ",0.0); dini_FloatSet(Spielerdatei,"sR",0.0); LoadPlayer(playerid); printf("Account erstellt (/%s/%s)",ACC_SAVED,SpielerName(playerid)); return 1;}
    SpielerName(playerid){ new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); return name;}
    LoadPlayer(playerid){ new Spielerdatei[64]; format(Spielerdatei,64,"/%s/%s",ACC_SAVED,SpielerName(playerid)); SetPVarInt(playerid,"Adminlevel",dini_Int(Spielerdatei,"Adminlevel")); SetPVarInt(playerid,"Ban",dini_Int(Spielerdatei,"Ban")); SetPVarFloat(playerid,"sX",dini_Float(Spielerdatei,"sX")); SetPVarFloat(playerid,"sY",dini_Float(Spielerdatei,"sY")); SetPVarFloat(playerid,"sZ",dini_Float(Spielerdatei,"sZ")); SetPVarFloat(playerid,"sR",dini_Float(Spielerdatei,"sR")); SetPVarInt(playerid,"Eingeloggt",1); return 1;}
    SavePlayer(playerid){ new Spielerdatei[128]; format(Spielerdatei,64,"/%s/%s",ACC_SAVED,SpielerName(playerid)); if(GetPVarInt(playerid,"Eingeloggt") == 1) { dini_IntSet(Spielerdatei,"Adminlevel",GetPVarInt(playerid,"Adminlevel")); dini_IntSet(Spielerdatei,"Ban",GetPVarInt(playerid,"Ban")); dini_FloatSet(Spielerdatei,"sX",GetPVarFloat(playerid,"sX")); dini_FloatSet(Spielerdatei,"sY",GetPVarFloat(playerid,"sY")); dini_FloatSet(Spielerdatei,"sZ",GetPVarFloat(playerid,"sZ")); dini_FloatSet(Spielerdatei,"sR",GetPVarFloat(playerid,"sR")); } return 1;}



    wenn ihr noch was braucht melden.
    Ach ja und wie kann ich machen das man Makeadmin? über Rcon und als Normaler Level 8 Admin /makeadmin machen kann?

    Guten Abend
    Ich müsste mal wissen wie ich den Befehl Makeleader als Rcon login ausführen kann.


    Teil vom Code bitte sagt mir wie ich das einfügen muss.




    Code
    ocmd:makeadmin(playerid,params[]){    if(!IsPlayerAdmin(playerid))return SCM(playerid,COLOR_GRAU,"Du bist kein RCON-Admin!");	if(GetPVarInt(playerid,"Eingeloggt") == 0)return SCM(playerid,COLOR_GRAU,"Du bist nicht Eingeloggt.");	if(GetPVarInt(playerid,"Adminlevel") <1)return SCM(playerid,COLOR_GRAU,"Du bist nicht befugt diesen Befehl zu nutzen!");	new pID,alevel,string[128];	if(sscanf(params,"ui",pID,alevel))return SCM(playerid,COLOR_GRAU,"Info: /makeadmin [playerid/name] [adminlevel(0-8)]");	if(!IsPlayerConnected(pID))return SCM(playerid,COLOR_GRAU,"Info: Der angegebene Spieler ist zurzeit nicht Online.");	if(alevel <0 || alevel >8)return SCM(playerid,COLOR_GRAU,"Bitte wähle ein Adminlevel zwischen 0-8");	if(alevel == 0)	{	    SetPVarInt(playerid,"Adminlevel",0);		format(string,128,"Admin %s hat dir deine Adminrechte komplett entzogen. Adminlevel: %d",SpielerName(playerid),alevel);		SCM(pID,COLOR_BLAU,string);		format(string,128,"Du hast %s die Adminrechte entzogen. (Adminlevel: %d)",SpielerName(pID),alevel);		SCM(playerid,COLOR_BLAU,string);		return 1;	}	format(string,128,"Admin %s hat dir das Adminlevel %d vergeben.",SpielerName(playerid),alevel);	SCM(pID,COLOR_BLAU,string);	format(string,128,"Du hast %s das Adminlevel %d gegeben.",SpielerName(pID),alevel);	SCM(pID,COLOR_BLAU,string);	SetPVarInt(playerid,"Adminlevel",alevel);	printf("Admin: %s | pID: %s | Adminlevel vergeben: %d",SpielerName(playerid),SpielerName(pID),alevel);	return 1;}

    stock LoadAccount(playerid){new Spielerdatei[64];new name[MAX_PLAYER_NAME];GetPlayerName(playerid,name,sizeof(name));format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);SetPlayerScore(playerid,dini_Int(Spielerdatei,"Level"));GivePlayerMoney(playerid,dini_Int(Spielerdatei,"Geld"));SetPVarInt(playerid,"Adminlevel",dini_Int(Spielerdatei,"Adminlevel"));SetPVarInt(playerid,"Fraktion",dini_Int(Spielerdatei,"Fraktion"));SetPVarInt(playerid,"Baned",dini_Int(Spielerdatei,"Baned"));if(GetPVarInt(playerid,"Baned")==1){SendClientMessage(playerid,ROT,"Du bist vom Server gebannt.");Kick(playerid);}SetPVarInt(playerid,"loggedin",1);return 1;}
    ///////////////////////////////
    stock SpielerSpeichern(playerid){if(GetPVarInt(playerid,"loggedin")==1){new Spielerdatei[64];new name[MAX_PLAYER_NAME];GetPlayerName(playerid,name,sizeof(name));format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);dini_IntSet(Spielerdatei,"Level",GetPlayerScore(playerid));dini_IntSet(Spielerdatei,"Geld",GetPlayerMoney(playerid));dini_IntSet(Spielerdatei,"Adminlevel",GetPVarInt(playerid,"Adminlevel"));dini_IntSet(Spielerdatei,"Fraktion",GetPVarInt(playerid,"Fraktion"));dini_IntSet(Spielerdatei,"Baned",GetPVarInt(playerid,"Baned"));}return 1;}

    habe jetzt mal versucht ein eigenes zu machen jetzt habe ich das Problem das ein Error kommt und ich nicht weis was das ist


    C:\Users\-.-\Desktop\Register.pwn(397) : error 001: expected token: "#endif", but found "-end of file-"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    1 Error.