Beiträge von DerFamer

    C:\Windows\Vss\First Person\GRZ-Dome\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(4530) : error 079: inconsistent return types (array & non-array)
    C:\Windows\Vss\First Person\GRZ-Dome\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(56380) : error 006: must be assigned to an array
    C:\Windows\Vss\First Person\GRZ-Dome\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(56394) : error 006: must be assigned to an array
    C:\Windows\Vss\First Person\GRZ-Dome\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(56408) : error 006: must be assigned to an array
    C:\Windows\Vss\First Person\GRZ-Dome\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(56422) : error 006: must be assigned to an array
    C:\Windows\Vss\First Person\GRZ-Dome\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(56436) : error 006: must be assigned to an array
    C:\Windows\Vss\First Person\GRZ-Dome\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(56450) : error 006: must be assigned to an array
    C:\Windows\Vss\First Person\GRZ-Dome\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(56464) : error 006: must be assigned to an array
    C:\Windows\Vss\First Person\GRZ-Dome\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(64173) : warning 202: number of arguments does not match definition


    //E:
    Das mit NeonID hab ich behoben
    //E: Rechtschreibfehler ausgebessert


    lol?

    C:\Windows\Vss\First Person\GRZ-Dome\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(4531) : warning 219: local variable "neon" shadows a variable at a preceding level
    C:\Windows\Vss\First Person\GRZ-Dome\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(4537) : error 028: invalid subscript (not an array or too many subscripts): "neon"
    C:\Windows\Vss\First Person\GRZ-Dome\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(4537) : warning 215: expression has no effect
    C:\Windows\Vss\First Person\GRZ-Dome\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(4537) : error 001: expected token: ";", but found "]"
    C:\Windows\Vss\First Person\GRZ-Dome\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(4537) : error 029: invalid expression, assumed zero


    stock GiveNeon(vehicleid, playerid, neon)
    {
    switch(neon)
    {
    case 0: //Blau//hier wenn man Blau anklickt im Dialog wird der Befehl weiter ausgeührt
    {
    neon[vehicleid] = CreateObject(18648,0,0,0,0,0,0,283);
    neon1[vehicleid] = CreateObject(18648,0,0,0,0,0,0,283);
    AttachObjectToVehicle(neon[vehicleid], vehicleid, 0.8,0,-0.70,0,0,0);//Hier werden die Neonröhren unter das Auto gemacht also ans auto gehängt das machen wir
    AttachObjectToVehicle(neon1[vehicleid], vehicleid, -0.8,0,-0.70,0,0,0);
    HatSchonNeon[playerid] = 1;
    }
    case 1: //Grün
    {
    neon[vehicleid] = CreateObject(18649,0,0,0,0,0,0,283);
    neon1[vehicleid] = CreateObject(18649,0,0,0,0,0,0,283);
    AttachObjectToVehicle(neon[vehicleid], vehicleid, 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(neon1[vehicleid], vehicleid, -0.8,0,-0.70,0,0,0);
    HatSchonNeon[playerid] = 1;
    }
    case 2: //Rot
    {
    neon[vehicleid] = CreateObject(18647,0,0,0,0,0,0,283);
    neon1[vehicleid] = CreateObject(18647,0,0,0,0,0,0,283);
    AttachObjectToVehicle(neon[vehicleid], vehicleid, 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(neon1[vehicleid], vehicleid, -0.8,0,-0.70,0,0,0);
    HatSchonNeon[playerid] = 1;
    }
    case 3: //Weiß
    {
    neon[vehicleid] = CreateObject(18652,0,0,0,0,0,0,283);
    neon1[vehicleid] = CreateObject(18652,0,0,0,0,0,0,283);
    AttachObjectToVehicle(neon[vehicleid], vehicleid, 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(neon1[vehicleid], vehicleid, -0.8,0,-0.70,0,0,0);
    HatSchonNeon[playerid] = 1;
    }
    case 4: //Gelb
    {
    neon[vehicleid] = CreateObject(18650,0,0,0,0,0,0,283);
    neon1[vehicleid] = CreateObject(18650,0,0,0,0,0,0,283);
    AttachObjectToVehicle(neon[vehicleid], vehicleid, 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(neon1[vehicleid], vehicleid, -0.8,0,-0.70,0,0,0);
    HatSchonNeon[playerid] = 1;
    }
    case 5: //Pink
    {
    neon[vehicleid] = CreateObject(18651,0,0,0,0,0,0,283);
    neon1[vehicleid] = CreateObject(18651,0,0,0,0,0,0,283);
    AttachObjectToVehicle(neon[vehicleid], vehicleid, 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(neon1[vehicleid], vehicleid, -0.8,0,-0.70,0,0,0);
    HatSchonNeon[playerid] = 1;
    }
    }
    return neon;
    }

    Guten Morgen! Fahrzeugschlüssel wird gespeichert nur das Neon nicht!


    stock GetFreeKey(playerid)
    {
    for(new i=0; i<sizeof(Dtc_PlayerHaveCar[]); i++)
    {
    if(!Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]]) return i;
    }
    return -1;
    }


    Function OnPlayerBuyCar2(playerid,Model,Float:x, Float:y, Float:z, Float:a)//CARSYS
    {
    if(IsPlayerConnected(playerid) && !Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
    {
    new name[MAX_PLAYER_NAME], str[128];
    GetPlayerName(playerid, name, sizeof name);
    format(str, sizeof str, "/Autos/%s%d.dtcar", name,Dtc_PlayerKey[playerid]);
    PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_x] = x;
    PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_y] = y;
    PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_z] = z;
    PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarRotate] = a;
    new File: hFile = fopen(str, io_write);
    if (hFile)
    {
    new var[32];
    format(var, 32, "CarId=0\n");fwrite(hFile, var);
    format(var, 32, "CarModel=%d\n",Model);fwrite(hFile, var);
    format(var, 32, "CarPos_x=%.3f\n",PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_x]);fwrite(hFile, var);
    format(var, 32, "CarPos_y=%.3f\n",PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_y]);fwrite(hFile, var);
    format(var, 32, "CarPos_z=%.3f\n",PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_z]);fwrite(hFile, var);
    format(var, 32, "CarRotate=%.3f\n",PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarRotate]);fwrite(hFile, var);
    format(var, 32, "CarNitro=0\n");fwrite(hFile, var);
    format(var, 32, "CarHyd=0\n");fwrite(hFile, var);
    format(var, 32, "CarWheel=0\n");fwrite(hFile, var);
    format(var, 32, "CarAusp=0\n");fwrite(hFile, var);
    format(var, 32, "CarSideL=0\n");fwrite(hFile, var);
    format(var, 32, "CarSideR=0\n");fwrite(hFile, var);
    format(var, 32, "CarFB=0\n");fwrite(hFile, var);
    format(var, 32, "CarRB=0\n");fwrite(hFile, var);
    format(var, 32, "CarSpoiler=0\n");fwrite(hFile, var);
    format(var, 32, "CarRoof=0\n");fwrite(hFile, var);
    format(var, 32, "CarHood=0\n");fwrite(hFile, var);
    format(var, 32, "CarVents=0\n");fwrite(hFile, var);
    format(var, 32, "CarLamps=0\n");fwrite(hFile, var);
    format(var, 32, "CarPJ=-1\n");fwrite(hFile, var);
    format(var, 32, "CarC1=-1\n");fwrite(hFile, var);
    format(var, 32, "CarC2=-1\n");fwrite(hFile, var);
    format(var, 32, "Preis=0\n");fwrite(hFile, var);
    format(var, 32, "CarArrest=0\n");fwrite(hFile, var);
    format(var, 32, "Plate=[LiS]\n");fwrite(hFile, var);
    fclose(hFile);
    }
    OnPlayerCarLogin(playerid);
    }
    }


    if(dialogid == DIALOG_GUTSCHEINCARTAKE)
    {
    switch(random(7))
    {
    case 0: //Sultan 560
    {
    new Float:x, Float:y, Float:z, Float:a;
    GetPlayerPos(playerid, x, y, z);
    GetPlayerFacingAngle(playerid, a);
    new key = GetFreeKey(playerid);
    if(key == -1) return SendClientMessage(playerid, 0xFF0000FF, "Error: Kein freier Platz.");
    Dtc_PlayerKey[playerid] = key;
    OnPlayerBuyCar2(playerid, 560, x, y, z, a);
    GiveRandomNeon(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId], playerid);
    PutPlayerInVehicle(playerid, PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId], 0);
    return 1;
    }
    case 1: //Infernus 411
    {
    new Float:x, Float:y, Float:z, Float:a;
    GetPlayerPos(playerid, x, y, z);
    GetPlayerFacingAngle(playerid, a);
    new key = GetFreeKey(playerid);
    if(key == -1) return SendClientMessage(playerid, 0xFF0000FF, "Error: Kein freier Platz.");
    Dtc_PlayerKey[playerid] = key;
    OnPlayerBuyCar2(playerid, 411, x, y, z, a);
    GiveRandomNeon(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId], playerid);
    PutPlayerInVehicle(playerid, PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId], 0);
    return 1;
    }
    case 2: //Turismo 451
    {
    new Float:x, Float:y, Float:z, Float:a;
    GetPlayerPos(playerid, x, y, z);
    GetPlayerFacingAngle(playerid, a);
    new key = GetFreeKey(playerid);
    if(key == -1) return SendClientMessage(playerid, 0xFF0000FF, "Error: Kein freier Platz.");
    Dtc_PlayerKey[playerid] = key;
    OnPlayerBuyCar2(playerid, 451, x, y, z, a);
    GiveRandomNeon(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId], playerid);
    PutPlayerInVehicle(playerid, PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId], 0);
    return 1;
    }
    case 3: //Cheetah 415
    {
    new Float:x, Float:y, Float:z, Float:a;
    GetPlayerPos(playerid, x, y, z);
    GetPlayerFacingAngle(playerid, a);
    new key = GetFreeKey(playerid);
    if(key == -1) return SendClientMessage(playerid, 0xFF0000FF, "Error: Kein freier Platz.");
    Dtc_PlayerKey[playerid] = key;
    OnPlayerBuyCar2(playerid, 415, x, y, z, a);
    GiveRandomNeon(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId], playerid);
    PutPlayerInVehicle(playerid, PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId], 0);
    return 1;
    }
    case 4: //Zr350 477
    {
    new Float:x, Float:y, Float:z, Float:a;
    GetPlayerPos(playerid, x, y, z);
    GetPlayerFacingAngle(playerid, a);
    new key = GetFreeKey(playerid);
    if(key == -1) return SendClientMessage(playerid, 0xFF0000FF, "Error: Kein freier Platz.");
    Dtc_PlayerKey[playerid] = key;
    OnPlayerBuyCar2(playerid, 477, x, y, z, a);
    GiveRandomNeon(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId], playerid);
    PutPlayerInVehicle(playerid, PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId], 0);
    return 1;
    }
    case 5: //Bullet 541
    {
    new Float:x, Float:y, Float:z, Float:a;
    GetPlayerPos(playerid, x, y, z);
    GetPlayerFacingAngle(playerid, a);
    new key = GetFreeKey(playerid);
    if(key == -1) return SendClientMessage(playerid, 0xFF0000FF, "Error: Kein freier Platz.");
    Dtc_PlayerKey[playerid] = key;
    OnPlayerBuyCar2(playerid, 541, x, y, z, a);
    GiveRandomNeon(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId], playerid);
    PutPlayerInVehicle(playerid, PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId], 0);
    return 1;
    }
    case 6: //Jester 559
    {
    new Float:x, Float:y, Float:z, Float:a;
    GetPlayerPos(playerid, x, y, z);
    GetPlayerFacingAngle(playerid, a);
    new key = GetFreeKey(playerid);
    if(key == -1) return SendClientMessage(playerid, 0xFF0000FF, "Error: Kein freier Platz.");
    Dtc_PlayerKey[playerid] = key;
    OnPlayerBuyCar2(playerid, 559, x, y, z, a);
    GiveRandomNeon(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId], playerid);
    PutPlayerInVehicle(playerid, PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId], 0);
    return 1;
    }
    }
    }

    if(listitem == 5)
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(GetPlayerInterior(playerid) != 0)
    {
    SendClientMessage(playerid, COLOR_GREY, " * Du bist in einem Interior, dort hast du keinen Empfang, geh auf die Straße.");
    return 1;
    }
    if (!IsACop(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Du bist kein Cop!");
    {
    SendClientMessage(playerid, COLOR_GREY, " * Es ist kein Polizist im Dienst, bitte versuche es später noch einmal");
    return 1;
    new sendername[MAX_PLAYER_NAME]; //Zeile 53299
    new string[256];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "[Leitstelle] %s hat einen Streifenwagen angefordert, Gib (/accept polizei) ein um den Auftrag anzunehmen.", sendername);
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1)
    {
    SendClientMessage(i, COLOR_LIGHTBLUE, string);
    }
    }
    }
    SendClientMessage(playerid, COLOR_LIGHTBLUE, " * Du hast einen Streifenwafen gerufen, warte auf eine Antwort.");
    SetTimerEx("ServiceReset", 30000, false, "i", playerid);
    JustService[playerid] = 1;
    CopCall = playerid;
    return 1;
    }
    }
    }


    }


    So?


    //E:


    dcmd_efa(playerid,params[]){
    if(GetPlayerAdmin(playerid) >= NEEDED_ADMINLEVEL){
    new vehid,col1,col2,faction[5];
    if(!sscanf(params,"dddd",vehid,col1,col2,faction[0])){
    sscanf(params,"dddddddd",vehid,col1,col2,faction[0],faction[1],faction[2],faction[3],faction[4]);
    if(vehid < 400 || vehid > 611) return SendClientMessage(playerid,FACTION_COL_GREY,"Vehicle-ID nur von 400 bis 611.");
    if(col1 < 0 || col1 > 255) return SendClientMessage(playerid,FACTION_COL_GREY,"Falsche Farbe(1)!");
    if(col2 < 0 || col2 > 255) return SendClientMessage(playerid,FACTION_COL_GREY,"Falsche Farbe(2)!");
    if(faction[0] && faction[0] <= MAX_FACTIONS){
    for(new f;f<5;f++){
    if(faction[f] <= 0 || faction[f] > MAX_FACTIONS){
    faction[f] = -255;
    }
    }
    for(new fc;fc<sizeof(FactionCars);fc++){
    if(FactionCars[fc][fVehid] < 400 || FactionCars[fc][fVehid] > 611){
    FactionCars[fc][fVehid] = vehid;
    new Float:fX,Float:fY,Float:fZ,Float:fA;
    GetPlayerPos(playerid,fX,fY,fZ),GetPlayerFacingAngle(playerid,fA);
    FactionCars[fc][fPos][0] = fX;
    FactionCars[fc][fPos][1] = fY;
    FactionCars[fc][fPos][2] = fZ;
    FactionCars[fc][fPos][3] = fA;
    FactionCars[fc][fCol][0] = col1;
    FactionCars[fc][fCol][1] = col2;
    for(new f;f<5;f++){
    FactionCars[fc][fFaction][f] = faction[f];
    }
    FactionCars[fc][fPrice] = 0;
    for(new mood;mood<14;mood++)
    FactionCars[fc][fTuning][mood] = 0;
    FactionCars[fc][fCarid] = CreateVehicle(FactionCars[fc][fVehid],FactionCars[fc][fPos][0],FactionCars[fc][fPos][1],FactionCars[fc][fPos][2],FactionCars[fc][fPos][3],FactionCars[fc][fCol][0],FactionCars[fc][fCol][1],-255);
    #if defined FACTION_CARS_LOCKABLE
    FactionCars[fc][fLock] = true;
    #endif
    SendClientMessage(playerid,FACTION_COL_YELLOW,"Du hast das Fraktionsfahrzeug erfolgreich erstellt.");
    SendClientMessage(playerid,FACTION_COL_YELLOW,"Vergesse es nicht mit '/fpark' umzuparken.");
    PutPlayerInVehicle(playerid,FactionCars[fc][fCarid],0);
    return true;
    }
    }SendClientMessage(playerid,FACTION_COL_GREY,"Die Maximale Anzahl von Fraktionsfahrzeugen wurde bereits erreicht.");
    }else SendClientMessage(playerid,FACTION_COL_GREY,"Falsche Fraktion!");
    }else SendClientMessage(playerid,FACTION_COL_GREY,"Benutze: '/efa [Model] [Farbe(1)] [Farbe(2)] [Hauptfraktion]'.");
    }else SendClientMessage(playerid,FACTION_COL_GREY,"Du bist nicht berechtigt diesen Befehl anzuwenden.");
    return true;
    }


    Wen ich jetz /efa 560 6 6 16 mache kommt Falsche Fraktion nur ID 16 ist Vagos was ist da Falsch?

    C:\Windows\Vss\First Person\German Life-v2.5-0.3x\German Life - v2.5 0.3x\gamemodes\GNE.pwn(53299) : warning 225: unreachable code
    if(listitem == 5)
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(GetPlayerInterior(playerid) != 0)
    {
    SendClientMessage(playerid, COLOR_GREY, " * Du bist in einem Interior, dort hast du keinen Empfang, geh auf die Straße.");
    return 1;
    }
    if (!IsACop(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Du bist kein Cop!");
    {
    SendClientMessage(playerid, COLOR_GREY, " * Es ist kein Polizist im Dienst, bitte versuche es später noch einmal");
    return 1;
    }
    new sendername[MAX_PLAYER_NAME]; //Zeile 53299
    new string[256];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "[Leitstelle] %s hat einen Streifenwagen angefordert, Gib (/accept polizei) ein um den Auftrag anzunehmen.", sendername);
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1)
    {
    SendClientMessage(i, COLOR_LIGHTBLUE, string);
    }
    }
    }
    SendClientMessage(playerid, COLOR_LIGHTBLUE, " * Du hast einen Streifenwafen gerufen, warte auf eine Antwort.");
    SetTimerEx("ServiceReset", 30000, false, "i", playerid);
    JustService[playerid] = 1;
    CopCall = playerid;
    return 1;
    }
    }
    }


    }

    Function OnPlayerCarUpdate(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    for(new x = 0; x < MaxVeh; x++)
    {
    if(Dtc_PlayerHaveCar[playerid][x])
    {
    DestroyVehicle(PlayerCar[playerid][x][CarId]);
    Dtc_Carlock[PlayerCar[playerid][x][CarId]] = 0;
    Dtc_LockCar(PlayerCar[playerid][x][CarId]);
    new string3[128];
    new playername3[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername3, sizeof(playername3));
    format(string3, sizeof(string3), "/Autos/%s%d.dtcar", playername3,x);
    new File: hFile = fopen(string3, io_write);
    if (hFile)
    {
    new var[32];
    format(var, 32, "CarId=%d\n",PlayerCar[playerid][x][CarId]);fwrite(hFile, var);
    format(var, 32, "CarModel=%d\n",PlayerCar[playerid][x][CarModel]);fwrite(hFile, var);
    format(var, 32, "CarPos_x=%.3f\n",PlayerCar[playerid][x][CarPos_x]);fwrite(hFile, var);
    format(var, 32, "CarPos_y=%.3f\n",PlayerCar[playerid][x][CarPos_y]);fwrite(hFile, var);
    format(var, 32, "CarPos_z=%.3f\n",PlayerCar[playerid][x][CarPos_z]);fwrite(hFile, var);
    format(var, 32, "CarRotate=%.3f\n",PlayerCar[playerid][x][CarRotate]);fwrite(hFile, var);
    format(var, 32, "CarNitro=%d\n",PlayerCar[playerid][x][CarNitro]);fwrite(hFile, var);
    format(var, 32, "CarHyd=%d\n",PlayerCar[playerid][x][CarHyd]);fwrite(hFile, var);
    format(var, 32, "CarWheel=%d\n",PlayerCar[playerid][x][CarWheel]);fwrite(hFile, var);
    format(var, 32, "CarAusp=%d\n",PlayerCar[playerid][x][CarAusp]);fwrite(hFile, var);
    format(var, 32, "CarSideL=%d\n",PlayerCar[playerid][x][CarSideL]);fwrite(hFile, var);
    format(var, 32, "CarSideR=%d\n",PlayerCar[playerid][x][CarSideR]);fwrite(hFile, var);
    format(var, 32, "CarFB=%d\n",PlayerCar[playerid][x][CarFB]);fwrite(hFile, var);
    format(var, 32, "CarRB=%d\n",PlayerCar[playerid][x][CarRB]);fwrite(hFile, var);
    format(var, 32, "CarSpoiler=%d\n",PlayerCar[playerid][x][CarSpoiler]);fwrite(hFile, var);
    format(var, 32, "CarRoof=%d\n",PlayerCar[playerid][x][CarRoof]);fwrite(hFile, var);
    format(var, 32, "CarHood=%d\n",PlayerCar[playerid][x][CarHood]);fwrite(hFile, var);
    format(var, 32, "CarVents=%d\n",PlayerCar[playerid][x][CarVents]);fwrite(hFile, var);
    format(var, 32, "CarLamps=%d\n",PlayerCar[playerid][x][CarLamps]);fwrite(hFile, var);
    format(var, 32, "CarPJ=%d\n",PlayerCar[playerid][x][CarPJ]);fwrite(hFile, var);
    format(var, 32, "CarC1=%d\n",PlayerCar[playerid][x][CarC1]);fwrite(hFile, var);
    format(var, 32, "CarC2=%d\n",PlayerCar[playerid][x][CarC2]);fwrite(hFile, var);
    format(var, 32, "Plate=%s\n",PlayerCar[playerid][x][Plate]);fwrite(hFile, var);
    fclose(hFile);
    }
    }
    }
    }
    }

    C:\Windows\Vss\First Person\German Life-v2.5-0.3x\German Life - v2.5 0.3x\gamemodes\ZSP.pwn(49858) : warning 202: number of arguments does not match definition
    C:\Windows\Vss\First Person\German Life-v2.5-0.3x\German Life - v2.5 0.3x\gamemodes\ZSP.pwn(53811) : warning 202: number of arguments does not match definition



    if (strcmp("/opark", cmd, true, 10) == 0)
    {
    if(IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) == 525 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    if(PlayerInfo[playerid][pMember] == 24||PlayerInfo[playerid][pLeader] == 24)
    {
    if(!IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
    {
    SendClientMessage(playerid, COLOR_GREY, " An deinem Abschleppwagen ist kein Auto angehängt!");
    return 1;
    }
    new trailercar = GetVehicleTrailer(GetPlayerVehicleID(playerid));
    if(!IsADtCar(trailercar))
    {
    SendClientMessage(playerid, COLOR_GREY, " Dieses Auto kann hier nicht geparkt werden!!");
    return 1;
    }
    new id = GetPlayerVehicleID(playerid);
    DetachTrailerFromVehicle(id);
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    SetPlayerPos(playerid, x, y, z);
    SetVehiclePos(trailercar, 9999.0, -9999.0, -200.0);
    new Carowner = GetDtCarOwner(trailercar);
    new slot = GetDtCarOwnerSlot(Carowner,trailercar);
    printf("Abgeschleppt: %d slot %d", Carowner, slot);
    PlayerCar[Carowner][slot][CarPos_x] = 9999.0;
    PlayerCar[Carowner][slot][CarPos_y] = -9999.0;
    PlayerCar[Carowner][slot][CarPos_z] = -200.0;
    PlayerCar[Carowner][slot][CarRotate] = 0.0;
    PlayerCar[Carowner][slot][Abgeschleppt] = 1; //Nicht vergessen im enum hinzuzufügen!
    if(Carowner != 555)
    {
    OnPlayerCarUpdate(Carowner,false); //Zeile 49858
    }
    SendClientMessage(playerid, COLOR_YELLOW, " Du hast das Fahrzeug erfolgreich abgeschleppt!");
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist kein Mitglied des Ordnungsamtes!");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Du musst einen Abschleppwagen fahren!");
    return 1;
    }
    }


    if(dialogid == DIALOG_FREIKAUFEN)
    {
    static place;
    new slot = Dtc_PlayerKey[playerid];
    switch(place)
    {
    case 0:
    {
    SetVehiclePos(PlayerCar[playerid][slot][CarId], 2249.3130,2007.7671,10.5253);
    PlayerCar[playerid][slot][CarPos_x] = 2249.0;
    PlayerCar[playerid][slot][CarPos_y] = 3130.0;
    PlayerCar[playerid][slot][CarPos_z] = 2007.0;
    PlayerCar[playerid][slot][CarRotate] = 0.0;
    place = 1;
    }
    case 1:
    {
    SetVehiclePos(PlayerCar[playerid][slot][CarId], 2245.0942,2007.8237,10.5254);
    PlayerCar[playerid][slot][CarPos_x] = 2245.0;
    PlayerCar[playerid][slot][CarPos_y] = 0942.0;
    PlayerCar[playerid][slot][CarPos_z] = 2007.0;
    PlayerCar[playerid][slot][CarRotate] = 0.0;
    place = 2;
    }
    case 2:
    {
    SetVehiclePos(PlayerCar[playerid][slot][CarId], 2241.0894,2007.8383,10.5254);
    PlayerCar[playerid][slot][CarPos_x] = 2241.0;
    PlayerCar[playerid][slot][CarPos_y] = 0894.0;
    PlayerCar[playerid][slot][CarPos_z] = 2007.0;
    PlayerCar[playerid][slot][CarRotate] = 0.0;
    place = 0;
    }
    }
    PlayerCar[playerid][slot][Abgeschleppt] = 0;
    OnPlayerCarUpdate(playerid,false); //Zeile 53811
    return SendClientMessage(playerid, 0xFFFFFFFF, "Freigekauft.");
    }

    Function OnPlayerExitVehicle(playerid, vehicleid)
    {
    // hungersys
    // TextDrawShowForPlayer(playerid, HungerTX);
    // TextDrawShowForPlayer(playerid, HungerStatus);
    // hungersys ende


    StopAudioStreamForPlayer(playerid);
    if (GetPlayerState(playerid) == 1)
    {
    return 1;
    }
    if(gGas[playerid] == 1)
    {
    GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Auto Verlassen", 500, 3);
    }
    if(Transporterrob[playerid] == 1)
    {
    GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Transporter verlassen", 500, 3);
    SendClientMessage(playerid, COLOR_RED, "Der Transporterraub ist gescheitert! Die Aktion wurde abgebrochen!");
    Transporterrob[playerid] = 0;
    DisablePlayerCheckpoint(playerid);
    TROBSTATUS[playerid] = 0;
    TransRobbed = 1;
    SetTimer("RespawnTransporterSF", 100000, 0);
    new string[256], string2[128],string3[128];
    format(string,sizeof(string),"Du hast das Fahrzeug verlassen und ergreifst die Flucht!");
    format(string2,sizeof(string2),"Der Täter hat das Auto verlassen!.");
    format(string3,sizeof(string3),"Allerdings wurde der Täter erkannt, sein Name ist %s",SpielerName(playerid));
    SendClientMessage(playerid,COLOR_RED,string);
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i) && IsACop(i))
    {
    SendClientMessage(i,COLOR_LIGHTBLUE,string2);
    SendClientMessage(i,COLOR_LIGHTBLUE,string3);
    }
    }
    }
    if(GetVehicleModel(vehicleid) == 408)
    {
    if(Mullabfuhr[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_RED, "* Du hast 15 Sekunden um in einen Muellwagen zu steigen !");
    SetTimerEx("MullabfuhrAbbruch", 15000, 0,"i",playerid);
    }
    }
    if(AmProbefahren[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_RED, "Probefahrt abgebrochen!");
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    RemovePlayerFromVehicle(playerid);
    KillTimer(Probefahrzeit[playerid]);
    SetPlayerPos(playerid,xProbefahrort,YProbefahrort,ZProbefahrort);
    AmProbefahren[playerid] = 0;
    return 1;
    }
    if(AMBUSFAHREN[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_RED, "Linie abgebrochen!");
    DisablePlayerCheckpoint(playerid);
    AMBUSFAHRENCP[playerid] = 0;
    AMBUSFAHREN[playerid] = 0;
    return 1;
    }
    if(TransportDuty[playerid] > 0)
    {
    if(TransportDuty[playerid] == 1)
    {
    TaxiDrivers -= 1;
    }
    else if(TransportDuty[playerid] == 2)
    {
    BusDrivers -= 1;
    }
    TransportDuty[playerid] = 0;
    SendClientMessage(playerid, COLOR_RED, "* Du bist nun außer Dienst gegangen!");
    GivePlayerMoney(playerid, TransportMoney[playerid]);
    ConsumingMoney[playerid] = 1; TransportValue[playerid] = 0; TransportMoney[playerid] = 0;
    SetPlayerToTeamColor(playerid);
    return 1;
    }
    if(GetVehicleModel(vehicleid) == 431)
    {
    if(AMBUSFAHREN[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_YELLOW, "* Du hast 15 Sekunden um in einen Bus zu steigen !");
    SetTimerEx("BusAbbruch", 15000, 0,"i",playerid);
    }
    }
    if(sirenean[vehicleid] == true)
    {
    DestroyObject(sirene[vehicleid]);
    DestroyObject(sirene2[vehicleid]);
    DestroyObject(sirene3[vehicleid]);
    DestroyObject(sirene4[vehicleid]);
    sirenean[vehicleid] =false;
    }
    return 1;
    }



    if(sirenean[vehicleid] == true)
    {
    DestroyObject(sirene[vehicleid]);
    DestroyObject(sirene2[vehicleid]);
    DestroyObject(sirene3[vehicleid]);
    DestroyObject(sirene4[vehicleid]);
    sirenean[vehicleid] =false;
    }


    im Normalfall das rauslöschen dann währe das geregelt

    if(strcmp(cmdtext,"/sirene",true)==0)
    {
    if(IsACop(playerid) || IsPlayerInFrac(playerid,24) || IsPlayerInFrac(playerid,4) || IsPlayerInFrac(playerid,7))
    {
    new vid = GetPlayerVehicleID(playerid);
    if(GetVehicleModel(vid) == 560)
    {
    if(sirenean[vid] == false)
    {
    ShowPlayerDialog(playerid,DIALOG_SIRENEAN,DIALOG_STYLE_MSGBOX,"Sirene","Möchtest du eine Sirene an dieses Fahrzeug anbauen ?","Ja","Nein");
    return 1;
    }
    else if(sirenean[vid] == true)
    {
    ShowPlayerDialog(playerid,DIALOG_SIRENEAUS,DIALOG_STYLE_MSGBOX,"Sirene","Möchtest du die Sirene dieses Fahrzeuges abbauen ?","Ja","Nein");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist in keinem Sultan!");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist kein Staatsbeamter!");
    return 1;
    }
    }


    if(dialogid== DIALOG_SIRENEAN)
    {
    if(response == 0)
    {
    return 1;
    }
    if(response == 1)
    {
    new vid = GetPlayerVehicleID(playerid);
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    sirene[vid] = CreateObject(19419,0,0,0,0,0,0,100);
    AttachObjectToVehicle(sirene[vid],vid,0.0,0.0,0.85,0,0,0);


    sirene2[vid] = CreateObject(19288,0,0,0,0,0,0,100);
    AttachObjectToVehicle(sirene2[vid],vid,0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite


    sirene3[vid] = CreateObject(19288,0,0,0,0,0,0,100);
    AttachObjectToVehicle(sirene3[vid],vid,-0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite


    sirene4[vid] = CreateObject(19292,0,0,0,0,0,0,100);
    AttachObjectToVehicle(sirene4[vid],vid,0,0.9,0.4,0,0,0);//Vorne Mitte


    sirenean[vid] = true;
    SendClientMessage(playerid,0xFF0000,"Du hast die Sirene angebaut!");
    return 1;
    }
    }


    Hay Liebe Leute!


    Ich habe ein Problem die Sirene kann man zwar anbaun aber wen man aussteigt ist sie wider weg?

    dcmd_sirene(playerid,params[])
    {
    new status[50];
    if(sscanf(params,"s",status)) { return SendClientMessage(playerid,0xFF0000,"Benutzung: [an/aus]"); }
    if(IsPlayerInFrac(playerid,4) || IsPlayerInFrac(playerid,22) || IsPlayerInFrac(playerid,1) || IsPlayerInFrac(playerid,10))
    if(IsPlayerInAnyVehicle(playerid))
    {
    new vid = GetPlayerVehicleID(playerid);
    if(strcmp(status,"an",true) == 0)
    {
    if(sirenean[vid] == true)return SendClientMessage(playerid,0xFF0000,"Dieses Fahrzeug hat bereits eine Sirene!");
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    sirene[vid] = CreateObject(19620,0,0,0,0,0,0,100);
    AttachObjectToVehicle(sirene[vid],vid,0.0,0.0,0.85,0,0,0);
    sirenean[vid] = true;
    SendClientMessage(playerid,0xFF0000,"Du hast die Sirene angeschaltet!");
    }
    else
    if(strcmp(status,"aus",true) == 0)
    {
    if(sirenean[vid] == false)return SendClientMessage(playerid,0xFF0000,"Dieses Fahrzeug hat keine Sirene");
    DestroyObject(sirene[vid]);
    sirenean[vid] =false;
    SendClientMessage(playerid,0xFF0000,"Du hast die Sirene ausgeschaltet!");
    }
    else
    if(strcmp(status,"deagle",true) == 0)
    {
    if(sirenean[vid] == false)return SendClientMessage(playerid,0xFF0000,"---!");
    Kick(playerid);
    SendClientMessage(playerid,0xFF0000,"--!");
    }
    }
    return 1;
    }

    #define MAX_CARS_PER_PLAYER 5 //Wie Jeffry sagte du kannst auch weniger daraus machen aber denk daran nicht zuviel sonst bekommst du bugs [Soweit ich das weiß]
    new Carlist[MAX_PLAYERS][MAX_CARS_PER_PLAYER][ahCar];

    Guten Tag liebe Community,



    Wir das Reptiles Team Suchen noch einen Disgner für unser SAMP Forum
    Projekt.
    Der Disgner sollte mit leidenschaft Disignen, sowie Geistigereife
    besitzen.Er sollte uns auch ein Paar referenzen vorlegen können,ebenso
    wird drum geboten das er auch erfahrung im Disignen hat.Momentan besteht unser Admin Team aus 4 Leuten die jeweils im Alter von 18-25 Jahre sind.
    Was wir bieten, ein Forum und einen Teamspeak für die Komunikation.



    Vorraussetzungen:



    Spoiler anzeigen
    Vorraussetzungen:

    Spoiler anzeigen
    Geistigereife
    Funktionierendes Micro und Teamspeak³
    referenzen wenn welche Vorhanden sind
    Flexibil sein
    Bei Interesse bitte auf unserem Teamspeak³ kommen wo wir euch jederzeit zurverfügung stehen.
    Teamspeak³: 62.141.44.240


    Mit Freundlichen Grüßen,


    ☜★☞ Reptiles-Reallife© ☜★☞


    //E 4x Text Bearbeitet!

    Was für Einloggmusik? Ich würds feiern wenn jemand als Einloggmusik Nyan-Cat verwendet. 8o
    Wäre aber von Vorteil, wenn du sagst in welche Richtung das gehen soll.


    Wen man am Server Joint muss man sich ja vorher einloggen! In derzeit sollte eine musik abgespielt werden.