Beiträge von DerFamer

    C:\Windows\Vss\First Person\German-Black-Reallife\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(52556) : error 029: invalid expression, assumed zero
    C:\Windows\Vss\First Person\German-Black-Reallife\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(52556) : error 029: invalid expression, assumed zero[pwn]


    [pwn]
    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) //Hier 52556
    {
    if(dialogid == DIALOG_GUTSCHEIN)
    {
    if(!response)return 1;
    if(!inputtext[0]) return ocmd_gutschein(playerid);
    new code[40];
    format(code, sizeof(code), "/codes/%s.txt", inputtext);
    if(!fexist(code)) return SendClientMessage(playerid, 0xFF0000FF, "Code existiert nicht.");
    new typ = dini_Int(code, "typ");
    new wert = dini_Int(code, "wert");
    new str[50];
    switch(typ)
    {
    case 1:
    {
    GivePlayerMoney(playerid, wert);
    format(str,sizeof(str),"Code eingelöst: %i$ bekommen.",wert);
    SendClientMessage(playerid,-1,str);
    }
    case 2:
    {
    PlayerInfo[playerid][pExp] = wert;
    format(str,sizeof(str),"Code eingelöst: %i Respektpunkte bekommen.",wert);
    SendClientMessage(playerid,-1,str);
    }
    case 3:
    {
    PlayerInfo[playerid][pDonateRank] = wert;
    format(str,sizeof(str),"Code eingelöst: Du hast Premium Level %i bekommen.",wert);
    SendClientMessage(playerid,-1,str);
    }
    case 4:
    {
    PlayerInfo[playerid][pAllowNeon] = 1;
    SendClientMessage(playerid,-1,"Code eingelöst: Du hast einen Neon Gutschein eingelöst.");
    ShowPlayerDialog(playerid, DIALOG_GUTSCHEINCARTAKE, DIALOG_STYLE_LIST, "Autoauswahl - Gutscheinsystem","~>~ Neon Fahrzeug ~<~\n","Auswählen", "Schlissen");
    }
    }
    fremove(code);
    }
    return 1;
    }



    Die Funktion OnDialogResponse habe ich einmal in;


    Function OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])



    Habe es dann so Versucht:



    if(dialogid == DIALOG_GUTSCHEIN)
    {
    if(!response)return 1;
    if(!inputtext[0]) return ocmd_gutschein(playerid);
    new code[40];
    format(code, sizeof(code), "/codes/%s.txt", inputtext);
    if(!fexist(code)) return SendClientMessage(playerid, 0xFF0000FF, "Code existiert nicht.");
    new typ = dini_Int(code, "typ");
    new wert = dini_Int(code, "wert");
    new str[50];
    switch(typ)
    {
    case 1:
    {
    GivePlayerMoney(playerid, wert);
    format(str,sizeof(str),"Code eingelöst: %i$ bekommen.",wert);
    SendClientMessage(playerid,-1,str);
    }
    case 2:
    {
    PlayerInfo[playerid][pExp] = wert;
    format(str,sizeof(str),"Code eingelöst: %i Respektpunkte bekommen.",wert);
    SendClientMessage(playerid,-1,str);
    }
    case 3:
    {
    PlayerInfo[playerid][pDonateRank] = wert;
    format(str,sizeof(str),"Code eingelöst: Du hast Premium Level %i bekommen.",wert);
    SendClientMessage(playerid,-1,str);
    }
    case 4:
    {
    PlayerInfo[playerid][pAllowNeon] = 1;
    SendClientMessage(playerid,-1,"Code eingelöst: Du hast einen Neon Gutschein eingelöst.");
    ShowPlayerDialog(playerid, DIALOG_GUTSCHEINCARTAKE, DIALOG_STYLE_LIST, "Autoauswahl - Gutscheinsystem","~>~ Neon Fahrzeug ~<~\n","Auswählen", "Schlissen");
    }
    }
    fremove(code);
    }
    return 1;
    }


    Dann Copmeliert er nicht mehr

    Guten Tag,


    Ich habe eine Frage. ich Möchte wen ich /Gutschein eingebe das ein Box kommt und den Gutschein Eintrage dann dann auf Bestätigen oder einfach wider auf Abbrechen.


    ocmd:gutschein(playerid, params[])
    {
    if(!params[0]) return SendClientMessage(playerid, 0xFF0000FF, "/gutschein [Code]");
    new code[40];
    format(code, sizeof(code), "/codes/%s.txt", params);
    if(!fexist(code)) return SendClientMessage(playerid, 0xFF0000FF, "Code existiert nicht.");
    new typ = dini_Int(code, "typ");
    new wert = dini_Int(code, "wert");
    new str[50];
    switch(typ)
    {
    case 1:
    {
    GivePlayerMoney(playerid, wert);
    format(str,sizeof(str),"Code eingelöst: %i$ bekommen.",wert);
    SendClientMessage(playerid,-1,str);
    }
    case 2:
    {
    PlayerInfo[playerid][pExp] = wert;
    format(str,sizeof(str),"Code eingelöst: %i Respektpunkte bekommen.",wert);
    SendClientMessage(playerid,-1,str);
    }
    case 3:
    {
    PlayerInfo[playerid][pDonateRank] = wert;
    format(str,sizeof(str),"Code eingelöst: Du hast Premium Level %i bekommen.",wert);
    SendClientMessage(playerid,-1,str);
    }
    case 4:
    {
    PlayerInfo[playerid][pAllowNeon] = 1;
    SendClientMessage(playerid,-1,"Code eingelöst: Du hast einen Neon Gutschein eingelöst.");
    ShowPlayerDialog(playerid, DIALOG_GUTSCHEINCARTAKE, DIALOG_STYLE_LIST, "Autoauswahl - Gutscheinsystem","~>~ Neon Fahrzeug ~<~\n","Auswählen", "Schlissen");
    }
    }
    fremove(code);
    return 1;
    }

    Also dieser Beitrag hat mich ja echt zu selbstmordgedanken getrieben :thumbup::thumbup::thumbup::thumbup::thumbup::thumbup::thumbup::thumbup::thumbup::thumbup::thumbup::thumbup::thumbup::thumbup::thumbup::thumbup::thumbup::thumbup::thumbup::thumbup::thumbup::thumbup: Ohne diese Aidsmusik wäre es vielleicht ganz gut.


    Übrigens Respekt an denjenigen der diesen Beitrag gemeldet hat, er verstößt nämlich gegen keine Regeln. Ich äußere hier nur meine Meinung und beleidige keine natürliche Person im direkten Sinne.. - also von daher alles legitim.



    Du kannst es so und so sehn^^ Kenn dich ja nicht anders sage nur RPG-CITY^^

    forward START_FRAC();
    public START_FRAC(){
    LoadFactionCars();
    FactionCarsTimer = SetTimer("LockFactionCarDoors",1037,true);
    SaveFactionCarsTimer = SetTimerEx("SaveFactionCars",((1000*30)*15),true,"d",false);
    for(new fbl;fbl<sizeof(FactionBuylist);fbl++){
    FactionBuylist[fbl][fbCarid] = CreateVehicle(FactionBuylist[fbl][fbVehid],FactionBuylist[fbl][fbX],FactionBuylist[fbl][fbY],FactionBuylist[fbl][fbZ],FactionBuylist[fbl][fbA],-1,-1,-255);
    }
    BuylistRespawner = SetTimer("RespawnFactionBuylist",(1000*60)*10,true);
    return 1;
    }


    if(strcmp(cmd, "/noooc", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if (PlayerInfo[playerid][pAdmin] >= 5 && (!noooc))
    {
    noooc = 1;
    BroadCast(COLOR_GRAD2, "Der öffentliche Chat wurde eingeschaltet.");
    }
    else if (PlayerInfo[playerid][pAdmin] >= 5 && (noooc))
    {
    noooc = 0;
    BroadCast(COLOR_GRAD2, "Der öffentliche Chat wurde ausgeschaltet.");
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "{0066FF}INFO:{FFFFFF} Du bist kein Administrator!");
    }
    }
    return 1;
    }
    if(strcmp(cmd, "/poooc", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if (PlayerInfo[playerid][pAdmin] >= 2 && (!poooc))
    {
    poooc = 1;
    BroadCast(COLOR_GRAD2, "Der Neuling Chat wurde eingeschaltet.");
    }
    else if (PlayerInfo[playerid][pAdmin] >= 5 && (poooc))
    {
    poooc = 0;
    BroadCast(COLOR_GRAD2, "Der Neuling Chat wurde ausgeschaltet.");
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "{0066FF}INFO:{FFFFFF} Du bist kein Administrator!");
    }
    }
    return 1;
    }
    if(strcmp(cmd, "/nold", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if (PlayerInfo[playerid][pAdmin] >= 5 && (!ldchat))
    {
    ldchat = 1;
    BroadCast(COLOR_GRAD2, "Der Leader Chat wurde eingeschaltet.");
    }
    else if (PlayerInfo[playerid][pAdmin] >= 5 && (ldchat))
    {
    ldchat = 0;
    BroadCast(COLOR_GRAD2, "Der Leader Chat wurde ausgeschaltet.");
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "{0066FF}INFO:{FFFFFF} Du bist kein Administrator!");
    }
    }
    return 1;
    }


    //E: Villt liegt es da irgendwo daran

    Function OnGameModeInit()
    {
    LoadWars();
    Fight_Init();
    ResetElevatorQueue();
    Elevator_Initialize();
    SetWeather(2);
    START_FRAC();
    noooc = 0;
    poooc = 0;
    ldchat = 1;
    SetNameTagDrawDistance(30.0);
    ManualVehicleEngineAndLights();


    Er Findet nur das was soll darin Falsch sein?

    [pwn][16:54:07] [debug] Run time error 4: "Array index out of bounds"
    [16:54:07] [debug] Accessing element at index 10 past array upper bound 9
    [16:54:07] [debug] AMX backtrace:
    [16:54:07] [debug] #0 00134abc in public CB_OnGameModeInit () from German-Black-Reallife.amx
    [16:54:07] [debug] #1 native CallLocalFunction () [00474110] from samp-server.exe
    [16:54:07] [debug] #2 000094d8 in public Itter_OnGameModeInit () from German-Black-Reallife.amx
    [16:54:07] [debug] #3 native CallLocalFunction () [00474110] from samp-server.exe
    [16:54:07] [debug] #4 0000776c in public Streamer_OnGameModeInit () from German-Black-Reallife.amx
    [16:54:07] [debug] #5 native CallLocalFunction () [00474110] from samp-server.exe
    [16:54:07] [debug] #6 00006c38 in public OnGameModeInit () from German-Black-Reallife.amx[/pwn]

    Ich möchte das umschreiben das er mir den Pfeitasten die Skins aussuchen kann ohne diesen Dialog der drinnen ist.
    Mit Eingabe das er den Skin bekommt und Gespeichert wird. das Gleich auch bei den Fraktionen nur die Skins was für Jede Fraktion zugestimmt ist.


    Mehr möchte ich garnicht machen und das fertig und weiter rausmachen.

    if(strcmp(cmd, "/noob", true) == 0 || strcmp(cmd, "/n", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    new Admins;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pAdmin] > 0)
    {
    Admins ++;
    }
    }
    }
    if(Admins < 1)
    {
    ShowInfoDialog(playerid,"Information","Diese Funktion ist zurzeit nicht möglich!");
    return 1;
    }
    if(gPlayerLogged[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_GREY, "{0033FF}INFO:{0033FF} Du bist noch nicht Eingeloggt!");
    return 1;
    }
    if(PlayerInfo[playerid][pLevel] > 1 || PlayerInfo[playerid][pAdmin] == 0)
    {
    SendClientMessage(playerid, TEAM_CYAN_COLOR, "{0033FF}INFO:{0033FF} Du bist kein Neuling!");
    return 1;
    }
    if(PlayerInfo[playerid][pMuted] == 1)
    {
    SendClientMessage(playerid, TEAM_CYAN_COLOR, "{0033FF}INFO:{0033FF} Du bist gemutet!");
    return 1;
    }
    GetPlayerName(playerid, sendername, sizeof(sendername));
    new length = strlen(cmdtext);
    while ((idx < length) && (cmdtext[idx] <= ' '))
    {
    idx++;
    }
    new offset = idx;
    new result[64];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
    result[idx - offset] = cmdtext[idx];
    idx++;
    }
    result[idx - offset] = EOS;
    if(!strlen(result))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "NUTZUNG: (/n) [Neuling chat]");
    return 1;
    }
    if(PlayerInfo[playerid][pAdmin] == 1)
    {
    format(string, sizeof(string), "{99FF99}**(([NCHAT]Supporter %s: %s ))**{99FF99}", sendername, result);
    }
    if(PlayerInfo[playerid][pAdmin] == 2)
    {
    format(string, sizeof(string), "{99FF99}**(([NCHAT]Super Supporter %s: %s ))**{99FF99}", sendername, result);
    }
    else if(PlayerInfo[playerid][pAdmin] == 3)
    {
    format(string, sizeof(string), "{99FF99}**(([NCHAT]Moderator %s: %s ))**{99FF99}", sendername, result);
    }
    else if(PlayerInfo[playerid][pAdmin] == 4)
    {
    format(string, sizeof(string), "{99FF99}**(([NCHAT]Super Moderator %s: %s ))**{99FF99}", sendername, result);
    }
    else if(PlayerInfo[playerid][pAdmin] == 5)
    {
    format(string, sizeof(string), "{99FF99}**(([NCHAT]Administrator %s: %s ))**{99FF99}", sendername, result);
    }
    else if(PlayerInfo[playerid][pAdmin] == 6)
    {
    format(string, sizeof(string), "{99FF99}**(([NCHAT]Head-Admin %s: %s ))**{99FF99}", sendername, result);
    }
    else if(PlayerInfo[playerid][pAdmin] == 7)
    {
    format(string, sizeof(string), "{99FF99}**(([NCHAT]Projektleiter %s: %s ))**{99FF99}", sendername, result);
    }
    else if(PlayerInfo[playerid][pDonateRank] > 0)
    {
    format(string, sizeof(string), "{99FF99}**(([NCHAT]Premium %s: %s ))**{99FF99}", sendername, result);
    }
    else if(PlayerInfo[playerid][pLevel] == 1)
    {
    format(string, sizeof(string), "{99FF99}**(([NCHAT]Neuling %s: %s ))**{99FF99}", sendername, result);
    }
    else if(PlayerInfo[playerid][pLevel] > 1)
    {
    format(string, sizeof(string), "{99FF99}**(([NCHAT]Bürger %s: %s ))**{99FF99}", sendername, result);
    }
    else if(PlayerInfo[playerid][pAdmin] == 0 && (poooc))
    {
    format(string, sizeof(string), "{99FF99}**(([NCHAT] %s: %s ))**{99FF99}", sendername, result);
    }
    else return 1;
    OOCOff(0xE0CA5EFF,string);
    }
    return 1;
    }


    Hallo,


    Ich bin gerade an einem Noobchat am schreiben und habe das Problem wen ein Admin Über Level 1 ist kommt das er kein Neuling mehr ist.
    Er sollte egal mit welchen Level in Noobchat schreiben können!


    Vielen Dank ihm Vorraus!

    if(strcmp(cmd, "/clothes", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pMember] >= 1 || PlayerInfo[playerid][pLeader] >= 1)
    {
    if(IsAtClothShop(playerid))
    {


    if(PlayerInfo[playerid][pMember] == 1) { ChosenSkin[playerid] = 280; SetPlayerSkin(playerid, 280); }
    else if(PlayerInfo[playerid][pMember] == 2) { ChosenSkin[playerid] = 280; SetPlayerSkin(playerid, 280); }
    else if(PlayerInfo[playerid][pMember] == 3) { ChosenSkin[playerid] = 287; SetPlayerSkin(playerid, 287); }
    else if(PlayerInfo[playerid][pMember] == 4) { ChosenSkin[playerid] = 70; SetPlayerSkin(playerid, 70); }
    else if(PlayerInfo[playerid][pMember] == 5) { ChosenSkin[playerid] = 258; SetPlayerSkin(playerid, 120); }
    else if(PlayerInfo[playerid][pMember] == 6) { ChosenSkin[playerid] = 294; SetPlayerSkin(playerid, 294); }
    else if(PlayerInfo[playerid][pMember] == 7) { ChosenSkin[playerid] = 164; SetPlayerSkin(playerid, 164); }
    else if(PlayerInfo[playerid][pMember] == 8) { ChosenSkin[playerid] = 250; SetPlayerSkin(playerid, 250); }
    else if(PlayerInfo[playerid][pMember] == 9) { ChosenSkin[playerid] = 187; SetPlayerSkin(playerid, 187); }
    else if(PlayerInfo[playerid][pMember] == 10) { ChosenSkin[playerid] = 255; SetPlayerSkin(playerid, 255); }
    else if(PlayerInfo[playerid][pMember] == 11) { ChosenSkin[playerid] = 240; SetPlayerSkin(playerid, 240); }
    else if(PlayerInfo[playerid][pMember] == 12) { ChosenSkin[playerid] = 118; SetPlayerSkin(playerid, 118); }//Hacker
    else if(PlayerInfo[playerid][pMember] == 13) { ChosenSkin[playerid] = 105; SetPlayerSkin(playerid, 105); }//Crips
    else if(PlayerInfo[playerid][pMember] == 14) { ChosenSkin[playerid] = 102; SetPlayerSkin(playerid, 102); }//Groove Street
    else if(PlayerInfo[playerid][pMember] == 15) { ChosenSkin[playerid] = 185; SetPlayerSkin(playerid, 185); }//Los Santos Biker Club
    else if(PlayerInfo[playerid][pMember] == 16) { ChosenSkin[playerid] = 108; SetPlayerSkin(playerid, 108); }//Los Santos Vagos
    else if(PlayerInfo[playerid][pMember] == 17) { ChosenSkin[playerid] = 114; SetPlayerSkin(playerid, 114); }//Varios Los
    else if(PlayerInfo[playerid][pMember] == 18) { ChosenSkin[playerid] = 173; SetPlayerSkin(playerid, 173); }//San Fiero SF Rifa
    else if(PlayerInfo[playerid][pMember] == 19) { ChosenSkin[playerid] = 234; SetPlayerSkin(playerid, 234); }//West Coust Customs
    else if(PlayerInfo[playerid][pMember] == 20) { ChosenSkin[playerid] = 220; SetPlayerSkin(playerid, 220); }
    else if(PlayerInfo[playerid][pMember] == 21) { ChosenSkin[playerid] = 286; SetPlayerSkin(playerid, 286); }
    else if(PlayerInfo[playerid][pMember] == 22) { ChosenSkin[playerid] = 277; SetPlayerSkin(playerid, 277); }
    else if(PlayerInfo[playerid][pMember] == 23) { ChosenSkin[playerid] = 133; SetPlayerSkin(playerid, 133); }
    else if(PlayerInfo[playerid][pMember] == 24) { ChosenSkin[playerid] = 255; SetPlayerSkin(playerid, 255); }
    else { return 1; }
    GetPlayerPos(playerid, ChangePos[playerid][0],ChangePos[playerid][1],ChangePos[playerid][2]);
    ChangePos2[playerid][0] = GetPlayerInterior(playerid);
    ChangePos2[playerid][1] = 1;
    SetPlayerInterior(playerid,0);
    new rand = random(sizeof(gInviteSpawns));
    SetPlayerPos(playerid, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
    SetPlayerFacingAngle(playerid, gInviteSpawns[rand][3]);
    SetPlayerCameraPos(playerid,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
    SetPlayerCameraLookAt(playerid,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
    FreezePlayer(playerid);
    SelectChar[playerid] = 255;
    SelectCharID[playerid] = PlayerInfo[playerid][pMember];
    SelectCharPlace[playerid] = 1;
    PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
    PlayerInfo[playerid][pChar] = ChosenSkin[playerid];
    SendClientMessage(playerid, COLOR_LIGHTRED, "* Gib 'weiter' ein um den Charakter auszusuchen den du gerne nutzen möchtest.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "* Wenn du den richtigen gefunden hast gib 'fertig' ein.");
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Du bist in keinem Bekleidungsgeschäft !");
    return 1;
    }
    }
    else
    {
    if(IsAtClothShop(playerid))
    {
    ShowPlayerDialog(playerid,DIALOG_KLEIDUNG_ZIP,DIALOG_STYLE_LIST,"ZIP","Schwarzer Anzug&Rote Krawatte Preis: 100$\nPfarrer Anzug Preis: 300$\nCobaine-Style Preis: 200$\nSchwarzer Anzug Preis: 100$\nBlaue Jacke Preis: 120$\nBlauer Gestreifter Anzug Preis: 180$","Kaufen","Abbrechen");
    //AtClothes[playerid] = 1;
    //ForceClassSelection(playerid);
    //TogglePlayerSpectating(playerid, 0);
    return 1;
    }
    }
    }
    return 1;
    }


    Hay Liebe Leute.


    Ich wollte machen wen der Spieler /clothes eingiebt das er sich mit den Pfeiltasten einen Skin aussuchen kann und mit eingabe ihn hat und gespeichert wird.
    Wen er in einer Fraktion ist soll das Selbe passiern aber nur die Skins zu seiner Fraktion gehören und ebenso gespeichert werden.


    Vielen Dank ihm Vorraus!


    //E:


    Hier dieses weiter und fertig


    if ((strcmp("weiter", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("weiter")))
    {
    switch (SelectCharID[playerid])
    {
    case 1: // SAPD
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[0][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[1][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[2][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[3][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[3][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[4][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[4][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[5][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = JoinPed[5][0]; }
    else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, JoinPed[6][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = JoinPed[6][0]; }
    else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, JoinPed[7][0]); SelectCharPlace[playerid] = 9; ChosenSkin[playerid] = JoinPed[7][0]; }
    else if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid, JoinPed[8][0]); SelectCharPlace[playerid] = 10; ChosenSkin[playerid] = JoinPed[8][0]; }
    else if(SelectCharPlace[playerid] == 10) { SetPlayerSkin(playerid, JoinPed[9][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[9][0]; }
    }
    case 2: // SAPD
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[86][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[86][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[87][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[87][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[88][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[88][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[89][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[89][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[90][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[90][0]; }
    }
    case 3: // Army
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[14][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[14][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[15][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[15][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[16][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[16][0]; }
    }
    case 4: // Medic
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[16][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[16][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[17][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[17][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[18][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[18][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[19][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[19][0]; }
    }
    case 5: //Italienische Mafia
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[20][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[20][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[21][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[21][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[22][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[22][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[23][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[23][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[24][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[24][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[25][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = JoinPed[25][0]; }
    else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, JoinPed[26][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = JoinPed[26][0]; }
    else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, JoinPed[27][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[27][0]; }
    }
    case 6: //Yakuza
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[28][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[28][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[29][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[29][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[30][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[30][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[31][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[31][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[32][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[32][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[33][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = JoinPed[33][0]; }
    else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, JoinPed[34][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[34][0]; }
    }
    case 7: //Präsident
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[35][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[35][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[36][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[36][0]; }
    }
    case 8: //Hitman Agency
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[37][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[37][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[38][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[38][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[39][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[39][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[40][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[40][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[41][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[41][0]; }
    }
    case 9: //News Reporters
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[42][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[42][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[43][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[43][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[44][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[44][0]; }
    }
    case 10: //Taxi Cab Company
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[45][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[45][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[46][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[46][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[47][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[47][0]; }
    }
    case 11: //Driving/Flying School
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[48][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[48][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[49][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[49][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[50][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[50][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[51][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[51][0]; }
    }
    case 12: //Hacker
    {
    if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[105][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[105][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[106][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[106][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[107][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[107][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[108][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[108][0]; }
    else if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[109][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[109][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[111][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[111][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[112][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[112][0]; }


    }
    case 13: //Crips
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[58][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[58][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[59][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[59][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[60][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[60][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[61][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[61][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[62][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[62][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[63][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = JoinPed[63][0]; }
    else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, JoinPed[64][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[64][0]; }
    }
    case 14: //Groove Street
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[65][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[65][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[66][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[66][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[67][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[67][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[68][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[68][0]; }
    }
    case 15: //Los Santos Biker
    {
    if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[52][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[52][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[53][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[53][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[54][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[54][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[55][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[55][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[56][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[56][0]; }
    else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, JoinPed[57][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[57][0]; }


    }
    case 16: //Los Santos Vagos
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[74][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[74][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[75][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[75][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[76][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[76][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[77][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[77][0]; }
    }
    case 17: //Varios Los
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[78][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[78][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[79][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[79][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[80][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[80][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[81][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[81][0]; }
    }
    case 18: //Texaner
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[82][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[82][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[83][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[83][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[84][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[84][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[85][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[85][0]; }
    }
    case 19: //West Coast Customs
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[86][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[86][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[87][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[87][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[88][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[88][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[89][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[89][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[90][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[90][0]; }
    }
    case 21: //Wheelmen
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[86][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[91][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[92][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[92][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[93][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[93][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[94][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[94][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[95][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[95][0]; }
    }
    case 23: // Grundwehrdient
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[99][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[99][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[100][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[100][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[101][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[101][0]; }
    }
    case 24: // Ordnungsamt
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[102][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[102][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[103][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[103][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[104][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[104][0]; }
    }
    }
    return 0;
    }
    else if ((strcmp("fertig", tmp, true, strlen(tmp)) == 0))
    {
    if(ChangePos2[playerid][1] == 1)
    {
    SetPlayerInterior(playerid, ChangePos2[playerid][0]);
    SetPlayerPos(playerid, ChangePos[playerid][0],ChangePos[playerid][1],ChangePos[playerid][2]);
    ChangePos2[playerid][1] = 0;
    return 0;
    }
    PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
    PlayerInfo[playerid][pChar] = ChosenSkin[playerid];
    SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel],0.0,0.0,0.0,0,0,0,0,0,0,0);
    gTeam[playerid] = PlayerInfo[playerid][pTeam];
    SetPlayerToTeamColor(playerid);
    MedicBill[playerid] = 0;
    SpawnPlayer(playerid);
    SelectCharPlace[playerid] = 0;
    SelectCharID[playerid] = 0;
    SelectChar[playerid] = 0;
    UnFreezePlayer(playerid);
    return 0;
    }
    else
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Benutze 'fertig'.");
    return 0;
    }
    }



    Was ist daran falsch ich muss es in CarId schreiben sonst bekomme ich warnings

    Rausgefunden.
    Anderes Problem wen ich mch einlogge und /carlock mache bleibt das licht an wen ich einsteige und es ausmmache und erneut /carlock mache blinkt es.


    if (strcmp("/carlock", cmdtext, true, 10) == 0)
    {
    if(Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
    {
    new Status = Dtc_Carlock[PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]];
    new Float:dtc_X,Float:dtc_Y,Float:dtc_Z;
    GetVehiclePos(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId],dtc_X,dtc_Y,dtc_Z);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i,20.0,dtc_X,dtc_Y,dtc_Z))
    {
    PlayerPlaySound(i,1147,dtc_X,dtc_Y,dtc_Z);
    }
    }
    switch (Status)
    {
    case 0:
    {
    GameTextForPlayer(playerid, "~w~Fahrzeug ~r~abgeschlossen", 5000, 6);
    PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
    Dtc_Carlock[PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]] = 1;
    Dtc_LockCar(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]);
    lightEffect(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]);
    lightEffect(CarId);
    }
    case 1:
    {
    GameTextForPlayer(playerid, "~w~Fahrzeug ~g~aufgeschlossen", 5000, 6);
    PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
    Dtc_Carlock[PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]] = 0;
    Dtc_UnLockCar(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]);
    lightEffect(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]);
    lightEffect(CarId);
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Du besitzt Kein Fahrzeug für deinen Ausgewählten Schlüssel!");
    return 1;
    }
    return 1;
    }

    new car = GetPlayerVehicleID(playerid);
    SetVehicleParamsEx(car,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(car,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);


    Wo muss das rein?


    //E;


    lightEffect(vid)
    {
    new xx[7];
    GetVehicleParamsEx(vid,xx[0],xx[1],xx[2],xx[3],xx[4],xx[5],xx[6]);
    new andas=((xx[1]==-1||xx[1]==0)?(1):(0));
    SetTimerEx("lightEffectEx",100,false,"dd",vid,andas);
    SetTimerEx("lightEffectEx",600,false,"dd",vid,xx[1]);
    SetTimerEx("lightEffectEx",1100,false,"dd",vid,andas);
    SetTimerEx("lightEffectEx",1600,false,"dd",vid,xx[1]);
    }


    forward lightEffectEx(vid,stt);


    public lightEffectEx(vid,stt)
    {
    new xx[7];
    GetVehicleParamsEx(vid,xx[0],xx[1],xx[2],xx[3],xx[4],xx[5],xx[6]);
    SetVehicleParamsEx(vid,xx[0],stt,xx[2],xx[3],xx[4],xx[5],xx[6]);
    }


    und das



    //E;


    Rausgefunden.
    Anderes Problem wen ich mch einlogge und /carlock mache bleibt das licht an wen ich einsteige und es ausmmache und erneut /carloc mache blinkt es.


    if (strcmp("/carlock", cmdtext, true, 10) == 0)
    {
    if(Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
    {
    new Status = Dtc_Carlock[PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]];
    new Float:dtc_X,Float:dtc_Y,Float:dtc_Z;
    GetVehiclePos(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId],dtc_X,dtc_Y,dtc_Z);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i,20.0,dtc_X,dtc_Y,dtc_Z))
    {
    PlayerPlaySound(i,1147,dtc_X,dtc_Y,dtc_Z);
    }
    }
    switch (Status)
    {
    case 0:
    {
    GameTextForPlayer(playerid, "~w~Fahrzeug ~r~abgeschlossen", 5000, 6);
    PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
    Dtc_Carlock[PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]] = 1;
    Dtc_LockCar(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]);
    lightEffect(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]);
    lightEffect(CarId);
    }
    case 1:
    {
    GameTextForPlayer(playerid, "~w~Fahrzeug ~g~aufgeschlossen", 5000, 6);
    PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
    Dtc_Carlock[PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]] = 0;
    Dtc_UnLockCar(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]);
    lightEffect(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]);
    lightEffect(CarId);
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Du besitzt Kein Fahrzeug für deinen Ausgewählten Schlüssel!");
    return 1;
    }
    return 1;
    }

    Guten Tag,


    Ich versuche für /carlock das die Lichter blinken was mach ich falsch das ich 4 Errors bekomme?


    C:\Windows\Vss\First Person\German-Black-Reallife\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(11909) : error 012: invalid function call, not a valid address
    C:\Windows\Vss\First Person\German-Black-Reallife\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(11909) : error 017: undefined symbol "vid"
    C:\Windows\Vss\First Person\German-Black-Reallife\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(11909) : error 029: invalid expression, assumed zero
    C:\Windows\Vss\First Person\German-Black-Reallife\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(11909) : fatal error 107: too many error messages on one line



    lightEffect(vid) //Hier sind die errors
    {
    new xx[7];
    GetVehicleParamsEx(vid,xx[0],xx[1],xx[2],xx[3],xx[4],xx[5],xx[6]);
    new andas=((xx[1]==-1||xx[1]==0)?(1):(0));
    SetTimerEx("lightEffectEx",100,false,"dd",vid,andas);
    SetTimerEx("lightEffectEx",600,false,"dd",vid,xx[1]);
    SetTimerEx("lightEffectEx",1100,false,"dd",vid,andas);
    SetTimerEx("lightEffectEx",1600,false,"dd",vid,xx[1]);
    }


    forward lightEffectEx(vid,stt);
    public lightEffectEx(vid,stt)
    {
    new xx[7];
    GetVehicleParamsEx(vid,xx[0],xx[1],xx[2],xx[3],xx[4],xx[5],xx[6]);
    SetVehicleParamsEx(vid,xx[0],stt,xx[2],xx[3],xx[4],xx[5],xx[6]);
    }