Beiträge von James.Spader


    So, jetzt stürzt mein Pawno nicht mehr ab, nun habe ich nur noch 26 Errors...


    Die Errors:


    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11630) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11632) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11634) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11636) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11637) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11639) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11640) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11641) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11643) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11644) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11645) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11646) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11647) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11648) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11649) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11650) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11651) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11652) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11653) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11654) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11655) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11656) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11657) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11658) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11659) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11661) : error 017: undefined symbol "targetid"
    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11661) : error 017: undefined symbol "drank" // Behoben (nur drank)
    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    26 Errors.


    Die Zeilen (mal wieder):


    if (strcmp("/stats1", cmdtext, true, 10) == 0)
    {
    if(PlayerInfo[playerid][pOwnPerso] == 0)
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du besitzt keinen Personalausweis.");
    return 1;
    }
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
    {
    new string[360];
    new ftext[20];
    new cash = GetPlayerMoney(targetid);
    new atext[20];
    if(PlayerInfo[targetid][pSex] == 1) { atext = "Männlich"; }
    else if(PlayerInfo[targetid][pSex] == 2) { atext = "Weiblich"; }
    new otext[20];
    if(PlayerInfo[targetid][pOrigin] == 1) { otext = "U.S.A."; }
    else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "Europa"; }
    else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Asien"; }
    new ttext[50];
    if(PlayerInfo[targetid][pMember] == 0 || PlayerInfo[targetid][pLeader] == 0) { ttext = "-"; }
    else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1) { ttext = "San Andreas Police Department"; }
    else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2) { ttext = "Federal Bureau of Investigation"; }
    else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3) { ttext = "U.S. Army"; }
    else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "San Andreas Medical Department"; }
    else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5) { ttext = "Russische Mafia"; }
    else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6) { ttext = "Triaden"; }
    else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7) { ttext = "U.S. Regierung"; }
    else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8) { ttext = "Hitman"; }
    else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9) { ttext = "San News"; }
    else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10) { ttext = "Taxi-Unternehmen"; }
    else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11) { ttext = "Fahrschule"; }
    else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12) { ttext = "Grove Street"; }
    else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 13) { ttext = "Ballas"; }
    else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 14) { ttext = "San Andreas Biker"; }
    else if(PlayerInfo[targetid][pMember] == 13 || PlayerInfo[targetid][pLeader] == 15) { ttext = "San Fierro Rifa"; }
    else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 16) { ttext = "Ordnungsamt"; }
    //
    if(PlayerInfo[targetid][pDonateRank] == 0) { drank = "-"; }
    else if(PlayerInfo[targetid][pDonateRank] == 1) { drank = "Premium"; }
    else if(PlayerInfo[targetid][pDonateRank] == 2) { drank = "(+)Premium"; }
    else if(PlayerInfo[targetid][pDonateRank] == 3) { drank = "(Elite-)Premium"; }
    else if(PlayerInfo[targetid][pDonateRank] == 4) { drank = "(SP+)Premium"; }
    //
    new dtext[20];
    if(STDPlayer[targetid] == 1) { dtext = "Chlamydien"; }
    else if(STDPlayer[targetid] == 2) { dtext = "Gonorrhoe"; }
    else if(STDPlayer[targetid] == 3) { dtext = "Syphilis"; }
    else { dtext = "-"; }
    //
    new married[20];
    strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
    new name[MAX_PLAYER_NAME];
    new age = PlayerInfo[targetid][pAge];
    new account = PlayerInfo[targetid][pAccount];
    new pnumber = PlayerInfo[targetid][pPnumber];
    new level = PlayerInfo[targetid][pLevel];
    new wanted = WantedLevel[targetid];
    new costlevel = nxtlevel*levelcost;//10k for testing purposes
    new expamount = nxtlevel*levelexp;
    new drugs = PlayerInfo[targetid][pDrugs];
    new mats = PlayerInfo[targetid][pMats];
    new exp = PlayerInfo[targetid][pExp];
    new kills = PlayerInfo[targetid][pKills];
    new deaths = PlayerInfo[targetid][pDeaths];
    new crimes = PlayerInfo[targetid][pCrimes];
    new arrests = PlayerInfo[targetid][pArrested];
    //
    format(string,sizeof(string),"{FFFFFF}Hier findest du deinen Personalausweis, wenn du ihn jemanden zeigen willst schreibe /showperso.\n\n\n{FFA600}Allgemeine Daten{FFFFFF}\n\nName: %s\nAlter: %d\nHerkunft: %s\nGeschlecht: %s\n",name,age,otext,atext);
    format(string,sizeof(string),"%sVerheiratet mit %s\nTelefonnummer:\n\nBankkonto: $%d\nGeld auf Hand: $%d\n\n\n{FFA600}Allgemeine Informationen{FFFFFF}\n\nLevel: %d\nLevelUp-Kosten: $%d\nRespektpunkte: %d von %d\n",string,married,pnumber,account,cash,level,costlevel,exp,expamount,);
    format(string,sizeof(string),"%sDonatorrang: %s\nWanteds: %d\nDrogen: %d\nMaterialien: %d\n\n\n{FFA600}Sonstige Daten & Informationen{FFFFFF}\n\nVerbrechen: %d\nGefängnise: %d\nKills: %d\nTode: %d\nKrankheit: %s",string,drank,wanted,drugs,mats,crimes,arrests,kills,deaths,dtext);
    ShowPlayerDialog(playerid,STATS,DIALOG_STYLE_MSGBOX,"Personalausweis",string,"OK","");
    }
    return 1;
    }


    P.S. Wo der Befehl außer "Betrieb" war hatte ich keine errors.

    Wenn ich das alles so eingefügt habe, stürzt PAWN immer noch ab, dann habe ich den Befehl mal außer kraft gesetzt und nun bekomme ich einen Error.


    Der Error:



    C:\-)) GTA San Andreas Server ((-\gamemodes\LoR-2-1-5.pwn(11692) : error 075: input line too long (after substitutions)


    Ich bekomme in den außer kraft gesetzten Befehl nun den Error.


    Die Zeilen (mit Hier)

    /*if (strcmp("/stats1", cmdtext, true, 10) == 0)
    {
    if(PlayerInfo[playerid][pOwnPerso] == 0)
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du besitzt keinen Personalausweis.");
    return 1;
    }
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
    {
    new string[360];
    new ftext[20];
    new cash = GetPlayerMoney(targetid);
    new atext[20];
    if(PlayerInfo[targetid][pSex] == 1) { atext = "Männlich"; }
    else if(PlayerInfo[targetid][pSex] == 2) { atext = "Weiblich"; }
    new otext[20];
    if(PlayerInfo[targetid][pOrigin] == 1) { otext = "U.S.A."; }
    else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "Europa"; }
    else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Asien"; }
    new ttext[50];
    if(PlayerInfo[targetid][pMember] == 0 || PlayerInfo[targetid][pLeader] == 0) { ttext = "-"; }
    else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1) { ttext = "San Andreas Police Department"; }
    else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2) { ttext = "Federal Bureau of Investigation"; }
    else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3) { ttext = "U.S. Army"; }
    else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "San Andreas Medical Department"; }
    else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5) { ttext = "Russische Mafia"; }
    else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6) { ttext = "Triaden"; }
    else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7) { ttext = "U.S. Regierung"; }
    else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8) { ttext = "Hitman"; }
    else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9) { ttext = "San News"; }
    else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10) { ttext = "Taxi-Unternehmen"; }
    else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11) { ttext = "Fahrschule"; }
    else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12) { ttext = "Grove Street"; }
    else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 13) { ttext = "Ballas"; }
    else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 14) { ttext = "San Andreas Biker"; }
    else if(PlayerInfo[targetid][pMember] == 13 || PlayerInfo[targetid][pLeader] == 15) { ttext = "San Fierro Rifa"; }
    else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 16) { ttext = "Ordnungsamt"; }
    //
    if(PlayerInfo[targetid][pDonateRank] == 0) { drank = "-"; }
    else if(PlayerInfo[targetid][pDonateRank] == 1) { drank = "Premium"; }
    else if(PlayerInfo[targetid][pDonateRank] == 2) { drank = "(+)Premium"; }
    else if(PlayerInfo[targetid][pDonateRank] == 3) { drank = "(Elite-)Premium"; }
    else if(PlayerInfo[targetid][pDonateRank] == 4) { drank = "(SP+)Premium"; }
    //
    new dtext[20];
    if(STDPlayer[targetid] == 1) { dtext = "Chlamydien"; }
    else if(STDPlayer[targetid] == 2) { dtext = "Gonorrhoe"; }
    else if(STDPlayer[targetid] == 3) { dtext = "Syphilis"; }
    else { dtext = "-"; }
    //
    new married[20];
    strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
    new name[MAX_PLAYER_NAME];
    new age = PlayerInfo[targetid][pAge];
    new account = PlayerInfo[targetid][pAccount];
    new pnumber = PlayerInfo[targetid][pPnumber];
    new level = PlayerInfo[targetid][pLevel];
    new wanted = WantedLevel[targetid];
    new costlevel = nxtlevel*levelcost;//10k for testing purposes
    new expamount = nxtlevel*levelexp;
    new drugs = PlayerInfo[targetid][pDrugs];
    new mats = PlayerInfo[targetid][pMats];
    new exp = PlayerInfo[targetid][pExp];
    new kills = PlayerInfo[targetid][pKills];
    new deaths = PlayerInfo[targetid][pDeaths];
    new crimes = PlayerInfo[targetid][pCrimes];
    new arrests = PlayerInfo[targetid][pArrested];
    //
    format(string,sizeof(string),"{FFFFFF}Hier findest du deinen Personalausweis, wenn du ihn jemanden zeigen willst schreibe /showperso.\n\n\n{FFA600}Allgemeine Daten{FFFFFF}\n\nName: %s\nAlter: %d\nHerkunft: %s\nGeschlecht: %s\n\
    -->>> Hier Verheiratet mit %s\nTelefonnummer:\n\nBankkonto: $%d\nGeld auf Hand: $%d\n\n\n{FFA600}Allgemeine Informationen{FFFFFF}\n\nLevel: %d\nLevelUp-Kosten: $%d\nRespektpunkte: %d von %d\nDonatorrang: %s\nWanteds: %d\nDrogen: %d\nMaterialien: \
    %d\n\n\n{FFA600}Sonstige Daten & Informationen{FFFFFF}\n\nVerbrechen: %d\nGefängnise: %d\nKills: %d\nTode: %d\nKrankheit: %s",name,age,otext,atext,married,pnumber,account,cash,level,costlevel,exp,expamount,drank,wanted,drugs,mats,crimes,arrests,kills,deaths,dtext);
    ShowPlayerDialog(playerid,STATS,DIALOG_STYLE_MSGBOX,"Personalausweis",string,"OK","");
    }
    return 1;
    }*/

    Liebe Community,
    Ich habe mir ein neuen /stats befehl gemacht, aber beim Compilen kommt "Pawno reagiert nicht mehr". Warum?


    Der Befehl:



    if (strcmp("/stats1", cmdtext, true, 10) == 0)
    {
    if(PlayerInfo[playerid][pOwnPerso] == 0)
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du besitzt keinen Personalausweis.");
    return 1;
    }
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
    {
    new string[128];
    new ftext[20];
    new cash = GetPlayerMoney(targetid);
    new atext[20];
    if(PlayerInfo[targetid][pSex] == 1) { atext = "Männlich"; }
    else if(PlayerInfo[targetid][pSex] == 2) { atext = "Weiblich"; }
    new otext[20];
    if(PlayerInfo[targetid][pOrigin] == 1) { otext = "U.S.A."; }
    else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "Europa"; }
    else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Asien"; }
    new ttext[20];
    if(PlayerInfo[targetid][pMember] == 0 || PlayerInfo[targetid][pLeader] == 0) { ttext = "-"; }
    else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1) { ttext = "San Andreas Police Department"; }
    else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2) { ttext = "Federal Bureau of Investigation"; }
    else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3) { ttext = "U.S. Army"; }
    else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "San Andreas Medical Department"; }
    else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5) { ttext = "Russische Mafia"; }
    else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6) { ttext = "Triaden"; }
    else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7) { ttext = "U.S. Regierung"; }
    else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8) { ttext = "Hitman"; }
    else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9) { ttext = "San News"; }
    else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10) { ttext = "Taxi-Unternehmen"; }
    else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11) { ttext = "Fahrschule"; }
    else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12) { ttext = "Grove Street"; }
    else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 13) { ttext = "Ballas"; }
    else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 14) { ttext = "San Andreas Biker"; }
    else if(PlayerInfo[targetid][pMember] == 13 || PlayerInfo[targetid][pLeader] == 15) { ttext = "San Fierro Rifa"; }
    else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 16) { ttext = "Ordnungsamt"; }
    //
    if(PlayerInfo[targetid][pDonateRank] == 0) { drank = "-"; }
    else if(PlayerInfo[targetid][pDonateRank] == 1) { drank = "Premium"; }
    else if(PlayerInfo[targetid][pDonateRank] == 2) { drank = "(+)Premium"; }
    else if(PlayerInfo[targetid][pDonateRank] == 3) { drank = "(Elite-)Premium"; }
    else if(PlayerInfo[targetid][pDonateRank] == 4) { drank = "(SP+)Premium"; }
    //
    new dtext[20];
    if(STDPlayer[targetid] == 1) { dtext = "Chlamydien"; }
    else if(STDPlayer[targetid] == 2) { dtext = "Gonorrhoe"; }
    else if(STDPlayer[targetid] == 3) { dtext = "Syphilis"; }
    else { dtext = "-"; }
    //
    new married[20];
    strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
    new name[MAX_PLAYER_NAME];
    new age = PlayerInfo[targetid][pAge];
    new account = PlayerInfo[targetid][pAccount];
    new pnumber = PlayerInfo[targetid][pPnumber];
    new level = PlayerInfo[targetid][pLevel];
    new wanted = WantedLevel[targetid];
    new costlevel = nxtlevel*levelcost;//10k for testing purposes
    new expamount = nxtlevel*levelexp;
    new drugs = PlayerInfo[targetid][pDrugs];
    new mats = PlayerInfo[targetid][pMats];
    new exp = PlayerInfo[targetid][pExp];
    new kills = PlayerInfo[targetid][pKills];
    new deaths = PlayerInfo[targetid][pDeaths];
    new crimes = PlayerInfo[targetid][pCrimes];
    new arrests = PlayerInfo[targetid][pArrested];
    //
    format(string,sizeof(string),"{FFFFFF}Hier findest du deinen Personalausweis, wenn du ihn jemanden zeigen willst schreibe /showperso.\n\n\n{FFA600}Allgemeine Daten{FFFFFF}\n\nName: %s\nAlter: %d\nHerkunft: %s\nGeschlecht: %s\nVerheiratet mit %s\nTelefonnummer:\n\nBankkonto: $%d\nGeld auf Hand: $%d\n\n\n{FFA600}Allgemeine Informationen{FFFFFF}\n\nLevel: %d\nLevelUp-Kosten: $%d\nRespektpunkte: %d von %d\nDonatorrang: %s\nWanteds: %d\nDrogen: %d\nMaterialien: %d\n\n\n{FFA600}Sonstige Daten & Informationen{FFFFFF}\n\nVerbrechen: %d\nGefängnise: %d\nKills: %d\nTode: %d\nKrankheit: %s",name,age,otext,atext,married,pnumber,account,cash,level,costlevel,exp,expamount,drank,wanted,drugs,mats,crimes,arrests,kills,deaths,dtext);
    ShowPlayerDialog(playerid,STATS,DIALOG_STYLE_MSGBOX,"Personalausweis",string,"OK","");
    }
    return 1;
    }



    Ich hoffe ihr findet einen Fehler.



    Mit freundlichen Grüßen,
    James.Spader.

    Liebe Community,
    Ich will bzw. habe mir ein Dialog Login-System gemacht, aber wenn ich auf dem Server gehe kommt einfach nicht das Fenster wo ich mich einloggen muss. P.S. Ich hatte davor ein Login für den Chat...


    Die Zeilen:


    (OnPlayerConnect)

    public OnPlayerConnect(playerid)
    {
    if(Security != 0)
    {
    SendClientMessage(playerid, COLOR_YELLOW, "Host hat seine versprechung gebrochen es werden masnahmen gesetzt.");
    Kick(playerid);
    return 1;
    }
    Textdraw24 = TextDrawCreate(121.000000, 343.000000, "v2.1.8");
    TextDrawBackgroundColor(Textdraw24, 255);
    TextDrawFont(Textdraw24, 2);
    TextDrawLetterSize(Textdraw24, 0.180000, 0.799998);
    TextDrawColor(Textdraw24, -1);
    TextDrawSetOutline(Textdraw24, 1);
    TextDrawSetProportional(Textdraw24, 1);


    Textdraw56 = TextDrawCreate(547.000000, 55.000000, "Lebe dein Traum");
    TextDrawBackgroundColor(Textdraw56, 255);
    TextDrawFont(Textdraw56, 2);
    TextDrawLetterSize(Textdraw56, 0.200000, 1.000000);
    TextDrawColor(Textdraw56, -1);
    TextDrawSetOutline(Textdraw56, 1);
    TextDrawSetProportional(Textdraw56, 1);
    gActivePlayers[playerid]++;
    numplayers++;
    // LSPD
    RemoveBuildingForPlayer(playerid, 1266, 1538.5234, -1609.8047, 19.8438, 0.25);
    RemoveBuildingForPlayer(playerid, 4229, 1597.9063, -1699.7500, 30.2109, 0.25);
    RemoveBuildingForPlayer(playerid, 4230, 1597.9063, -1699.7500, 30.2109, 0.25);
    RemoveBuildingForPlayer(playerid, 1260, 1538.5234, -1609.8047, 19.8438, 0.25);
    // News
    RemoveBuildingForPlayer(playerid, 705, -2491.5859, -670.7188, 138.4297, 0.25);
    RemoveBuildingForPlayer(playerid, 1684, -2508.5000, -680.9531, 139.8516, 0.25);
    RemoveBuildingForPlayer(playerid, 1684, -2508.4063, -669.0938, 139.8516, 0.25);
    // SFPD
    RemoveBuildingForPlayer(playerid, 10029, -1680.2109, 704.8516, 27.2031, 0.25);
    // Medic
    RemoveBuildingForPlayer(playerid, 7697, 942.5938, 1733.2344, 13.2813, 0.25);
    RemoveBuildingForPlayer(playerid, 1503, 921.5391, 1652.1172, 8.0391, 0.25);
    RemoveBuildingForPlayer(playerid, 645, 945.0078, 1722.0859, 7.3906, 0.25);
    RemoveBuildingForPlayer(playerid, 7696, 942.5938, 1733.2344, 13.2813, 0.25);
    RemoveBuildingForPlayer(playerid, 645, 944.9297, 1744.4766, 7.3906, 0.25);
    RemoveBuildingForPlayer(playerid, 645, 945.5938, 1763.0703, 7.3906, 0.25);
    RemoveBuildingForPlayer(playerid, 647, 952.5625, 1764.5625, 9.3438, 0.25);
    RemoveBuildingForPlayer(playerid, 647, 945.4531, 1765.4844, 9.3438, 0.25);
    RemoveBuildingForPlayer(playerid, 1503, 921.2188, 1814.3125, 8.0391, 0.25);
    RemoveBuildingForPlayer(playerid, 647, 960.5938, 1700.5781, 9.3438, 0.25);
    RemoveBuildingForPlayer(playerid, 645, 955.7500, 1701.7578, 7.3906, 0.25);
    RemoveBuildingForPlayer(playerid, 652, 968.7969, 1669.3281, 7.8672, 0.25);
    RemoveBuildingForPlayer(playerid, 652, 966.8984, 1695.5234, 7.8672, 0.25);
    RemoveBuildingForPlayer(playerid, 647, 964.5156, 1764.2578, 9.3438, 0.25);
    RemoveBuildingForPlayer(playerid, 647, 959.5078, 1765.8828, 9.3438, 0.25);
    RemoveBuildingForPlayer(playerid, 1250, 997.4141, 1707.5234, 10.8516, 0.25);
    RemoveBuildingForPlayer(playerid, 1251, 997.0469, 1710.9531, 11.2656, 0.25);
    RemoveBuildingForPlayer(playerid, 1251, 998.0938, 1755.6875, 11.2656, 0.25);
    RemoveBuildingForPlayer(playerid, 1250, 997.7266, 1759.1250, 10.8516, 0.25);
    // Oamt
    RemoveBuildingForPlayer(playerid, 3458, 2822.8281, 2167.9063, 11.3438, 0.25);
    RemoveBuildingForPlayer(playerid, 1245, 2787.2031, 2209.6406, 11.3750, 0.25);
    // FBI
    RemoveBuildingForPlayer(playerid, 3852, -2614.9063, 686.3672, 28.3594, 0.25);
    RemoveBuildingForPlayer(playerid, 9896, -2673.7969, 639.9766, 39.6172, 0.25);
    RemoveBuildingForPlayer(playerid, 1283, -2602.6875, 576.6406, 16.6484, 0.25);
    RemoveBuildingForPlayer(playerid, 9897, -2567.3438, 516.8281, 30.6250, 0.25);
    // Armybase
    RemoveBuildingForPlayer(playerid, 3366, 276.6563, 2023.7578, 16.6328, 0.25);
    RemoveBuildingForPlayer(playerid, 3366, 276.6563, 1989.5469, 16.6328, 0.25);
    RemoveBuildingForPlayer(playerid, 16093, 211.6484, 1810.1563, 20.7344, 0.25);
    RemoveBuildingForPlayer(playerid, 16638, 211.7266, 1809.1875, 18.9844, 0.25);
    RemoveBuildingForPlayer(playerid, 3279, 262.0938, 1807.6719, 16.8203, 0.25);
    RemoveBuildingForPlayer(playerid, 3279, 113.3828, 1814.4531, 16.8203, 0.25);
    RemoveBuildingForPlayer(playerid, 3279, 165.9531, 1849.9922, 16.8203, 0.25);
    RemoveBuildingForPlayer(playerid, 16094, 191.1406, 1870.0391, 21.4766, 0.25);
    RemoveBuildingForPlayer(playerid, 3279, 161.9063, 1933.0938, 16.8203, 0.25);
    RemoveBuildingForPlayer(playerid, 3279, 267.0625, 1895.2969, 16.8203, 0.25);
    RemoveBuildingForPlayer(playerid, 3268, 276.6563, 2023.7578, 16.6328, 0.25);
    RemoveBuildingForPlayer(playerid, 3268, 276.6563, 1989.5469, 16.6328, 0.25);
    // Stadthalle LS
    RemoveBuildingForPlayer(playerid, 4024, 1479.8672, -1790.3984, 56.0234, 0.25);
    RemoveBuildingForPlayer(playerid, 4044, 1481.1875, -1785.0703, 22.3828, 0.25);
    RemoveBuildingForPlayer(playerid, 4046, 1479.5234, -1852.6406, 24.5156, 0.25);
    RemoveBuildingForPlayer(playerid, 4047, 1531.6328, -1852.6406, 24.5156, 0.25);
    RemoveBuildingForPlayer(playerid, 1527, 1448.2344, -1755.8984, 14.5234, 0.25);
    RemoveBuildingForPlayer(playerid, 4217, 1449.2500, -1852.5703, 22.3672, 0.25);
    RemoveBuildingForPlayer(playerid, 713, 1407.1953, -1749.3125, 13.0938, 0.25);
    RemoveBuildingForPlayer(playerid, 1266, 1482.0859, -1859.9688, 25.0391, 0.25);
    RemoveBuildingForPlayer(playerid, 713, 1405.2344, -1821.1172, 13.1016, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1417.9766, -1832.5313, 11.9844, 0.25);
    RemoveBuildingForPlayer(playerid, 1294, 1393.2734, -1796.3516, 16.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 1372, 1419.7344, -1846.5469, 12.6641, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 1420.4297, -1845.3438, 12.9844, 0.25);
    RemoveBuildingForPlayer(playerid, 1372, 1419.6953, -1844.2031, 12.6641, 0.25);
    RemoveBuildingForPlayer(playerid, 1220, 1420.4922, -1842.4375, 12.9297, 0.25);
    RemoveBuildingForPlayer(playerid, 1220, 1419.7266, -1842.8516, 12.9297, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 1419.6719, -1842.0313, 12.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 4170, 1433.9531, -1844.4063, 21.4219, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1456.3984, -1832.5313, 11.9844, 0.25);
    RemoveBuildingForPlayer(playerid, 1260, 1482.0859, -1859.9688, 25.0391, 0.25);
    RemoveBuildingForPlayer(playerid, 4004, 1479.5234, -1852.6406, 24.5156, 0.25);
    RemoveBuildingForPlayer(playerid, 1231, 1480.0313, -1832.9141, 15.2891, 0.25);
    RemoveBuildingForPlayer(playerid, 4171, 1503.3984, -1848.3359, 21.4609, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1504.8438, -1832.5313, 11.9844, 0.25);
    RemoveBuildingForPlayer(playerid, 700, 1404.9141, -1765.2656, 12.9141, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1429.5313, -1748.4219, 12.9063, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1447.9063, -1748.2266, 12.9063, 0.25);
    RemoveBuildingForPlayer(playerid, 4002, 1479.8672, -1790.3984, 56.0234, 0.25);
    RemoveBuildingForPlayer(playerid, 3980, 1481.1875, -1785.0703, 22.3828, 0.25);
    RemoveBuildingForPlayer(playerid, 4003, 1481.0781, -1747.0313, 33.5234, 0.25);
    RemoveBuildingForPlayer(playerid, 4048, 1531.6328, -1852.6406, 24.5156, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 1538.8359, -1847.6250, 13.6719, 0.25);
    RemoveBuildingForPlayer(playerid, 1220, 1538.3906, -1847.9297, 12.9297, 0.25);
    RemoveBuildingForPlayer(playerid, 1220, 1539.1016, -1847.2969, 12.9297, 0.25);
    RemoveBuildingForPlayer(playerid, 1231, 1529.2891, -1832.9141, 15.2891, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1549.5313, -1832.3125, 12.8828, 0.25);
    RemoveBuildingForPlayer(playerid, 673, 1555.6641, -1830.5938, 13.0234, 0.25);
    RemoveBuildingForPlayer(playerid, 4175, 1524.4141, -1823.8516, 15.1797, 0.25);
    RemoveBuildingForPlayer(playerid, 700, 1554.8203, -1816.1563, 13.4766, 0.25);
    RemoveBuildingForPlayer(playerid, 1226, 1564.9922, -1795.6797, 16.4219, 0.25);
    //
    new plname[MAX_PLAYER_NAME];
    new string[MAX_PLAYER_NAME];
    ADuty[playerid] = 0;
    SelectChar[playerid] = 0; HidePM[playerid] = 0; PhoneOnline[playerid] = 0;
    SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0;
    GettingJob[playerid] = 0; GuardOffer[playerid] = 999; GuardPrice[playerid] = 0;
    ApprovedLawyer[playerid] = 0; CallLawyer[playerid] = 0; WantLawyer[playerid] = 0;
    KickPlayer[playerid] = 0; CurrentMoney[playerid] = 0; UsedFind[playerid] = 0;
    CP[playerid] = 0; Robbed[playerid] = 0; SpawnChange[playerid] = 1;
    CarOffer[playerid] = 999; CarPrice[playerid] = 0; CarID[playerid] = 0; CarCalls[playerid] = 0;
    RobbedTime[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0;
    STDPlayer[playerid] = 0; SexOffer[playerid] = 999; SexPrice[playerid] = 0;
    RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0;
    TalkingLive[playerid] = 255; LiveOffer[playerid] = 999; TakingLesson[playerid] = 0;
    RefillOffer[playerid] = 999; RefillPrice[playerid] = 0; MapIconsShown[playerid] = 0;
    DrugOffer[playerid] = 999; PlayerCuffed[playerid] = 0; PlayerCuffedTime[playerid] = 0;
    DrugPrice[playerid] = 0; RegistrationStep[playerid] = 0; OnCK[playerid] = 999; GettingCK[playerid] = 999;
    DrugGram[playerid] = 0; ConnectedToPC[playerid] = 0; OrderReady[playerid] = 0;
    JailPrice[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; MedicBill[playerid] = 0; GotHit[playerid] = 0;
    WantedPoints[playerid] = 0; GoChase[playerid] = 999; GetChased[playerid] = 999; PlacedNews[playerid] = 0;
    OnDuty[playerid] = 0; WantedLevel[playerid] = 0; TestFishes[playerid] = 0;
    BoxWaitTime[playerid] = 0; SchoolSpawn[playerid] = 1; ChangePos2[playerid][1] = 0;
    SafeTime[playerid] = 60; TransportDuty[playerid] = 0; PlayerTied[playerid] = 0;
    BusCallTime[playerid] = 0; TaxiCallTime[playerid] = 0; MedicCallTime[playerid] = 0; MechanicCallTime[playerid] = 0;
    FindTimePoints[playerid] = 0; FindTime[playerid] = 0; JobDuty[playerid] = 0;
    Mobile[playerid] = 255; Music[playerid] = 0; BoxOffer[playerid] = 999; PlayerBoxing[playerid] = 0;
    Spectate[playerid] = 255; PlayerDrunk[playerid] = 0; PlayerDrunkTime[playerid] = 0;
    Unspec[playerid][sLocal] = 255; FishCount[playerid] = 0;
    WritingPaper[playerid] = 0; WritingPaperNumber[playerid] = 999; WritingLine[playerid] = 0; BringingPaper[playerid] = 0; GotPaper[playerid] = 0;
    PaperOffer[playerid] = 999; ConsumingMoney[playerid] = 0;
    gLastCar[playerid] = 0; FirstSpawn[playerid] = 0;
    gOoc[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0;
    gSpeedo[playerid] = 0;
    gPlayerLogged[playerid] = 0; gPlayerLogTries[playerid] = 0; gPlayerAccount[playerid] = 0;
    gPlayerSpawned[playerid] = 0; PlayerKarting[playerid] = 0; PlayerInKart[playerid] = 0;
    PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0;
    StartTime[playerid] = 0; TicketOffer[playerid] = 999; TicketMoney[playerid] = 0;
    MatsHolding[playerid] = 0; TutTime[playerid] = 0;
    gPlayerMission[playerid] = 0; TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999;
    PlayerInfo[playerid][pCash] = dollah; NoFuel[playerid] = 0;
    HireCar[playerid] = 299; PlayersChannel[playerid] = 999;
    TransportValue[playerid] = 0; TransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999;
    Locator[playerid] = 0; PlayerOnMission[playerid] = 0; MissionCheckpoint[playerid] = 0;
    WatchingTV[playerid] = 0; PlayerPaintballing[playerid] = 0; PlayerPaintballKills[playerid] = 0;
    Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0;
    ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999;
    GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
    pIstTot[playerid] = 0;
    PlayerInfo[playerid][pTod] = 0;
    PlayerInfo[playerid][pLevel] = 0;
    PlayerInfo[playerid][pAdmin] = 0;
    PlayerInfo[playerid][pDonateRank] = 0;
    PlayerInfo[playerid][gPupgrade] = 0;
    PlayerInfo[playerid][pConnectTime] = 0;
    PlayerInfo[playerid][pReg] = 0;
    PlayerInfo[playerid][pSex] = 0;
    PlayerInfo[playerid][pAge] = 0;
    PlayerInfo[playerid][pOrigin] = 0;
    PlayerInfo[playerid][pExp] = 0;
    PlayerInfo[playerid][pAccount] = 0;
    PlayerInfo[playerid][pCrimes] = 0;
    PlayerInfo[playerid][pDeaths] = 0;
    PlayerInfo[playerid][pArrested] = 0;
    PlayerInfo[playerid][pWantedDeaths] = 0;
    PlayerInfo[playerid][pPhoneBook] = 0;
    PlayerInfo[playerid][pLottoNr] = 0;
    PlayerInfo[playerid][pFishes] = 0;
    PlayerInfo[playerid][pBiggestFish] = 0;
    PlayerInfo[playerid][pJob] = 0;
    PlayerInfo[playerid][pPayCheck] = 0;
    PlayerInfo[playerid][pHeadValue] = 0;
    PlayerInfo[playerid][pJailed] = 0;
    PlayerInfo[playerid][pJailTime] = 0;
    PlayerInfo[playerid][pMats] = 0;
    PlayerInfo[playerid][pDrugs] = 0;
    PlayerInfo[playerid][pLeader] = 0;
    PlayerInfo[playerid][pMember] = 0;
    PlayerInfo[playerid][pFMember] = 255;
    PlayerInfo[playerid][pRank] = 0;
    PlayerInfo[playerid][pChar] = 0;
    PlayerInfo[playerid][pContractTime] = 0;
    PlayerInfo[playerid][pDetSkill] = 0;
    PlayerInfo[playerid][pSexSkill] = 0;
    PlayerInfo[playerid][pBoxSkill] = 0;
    PlayerInfo[playerid][pLawSkill] = 0;
    PlayerInfo[playerid][pMechSkill] = 0;
    PlayerInfo[playerid][pJackSkill] = 0;
    PlayerInfo[playerid][pCarSkill] = 0;
    PlayerInfo[playerid][pNewsSkill] = 0;
    PlayerInfo[playerid][pDrugsSkill] = 0;
    PlayerInfo[playerid][pCookSkill] = 0;
    PlayerInfo[playerid][pFishSkill] = 0;
    PlayerInfo[playerid][pSHealth] = 0.0;
    PlayerInfo[playerid][pHealth] = 50.0;
    PlayerInfo[playerid][pPos_x] = 2246.6;
    PlayerInfo[playerid][pPos_y] = -1161.9;
    PlayerInfo[playerid][pPos_z] = 1029.7;
    PlayerInfo[playerid][pInt] = 15;
    PlayerInfo[playerid][pLocal] = 255;
    PlayerInfo[playerid][pTeam] = 3;
    PlayerInfo[playerid][pModel] = 264;
    new randphone = 1000 + random(8999);//minimum 1000 max 9999 //giving one at the start
    PlayerInfo[playerid][pPnumber] = randphone;
    PlayerInfo[playerid][pPhousekey] = 255;
    PlayerInfo[playerid][pPbiskey] = 255;
    PlayerInfo[playerid][pCarLic] = 0;
    PlayerInfo[playerid][pFlyLic] = 0;
    PlayerInfo[playerid][pBoatLic] = 0;
    PlayerInfo[playerid][pFishLic] = 0;
    PlayerInfo[playerid][pTruckLic] = 0;
    PlayerInfo[playerid][pBikeLic] = 0;
    PlayerInfo[playerid][pGunLic] = 0;
    PlayerInfo[playerid][pGun1] = 0;
    PlayerInfo[playerid][pGun2] = 0;
    PlayerInfo[playerid][pGun3] = 0;
    PlayerInfo[playerid][pGun4] = 0;
    PlayerInfo[playerid][pAmmo1] = 0;
    PlayerInfo[playerid][pAmmo2] = 0;
    PlayerInfo[playerid][pAmmo3] = 0;
    PlayerInfo[playerid][pAmmo4] = 0;
    PlayerInfo[playerid][pCarTime] = 0;
    PlayerInfo[playerid][pPayDay] = 0;
    PlayerInfo[playerid][pPayDayHad] = 0;
    PlayerInfo[playerid][pCDPlayer] = 0;
    PlayerInfo[playerid][pWins] = 0;
    PlayerInfo[playerid][pLoses] = 0;
    PlayerInfo[playerid][pAlcoholPerk] = 0;
    PlayerInfo[playerid][pDrugPerk] = 0;
    PlayerInfo[playerid][pMiserPerk] = 0;
    PlayerInfo[playerid][pPainPerk] = 0;
    PlayerInfo[playerid][pTraderPerk] = 0;
    PlayerInfo[playerid][pTut] = 0;
    PlayerInfo[playerid][pMissionNr] = 0;
    PlayerInfo[playerid][pWarns] = 0;
    PlayerInfo[playerid][pFuel] = 0;
    PlayerInfo[playerid][pAdjustable] = 0;
    PlayerInfo[playerid][pPersoStop] = 0;
    PlayerInfo[playerid][pOwnPerso] = 0;
    ClearCrime(playerid);
    ClearFishes(playerid);
    ClearCooking(playerid);
    ClearGroceries(playerid);
    ClearMarriage(playerid);
    SetPlayerColor(playerid,COLOR_GRAD2);
    GetPlayerName(playerid, plname, sizeof(plname));
    format(string, sizeof(string),"/Accounts/%s.ini", plname);
    SendClientMessage(playerid,COLOR_WHITE, "{FFFFFF}» Willkommen auf {FF0000}---{FFFFFF}!");
    if(fexist(string))
    {
    gPlayerAccount[playerid] = 1;
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login","Dein Account wurde in unserer Datenbank gefunden, bitte gebe nun dein Passwort ein und logge dich somit ein.","Login","Abbrechen");
    return 1;
    }
    else
    {
    gPlayerAccount[playerid] = 0;
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"Register","Dein Account wurde nicht in unserer Datenbank gefunden, bitte gebe nun dein Passwort ein und logge dich somit ein.","Register","Abbrechen");
    return 1;
    }


    }


    (OnPlayerLogin)

    public OnPlayerLogin(playerid,password[])
    {
    new tmp2[256];
    new string2[100];
    new playername2[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername2, sizeof(playername2));
    format(string2, sizeof(string2), "/Accounts/%s.ini", playername2);
    new File: UserFile = fopen(string2, io_read);
    SpawnPlayer(playerid);
    if ( UserFile )
    {
    new PassData[256];
    new keytmp[256], valtmp[256];
    fread( UserFile , PassData , sizeof( PassData ) );
    keytmp = ini_GetKey( PassData );
    if( strcmp( keytmp , "Key" , true ) == 0 )
    {
    valtmp = ini_GetValue( PassData );
    strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
    }
    if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 )
    {
    new key[ 256 ] , val[ 256 ];
    new Data[ 256 ];
    while ( fread( UserFile , Data , sizeof( Data ) ) )
    {
    key = ini_GetKey( Data );
    if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevel] = strval( val ); }
    if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strval( val ); }
    if( strcmp( key , "DonateRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDonateRank] = strval( val ); }
    if( strcmp( key , "UpgradePoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][gPupgrade] = strval( val ); }
    if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectTime] = strval( val ); }
    if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); }
    if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); }
    if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAge] = strval( val ); }
    if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strval( val ); }
    if( strcmp( key , "CK" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCK] = strval( val ); }
    if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strval( val ); }
    if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); }
    if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
    if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAccount] = strval( val ); }
    if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strval( val ); }
    if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }
    if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); }
    if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArrested] = strval( val ); }
    if( strcmp( key , "WantedDeaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedDeaths] = strval( val ); }
    if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhoneBook] = strval( val ); }
    if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strval( val ); }
    if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishes] = strval( val ); }
    if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBiggestFish] = strval( val ); }
    if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJob] = strval( val ); }
    if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayCheck] = strval( val ); }
    if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strval( val ); }
    if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strval( val ); }
    if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strval( val ); }
    if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strval( val ); }
    if( strcmp( key , "Drugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugs] = strval( val ); }
    if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeader] = strval( val ); }
    if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMember] = strval( val ); }
    if( strcmp( key , "FMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFMember] = strval( val ); }
    if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRank] = strval( val ); }
    if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChar] = strval( val ); }
    if( strcmp( key , "ContractTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pContractTime] = strval( val ); }
    if( strcmp( key , "DetSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDetSkill] = strval( val ); }
    if( strcmp( key , "SexSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexSkill] = strval( val ); }
    if( strcmp( key , "BoxSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxSkill] = strval( val ); }
    if( strcmp( key , "LawSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawSkill] = strval( val ); }
    if( strcmp( key , "MechSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechSkill] = strval( val ); }
    if( strcmp( key , "JackSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJackSkill] = strval( val ); }
    if( strcmp( key , "CarSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarSkill] = strval( val ); }
    if( strcmp( key , "NewsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewsSkill] = strval( val ); }
    if( strcmp( key , "DrugsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugsSkill] = strval( val ); }
    if( strcmp( key , "CookSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCookSkill] = strval( val ); }
    if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishSkill] = strval( val ); }
    if( strcmp( key , "pSHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSHealth] = floatstr( val ); }
    if( strcmp( key , "pHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHealth] = floatstr( val ); }
    if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strval( val ); }
    if( strcmp( key , "Local" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocal] = strval( val ); }
    if( strcmp( key , "Team" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTeam] = strval( val ); }
    if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pModel] = strval( val ); }
    if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); }
    if( strcmp( key , "House" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhousekey] = strval( val ); }
    if( strcmp( key , "Bizz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbiskey] = strval( val ); }
    if( strcmp( key , "Pos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_x] = floatstr( val ); }
    if( strcmp( key , "Pos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_y] = floatstr( val ); }
    if( strcmp( key , "Pos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_z] = floatstr( val ); }
    if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarLic] = strval( val ); }
    if( strcmp( key , "TruckLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTruckLic] = strval( val ); }
    if( strcmp( key , "BikeLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBikeLic] = strval( val ); }
    if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strval( val ); }
    if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strval( val ); }
    if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = strval( val ); }
    if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); }
    if( strcmp( key , "Gun1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun1] = strval( val ); }
    if( strcmp( key , "Gun2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun2] = strval( val ); }
    if( strcmp( key , "Gun3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun3] = strval( val ); }
    if( strcmp( key , "Gun4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun4] = strval( val ); }
    if( strcmp( key , "Ammo1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo1] = strval( val ); }
    if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo2] = strval( val ); }
    if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo3] = strval( val ); }
    if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo4] = strval( val ); }
    if( strcmp( key , "CarTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarTime] = strval( val ); }
    if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDay] = strval( val ); }
    if( strcmp( key , "PayDayHad" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDayHad] = strval( val ); }
    if( strcmp( key , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCDPlayer] = strval( val ); }
    if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strval( val ); }
    if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strval( val ); }
    if( strcmp( key , "AlcoholPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAlcoholPerk] = strval( val ); }
    if( strcmp( key , "DrugPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugPerk] = strval( val ); }
    if( strcmp( key , "MiserPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMiserPerk] = strval( val ); }
    if( strcmp( key , "PainPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPainPerk] = strval( val ); }
    if( strcmp( key , "TraderPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTraderPerk] = strval( val ); }
    if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strval( val ); }
    if( strcmp( key , "Mission" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMissionNr] = strval( val ); }
    if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); }
    if( strcmp( key , "Adjustable" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdjustable] = strval( val ); }
    if( strcmp( key , "Perso" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOwnPerso] = strval( val ); }
    if( strcmp( key , "Fuel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFuel] = strval( val ); }
    if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strval( val ); }
    if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); }
    }//end while
    fclose(UserFile);//close the file after everything has been read in the while
    }
    else
    {
    SendClientMessage(playerid, COLOR_WHITE, "SERVER: Dieses Passwort ist falsch.");
    fclose(UserFile);
    gPlayerLogTries[playerid] += 1;
    if(gPlayerLogTries[playerid] == 4) { Ban(playerid); }
    return 1;
    }
    PlayerInfo[playerid][pAdjustable] = 0;
    ResetPlayerMoney(playerid);
    ConsumingMoney[playerid] = 1;
    GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
    CurrentMoney[playerid] = PlayerInfo[playerid][pCash];
    if(PlayerInfo[playerid][pReg] == 0)
    {
    PlayerInfo[playerid][pLevel] = 1;
    PlayerInfo[playerid][pSHealth] = 100.0;
    PlayerInfo[playerid][pHealth] = 100.0;
    PlayerInfo[playerid][pPos_x] = 2246.6;
    PlayerInfo[playerid][pPos_y] = -1161.9;
    PlayerInfo[playerid][pPos_z] = 1029.7;
    PlayerInfo[playerid][pInt] = 15;
    PlayerInfo[playerid][pLocal] = 255;
    PlayerInfo[playerid][pTeam] = 3;
    PlayerInfo[playerid][pModel] = 264;
    new randphone = 1000 + random(8999);//minimum 1000 max 9999 //giving one at the start
    PlayerInfo[playerid][pPnumber] = randphone;
    PlayerInfo[playerid][pPhousekey] = 255;
    PlayerInfo[playerid][pPbiskey] = 255;
    PlayerInfo[playerid][pAccount] = 0;
    PlayerInfo[playerid][pReg] = 1;
    GivePlayerMoney(playerid, 2000);
    }
    if(PlayerInfo[playerid][pLevel] == -999) //autoban
    {
    Ban(playerid);
    }
    else if(PlayerInfo[playerid][pCK] > 0)
    {
    Kick(playerid);
    }
    format(string2, sizeof(string2), "{FFFFFF}» Herzlich Willkommen zurück, %s",playername2);
    SendClientMessage(playerid, COLOR_WHITE,string2);
    printf("%s has logged in.",playername2);
    if (PlayerInfo[playerid][pDonateRank] > 0)
    {
    SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}» Du hast dich mit deinem Premium-Account {00FF00}erfolgreich{FFFFFF} eingeloggt.");
    }
    if (PlayerInfo[playerid][pAdmin] > 0)
    {
    format(string2, sizeof(string2), "{FFFFFF}» Du bist dem Administratoren-Rang {FF0000}%d{FFFFFF} eingeloggt!",PlayerInfo[playerid][pAdmin]);
    SendClientMessage(playerid, COLOR_WHITE,string2);
    }
    SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
    if(gTeam[playerid] == 0)
    {
    gTeam[playerid] = 3;
    }
    else
    {
    gTeam[playerid] = PlayerInfo[playerid][pTeam];
    }
    gPlayerLogged[playerid] = 1;
    SpawnPlayer(playerid);
    format(tmp2, sizeof(tmp2), "~w~Willkommen ~n~~y~ %s", playername2);
    DateProp(playerid);
    GameTextForPlayer(playerid, tmp2, 5000, 1);
    SendClientMessage(playerid, COLOR_YELLOW, motd);
    if(PlayerInfo[playerid][pFMember] < 255)
    {
    format(tmp2, sizeof(tmp2), "Familie MOTD: %s.", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]);
    SendClientMessage(playerid, COLOR_YELLOW, tmp2);
    }
    }
    return 1;
    }



    (und bei OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]))

    if(dialogid == DIALOG_LOGIN)
    {
    if(response == 0)
    {
    SendClientMessage(playerid,COLOR_IRED,"Du hast den Authenfizierungs Prozess abgebrochen . . .");
    Kick(playerid);
    return 1;
    }
    if(response == 1)
    {
    OnPlayerLogin(playerid,inputtext);
    return 1;
    }
    }



    Wo ist der Fehler, benötige mal wieder hilfe :/




    MfG
    James.

    Liebe Community,
    Ich habe das Problem das wenn ich mir einen Perso (Personalausweis) kaufe er solange im Spiel ist bis ich es beende, also er wird nicht gespeichert. Warum?, ich habe eigentlich alle eingefügt.


    Die Zeilen:


    (Der /persokaufen befehl)

    if (strcmp("/persokaufen", cmd, true) == 0)
    {
    if(PlayerInfo[playerid][pPersoStop] == 1)
    {
    SendClientMessage(playerid, COLOR_WHITE,"» Dein Antrag auf einen Personalausweis ist nocht nicht fertig. Bitte komm später wieder!");
    return 1;
    }
    if(PlayerInfo[playerid][pOwnPerso] == 1)
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du hast bereits einen Personalsausweis!");
    return 1;
    }
    if(PlayerToPoint(4.0,playerid,362.6561,173.7679,1008.3828))
    {
    if(AllowPerso[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_WHITE, " ");
    SendClientMessage(playerid, COLOR_WHITE, "{00FF00}|{006600}=============== {FFFF00}Personalausweis Information{006600} ==============={00FF00}|{006600}");
    SendClientMessage(playerid, COLOR_YELLOW, "{FFFFFF}* Dein Personalausweis wurde erstellt.");
    SendClientMessage(playerid, COLOR_WHITE, "{FFFFFF}* Tipp /show um ihn vorzuzeigen!");
    SendClientMessage(playerid, COLOR_WHITE, "{FFFFFF}* Bearbeitungskosten: {FF0000}$500{FFFFFF}");
    SendClientMessage(playerid, COLOR_WHITE, " ");
    GivePlayerMoney(playerid,-500);
    PlayerInfo[playerid][pOwnPerso] = 1;
    TogglePlayerControllable(playerid, 1);
    return 1;
    }
    else if(AllowPerso[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_WHITE,"{FFFFFF}* Dein Antrag für einen Personalausweis wurde {006600}erfolgreich{FFFFFF} gestellt. In {FF0000}15{FFFFFF} Minuten kannst du ihn abholen! *");
    SetTimerEx("PersoAntrag", 900000, 0, "d", playerid);
    PlayerInfo[playerid][pPersoStop] = 1;
    TogglePlayerControllable(playerid, 1);
    //SetPlayerPos(playerid, 366.7451,173.8046,1008.3828);
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist nicht in der Stadthalle!");
    return 1;
    }
    }
    return 1;
    }


    (Die Rathaus-Information)

    public PersoAntrag(playerid)
    {
    SendClientMessage(playerid, COLOR_GREEN," ");
    SendClientMessage(playerid, COLOR_GREEN,"{00FF00}|{006600}=============== {FFFF00}Personalausweis Information{006600} ==============={00FF00}|{006600}");
    SendClientMessage(playerid, COLOR_RED,"{FFFFFF}» Dein Personalausweis ist nun fertiggestellt.");
    SendClientMessage(playerid, COLOR_RED, "{FFFFFF}» Sie können ihn nun in der Stadthalle abholen. ({FF0000}/navi{FFFFFF})");
    SendClientMessage(playerid, COLOR_GREEN," ");
    AllowPerso[playerid] = 1;
    PlayerInfo[playerid][pPersoStop] = 0;
    return 1;
    }


    (Bei OnPlayerConnect)

    PlayerInfo[playerid][pPersoStop] = 0;
    PlayerInfo[playerid][pOwnPerso] = 0;


    (Bei ShowStats)



    public ShowStats(playerid,targetid)
    {
    //new string[128];
    //new giveplayerid;
    if(PlayerInfo[playerid][pOwnPerso] == 0)
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du besitzt keinen Personalausweis.");
    return 1;
    }
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
    {
    new cash = GetPlayerMoney(targetid);
    new atext[20];
    if(PlayerInfo[targetid][pSex] == 1) { atext = "männlich"; }
    else if(PlayerInfo[targetid][pSex] == 2) { atext = "weiblich"; }
    new otext[20];
    if(PlayerInfo[targetid][pOrigin] == 1) { otext = "USA"; }
    else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "Europa"; }
    else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Asien"; }
    new ttext[20];
    if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "Paramedic"; }
    else if(gTeam[targetid] == 3 || gTeam[targetid] == 4) { ttext = "Zivilist"; }
    else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1) { ttext = "Officer"; }
    else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2) { ttext = "Agent"; }
    else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3) { ttext = "Soldat"; }
    else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "Paramedic"; }
    else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5) { ttext = "Mafioso"; }
    else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6) { ttext = "Triade"; }
    else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8) { ttext = "Hitmen"; }
    else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9) { ttext = "News Reporter"; }
    else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10) { ttext = "Taxifahrer"; }
    else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11) { ttext = "Fahrlehrer"; }
    else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12) { ttext = "DaNang Boy"; }
    else if(PlayerInfo[targetid][pMember] == 13 || PlayerInfo[targetid][pLeader] == 13) { ttext = "Rifa Mitglied"; }
    else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14) { ttext = "Ordnungshüter"; }
    new dtext[20];
    if(STDPlayer[targetid] == 1) { dtext = "Chlamydien"; }
    else if(STDPlayer[targetid] == 2) { dtext = "Gonorrhoe"; }
    else if(STDPlayer[targetid] == 3) { dtext = "Syphilis"; }
    else { dtext = "Keine"; }
    new ftext[20];
    if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)
    { ftext = "Feuerwehr/Rettung"; }
    else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5)
    { ftext = "Russische Mafia"; }
    else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6)
    { ftext = "Triaden"; }
    else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11)
    { ftext = "Lizensenvergeber"; }
    else
    { ftext = "None"; }
    new f2text[20];
    if(PlayerInfo[targetid][pFMember] < 255) { f2text = FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyName]; }
    else { f2text = "Keine"; }
    new rtext[64];
    if(gTeam[targetid] == 5 || PlayerInfo[targetid][pFMember] < 255)//The 2 Organisations
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Außenseiter"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Associate"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Soldat"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Capo"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Unterboss"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Boss"; }
    else { rtext = "Outsider"; }
    }
    else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)//PD Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Kadet"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Officer"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Sergeant"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Leutnant"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Captain"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Chef"; }
    else { rtext = "Cadet"; }
    }
    else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)//FBI Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Professional Staff"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Spezialagent"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Spezialagent 2"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Spezialagent 3"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Direktorassistent"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Direktor"; }
    else { rtext = "Intern"; }
    }
    else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3)//NG Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Privat"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Sergeant"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Major"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Captain"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Leutnant"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "General"; }
    else { rtext = "Privat"; }
    }
    else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8)//Hitman Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Freelancer"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Marksman"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Agent"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Spezialagent"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Fize-Direktor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Direktor"; }
    else { rtext = "Freelancer"; }
    }
    else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9)//NR Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Intern"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Lokaler Reporter"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Lokaler Editor"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Netzwerk Anker"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Netzwerk Editor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Netwerk Produzent"; }
    else { rtext = "Intern"; }
    }
    else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10)//Taxi Company Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Taxifahrlehrling"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Taxifahrer"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Cabbie"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Dispatcher"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Shift Supervisor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Taxi Firmeninhaber"; }
    else { rtext = "Trainee"; }
    }
    else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12)//DaNang Boys
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Nigga"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Gangsta"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Homie"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Homie"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Special Homie"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Boss"; }
    else { rtext = "Trainee"; }
    }
    else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12)//Rifa
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Nigga"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Gangsta"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Homie"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Homie"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Special Homie"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Boss"; }
    else { rtext = "Trainee"; }
    }
    else if(IsAnInstructor(targetid))//Driving/Flying School Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Beamter"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Beamter"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Beamter"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Beamter"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Beamter"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Beamter"; }
    else { rtext = "Trainee"; }
    }
    else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14)//Fahrschule
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Fahrlehrer"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Fahrlehrer 2"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Fahrlehrer 3"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Manager"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Unterboss"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Boss"; }
    else { rtext = "Trainee"; }
    }
    else
    {
    rtext = "Keiner";
    }
    new jtext[20];
    if(PlayerInfo[targetid][pJob] == 1) { jtext = "Detektiv"; }
    else if(PlayerInfo[targetid][pJob] == 2) { jtext = "Anwalt"; }
    else if(PlayerInfo[targetid][pJob] == 3) { jtext = "Hure"; }
    else if(PlayerInfo[targetid][pJob] == 4) { jtext = "Drogendealer"; }
    else if(PlayerInfo[targetid][pJob] == 5) { jtext = "Autodieb"; }
    else if(PlayerInfo[targetid][pJob] == 6) { jtext = "News Reporter"; }
    else if(PlayerInfo[targetid][pJob] == 7) { jtext = "Mechaniker"; }
    else if(PlayerInfo[targetid][pJob] == 8) { jtext = "Bodyguard"; }
    else if(PlayerInfo[targetid][pJob] == 9) { jtext = "Waffehändler"; }
    else if(PlayerInfo[targetid][pJob] == 10) { jtext = "Autohändler"; }
    else if(PlayerInfo[targetid][pJob] == 12) { jtext = "Boxer"; }
    else if(PlayerInfo[targetid][pJob] == 14) { jtext = "Busfahrer"; }
    else if(PlayerInfo[targetid][pJob] == 15) { jtext = "Zeitungsjunge"; }
    else if(PlayerInfo[targetid][pJob] == 16) { jtext = "Trucker"; }
    else { jtext = "Keiner"; }
    new drank[20];
    if(PlayerInfo[targetid][pDonateRank] == 1) { drank = "Power User"; }
    else if(PlayerInfo[targetid][pDonateRank] >= 2) { drank = "Donater"; }
    else { drank = "Keiner"; }
    new married[20];
    strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
    new age = PlayerInfo[targetid][pAge];
    new ptime = PlayerInfo[targetid][pConnectTime];
    new lotto = PlayerInfo[targetid][pLottoNr];
    new deaths = PlayerInfo[targetid][pDeaths];
    new fishes = PlayerInfo[targetid][pFishes];
    new bigfish = PlayerInfo[targetid][pBiggestFish];
    new crimes = PlayerInfo[targetid][pCrimes];
    new arrests = PlayerInfo[targetid][pArrested];
    new warrests = PlayerInfo[targetid][pWantedDeaths];
    new drugs = PlayerInfo[targetid][pDrugs];
    new mats = PlayerInfo[targetid][pMats];
    new wanted = WantedLevel[targetid];
    new level = PlayerInfo[targetid][pLevel];
    new exp = PlayerInfo[targetid][pExp];
    new kills = PlayerInfo[targetid][pKills];
    new pnumber = PlayerInfo[targetid][pPnumber];
    new account = PlayerInfo[targetid][pAccount];
    new nxtlevel = PlayerInfo[targetid][pLevel]+1;
    new expamount = nxtlevel*levelexp;
    new costlevel = nxtlevel*levelcost;//10k for testing purposes
    new housekey = PlayerInfo[targetid][pPhousekey];
    new bizkey = PlayerInfo[targetid][pPbiskey];
    new intir = PlayerInfo[targetid][pInt];
    new local = PlayerInfo[targetid][pLocal];
    new Float:shealth = PlayerInfo[targetid][pSHealth];
    new Float:health;
    new name[MAX_PLAYER_NAME];
    GetPlayerName(targetid, name, sizeof(name));
    GetPlayerHealth(targetid,health);
    new Float:px,Float:py,Float:pz;
    GetPlayerPos(targetid, px, py, pz);
    new coordsstring[256];
    SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
    format(coordsstring, sizeof(coordsstring),"*** %s ***",name);
    SendClientMessage(playerid, COLOR_WHITE,coordsstring);
    format(coordsstring, sizeof(coordsstring), "Level:[%d] Geschlecht:[%s] Alter:[%d] Herkunft:[%s] Spawngesundheit:[%.1f] Geld:[%d$] Bank:[%d$] Ph:[%d]", level,atext,age,otext,shealth+50, cash, account, pnumber);
    SendClientMessage(playerid, COLOR_GRAD1,coordsstring);
    format(coordsstring, sizeof(coordsstring), "DonateRank:[%s] Verheiratet:[%s] Spielzeit:[%d] LottoNr:[%d] Job:[%s]", drank,married,ptime,lotto,jtext);
    SendClientMessage(playerid, COLOR_GRAD3,coordsstring);
    format(coordsstring, sizeof(coordsstring), "GefangeneFische:[%d] GrößterFisch:[%d] Verbrechen:[%d] Gefängniszeit:[%d] Wantedtode:[%d]", fishes,bigfish,crimes,arrests,warrests );
    SendClientMessage(playerid, COLOR_GRAD4,coordsstring);
    format(coordsstring, sizeof(coordsstring), "Kills:[%d] Deaths:[%d] NextLevel:[$%d] Respekt:[%d/%d] WantedLevel:[%d] Familie:[%s]",kills,deaths,costlevel,exp,expamount,wanted,f2text);
    SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
    format(coordsstring, sizeof(coordsstring), "Drogen:[%d] Materialien:[%d] Team:[%s] Krankheit:[%s] Organisation:[%s] Rank:[%s]",drugs,mats,ttext,dtext,ftext,rtext);
    SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
    if (PlayerInfo[playerid][pAdmin] >= 1)
    {
    format(coordsstring, sizeof(coordsstring), "Hausschlüssel [%d] Firemnschlüssel [%d] GeliehenerSchlüssel [%d] int:[%d] Ort [%d]", housekey,bizkey,HireCar[targetid],intir,local);
    SendClientMessage(playerid, COLOR_GRAD6,coordsstring);
    }
    SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
    }
    return 1;
    }


    (Bei OnPlayerRegister)

    format(var, 32, "Perso=%d\n",PlayerInfo[playerid][pOwnPerso]);fwrite(hFile, var);


    (Bei OnPlayerUpdate)

    format(var, 32, "Perso=%d\n",PlayerInfo[playerid][pOwnPerso]);fwrite(hFile, var);


    (Bei OnPlayerLogin)

    if( strcmp( key , "Perso" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOwnPerso] = strval( val ); }}




    Vielleicht nützliche Info: Ich bekomme keine Errors.



    Ich hoffe ihr könnt helfen.




    MfG
    James.

    Liebe Community,
    Ich habe eine Frage, ich habe einen Uhrzeit-Filterscript drin, doch wenn es 21:00 Uhr ist, ist es immer noch nicht dunkel.
    Meine Frage ist, wie kann ich einstellen das es ab z.b. 21:00 Uhr stockduster ist?


    Vielleicht nützliche Zeilen:



    public OnPlayerSpawn(playerid)
    {
    TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);



    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    TextDrawHideForPlayer(playerid, Time), TextDrawHideForPlayer(playerid, Date);
    return 1;
    }


    public settime(playerid)
    {
    new string[256],year,month,day,hours,minutes,seconds;
    getdate(year, month, day), gettime(hours, minutes, seconds);
    format(string, sizeof string, "%d/%s%d/%s%d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year);
    TextDrawSetString(Date, string);
    format(string, sizeof string, "%s%d:%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds);
    TextDrawSetString(Time, string);
    }



    Ich hoffe ihr könnt mir helfen :)



    MfG
    James.Spader.

    1: Teste mal, geh auf den Server, und lauf mal dort hin wo das Tor sein sollte, schau mal ob es erst später auftaucht oder unsichtbar ist.
    2: Kann sein das du die maximale objecte erreicht hast`?

    1: Also die Tore tauchen gar nicht auf, also sie sind unsichtbar, aber man kann dadurch gehen, also sind sich auch nicht unsichtbar da.
    2: Weiß ich nicht, hab leider vergessen wie man die maximale Objecte erhöhen kann.

    Liebe Community,
    Ich habe heue eine Armybase gemappt und auch im Script alle Codes eingebaut. Ich habe nur das Problem, dass ich seitdem meine anderen Objekte, Tore usw. nicht mehr sehe, sie sind einfach weg!


    Ich weiß leider nicht warum :(, vielleicht wisst ihrs ja.


    Die eingefügten Codes:


    bei OnGameModeInit



    CreateObject(10763, 256.29, 2035.29, 49.14, 0.00, 0.00, 225.03);
    CreateObject(982, 264.39, 2005.20, 17.25, 0.00, 0.00, 0.00);
    CreateObject(984, 289.77, 1914.61, 17.20, 0.00, 0.00, 55.27);
    CreateObject(984, 264.37, 1938.63, 17.20, 0.00, 0.00, 0.00);
    CreateObject(984, 269.63, 1928.57, 17.20, 0.00, 0.00, 55.27);
    CreateObject(984, 280.16, 1921.27, 17.20, 0.00, 0.00, 55.27);
    CreateObject(983, 291.84, 1911.01, 17.25, 0.00, 0.00, 269.25);
    CreateObject(983, 282.27, 1826.97, 17.25, 0.00, 0.00, 269.25);
    CreateObject(982, 264.38, 1953.98, 17.25, 0.00, 0.00, 0.00);
    CreateObject(982, 285.48, 1898.31, 17.23, 0.00, 0.00, 0.00);
    CreateObject(982, 285.47, 1872.73, 17.23, 0.00, 0.00, 0.00);
    CreateObject(982, 285.46, 1847.13, 17.23, 0.00, 0.00, 0.00);
    CreateObject(983, 288.68, 1911.05, 17.25, 0.00, 0.00, 269.25);
    CreateObject(4718, 190.53, 1768.48, 36.03, 0.00, 0.00, 0.00);
    CreateObject(982, 174.41, 1846.76, 17.13, 0.00, 0.00, 90.14);
    CreateObject(982, 232.37, 1799.96, 17.13, 0.00, 0.00, 88.70);
    CreateObject(982, 146.48, 1800.92, 17.13, 0.00, 0.00, 89.82);
    CreateObject(8209, 183.82, 1754.16, 18.02, 0.00, 0.00, 0.00);
    CreateObject(8209, 186.83, 1754.14, 18.00, 0.00, 0.00, 0.00);
    CreateObject(982, 285.47, 1839.72, 17.23, 0.00, 0.00, 0.00);
    CreateObject(982, 237.94, 1766.89, 17.23, 0.00, 0.00, 0.00);
    CreateObject(982, 133.48, 1767.43, 17.23, 0.00, 0.00, 0.00);
    CreateObject(982, 237.16, 1799.86, 17.13, 0.00, 0.00, 88.70);
    CreateObject(982, 189.72, 1800.73, 17.13, 0.00, 0.00, 89.52);
    CreateObject(982, 164.10, 1800.87, 17.13, 0.00, 0.00, 89.82);
    CreateObject(673, 203.82, 1815.43, 16.12, 0.00, 0.00, 0.00);
    CreateObject(708, 98.23, 1927.44, 16.16, 0.00, 0.00, 0.00);
    CreateObject(708, 250.16, 1831.63, 15.91, 0.00, 0.00, 33.61);
    CreateObject(691, 280.71, 1906.15, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 235.63, 1860.90, 18.34, 0.00, 0.00, 0.00);
    CreateObject(18769, 264.40, 1881.38, 15.78, 0.00, 0.00, 0.00);
    CreateObject(691, 280.20, 1877.83, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 280.40, 1886.74, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 246.93, 2024.16, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 251.43, 1794.19, 15.98, 0.00, 0.00, 0.00);
    CreateObject(691, 278.97, 1846.20, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 278.97, 1846.20, 16.00, 0.00, 0.00, 0.00);
    CreateObject(708, 231.16, 2066.70, 15.50, 0.00, 0.00, 0.00);
    CreateObject(708, 279.58, 1868.33, 16.12, 0.00, 0.00, 0.00);
    CreateObject(19121, 285.71, 1798.76, 16.97, 0.00, 0.00, 0.00);
    CreateObject(982, 272.94, 1799.05, 17.13, 0.00, 0.00, 88.70);
    CreateObject(982, 264.51, 1827.06, 17.13, 0.00, 0.00, 89.73);
    CreateObject(708, 241.26, 1861.79, 19.10, 0.00, 0.00, 33.61);
    CreateObject(691, 279.82, 1853.42, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 271.25, 1835.55, 16.00, 0.00, 0.00, 0.00);
    CreateObject(982, 123.85, 1815.80, 17.13, 0.00, 0.00, 90.03);
    CreateObject(982, 225.61, 1846.88, 17.13, 0.00, 0.00, 90.14);
    CreateObject(982, 251.51, 1938.22, 17.13, 0.00, 0.00, 90.14);
    CreateObject(982, 167.95, 1846.76, 17.13, 0.00, 0.00, 90.14);
    CreateObject(3279, 358.52, 1758.52, 16.51, 0.00, 0.00, 87.22);
    CreateObject(983, 240.31, 1844.33, 17.13, 0.00, 0.00, 35.93);
    CreateObject(708, 278.31, 1838.27, 15.91, 0.00, 0.00, 33.61);
    CreateObject(691, 278.78, 1861.50, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 198.45, 1859.11, 18.34, 0.00, 0.00, 0.00);
    CreateObject(691, 176.53, 1882.03, 18.34, 0.00, 0.00, 0.00);
    CreateObject(691, 208.64, 1859.66, 18.34, 0.00, 0.00, 0.00);
    CreateObject(691, 217.39, 1859.40, 18.34, 0.00, 0.00, 0.00);
    CreateObject(691, 251.62, 1906.25, 18.34, 0.00, 0.00, 0.00);
    CreateObject(708, 131.80, 2072.05, 15.73, 0.00, 0.00, 33.61);
    CreateObject(691, 225.28, 1860.10, 18.34, 0.00, 0.00, 0.00);
    CreateObject(691, 250.77, 1869.35, 18.34, 0.00, 0.00, 0.00);
    CreateObject(691, 251.54, 1878.17, 18.34, 0.00, 0.00, 0.00);
    CreateObject(691, 251.79, 1887.48, 18.34, 0.00, 0.00, 0.00);
    CreateObject(691, 252.35, 1897.23, 18.34, 0.00, 0.00, 0.00);
    CreateObject(691, 190.72, 1859.43, 18.34, 0.00, 0.00, 0.00);
    CreateObject(708, 183.97, 1859.03, 19.10, 0.00, 0.00, 33.61);
    CreateObject(691, 179.11, 1865.20, 18.34, 0.00, 0.00, 0.00);
    CreateObject(691, 176.91, 1873.02, 18.34, 0.00, 0.00, 0.00);
    CreateObject(8152, 55.70, 1785.21, 19.10, 0.00, 0.00, 179.30);
    CreateObject(8148, -20.86, 1978.17, 18.88, 0.00, 0.00, 179.09);
    CreateObject(8148, -22.10, 1897.04, 18.88, 0.00, 0.00, 179.09);
    CreateObject(3749, -19.80, 2066.59, 21.81, 0.00, 0.00, 91.97);
    CreateObject(8342, -3.24, 2136.11, 19.44, 0.00, 0.00, 0.00);
    CreateObject(8148, 281.67, 2138.50, 19.45, 0.00, 0.00, 90.66);
    CreateObject(8148, 119.61, 2136.63, 19.45, 0.00, 0.00, 90.66);
    CreateObject(8342, 416.96, 2122.66, 19.42, 0.00, 0.00, 271.06);
    CreateObject(8342, 403.57, 1857.24, 19.45, 0.00, 0.00, 183.90);
    CreateObject(8148, 417.33, 1999.80, 19.40, 0.00, 0.00, 0.00);
    CreateObject(8209, 286.55, 1754.59, 19.43, 0.00, 0.00, 180.01);
    CreateObject(8209, 362.79, 1804.77, 19.45, 0.00, 0.00, 271.10);
    CreateObject(8209, 313.69, 1754.68, 19.43, 0.00, 0.00, 180.01);
    CreateObject(3279, 160.44, 1849.11, 16.67, 0.00, 0.00, 1.45);
    CreateObject(16098, 332.28, 1934.78, 21.25, 0.00, 0.00, 0.00);
    CreateObject(16098, 331.90, 1860.36, 21.25, 0.00, 0.00, 0.00);
    CreateObject(982, 259.69, 1827.08, 17.13, 0.00, 0.00, 89.73);
    CreateObject(982, 272.82, 1815.81, 17.13, 0.00, 0.00, 90.03);
    CreateObject(19121, 218.62, 1800.14, 16.97, 0.00, 0.00, 0.00);
    CreateObject(982, 247.17, 1815.80, 17.13, 0.00, 0.00, 90.03);
    CreateObject(982, 237.93, 1786.87, 17.23, 0.00, 0.00, 0.00);
    CreateObject(984, 204.31, 1806.25, 17.10, 0.00, 0.00, 0.00);
    CreateObject(984, 218.72, 1809.43, 17.10, 0.00, 0.00, 0.00);
    CreateObject(982, 262.76, 1799.28, 17.13, 0.00, 0.00, 88.70);
    CreateObject(19121, 285.67, 1815.79, 16.97, 0.00, 0.00, 0.00);
    CreateObject(3279, 282.66, 1796.08, 16.40, 0.00, 0.00, 359.90);
    CreateObject(708, 271.35, 1796.22, 16.26, 0.00, 0.00, 0.00);
    CreateObject(691, 261.78, 1835.29, 15.98, 0.00, 0.00, 0.00);
    CreateObject(691, 264.40, 1793.98, 15.98, 0.00, 0.00, 0.00);
    CreateObject(691, 146.15, 1810.11, 15.98, 0.00, 0.00, 0.00);
    CreateObject(708, 282.33, 1914.03, 16.12, 0.00, 0.00, 0.00);
    CreateObject(708, 257.86, 1942.81, 15.50, 0.00, 0.00, 0.00);
    CreateObject(691, 280.19, 1896.80, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 275.66, 1918.88, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 265.50, 1925.85, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 258.75, 1935.75, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 258.10, 1951.32, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 258.17, 1961.50, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 257.86, 1971.50, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 330.17, 2057.82, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 258.05, 1995.11, 16.00, 0.00, 0.00, 0.00);
    CreateObject(673, 266.26, 2018.22, 16.12, 0.00, 0.00, 0.00);
    CreateObject(982, 268.82, 2055.32, 17.23, 0.00, 0.00, 99.70);
    CreateObject(982, 165.89, 1815.79, 17.13, 0.00, 0.00, 90.03);
    CreateObject(982, 140.30, 1815.79, 17.13, 0.00, 0.00, 90.03);
    CreateObject(984, 218.70, 1806.67, 17.10, 0.00, 0.00, 0.00);
    CreateObject(984, 204.31, 1809.44, 17.10, 0.00, 0.00, 0.00);
    CreateObject(19121, 294.91, 1827.77, 16.97, 0.00, 0.00, 0.00);
    CreateObject(19121, 218.71, 1815.76, 16.97, 0.00, 0.00, 0.00);
    CreateObject(19121, 232.25, 1919.76, 16.97, 0.00, 0.00, 3.34);
    CreateObject(19121, 204.13, 1799.59, 16.97, 0.00, 0.00, 0.00);
    CreateObject(708, 242.99, 1795.84, 16.26, 0.00, 0.00, 0.00);
    CreateObject(708, 200.55, 1808.92, 16.16, 0.00, 0.00, 0.00);
    CreateObject(691, 257.41, 1794.45, 15.98, 0.00, 0.00, 0.00);
    CreateObject(691, 192.29, 1809.46, 15.98, 0.00, 0.00, 0.00);
    CreateObject(691, 183.51, 1808.81, 15.98, 0.00, 0.00, 0.00);
    CreateObject(691, 174.43, 1809.04, 15.98, 0.00, 0.00, 0.00);
    CreateObject(691, 164.52, 1809.41, 15.98, 0.00, 0.00, 0.00);
    CreateObject(691, 1.32, 2081.87, 15.47, 0.00, 0.00, 0.00);
    CreateObject(673, 285.11, 1815.71, 16.12, 0.00, 0.00, 0.00);
    CreateObject(673, 218.89, 1815.52, 16.12, 0.00, 0.00, 0.00);
    CreateObject(982, 133.45, 1786.48, 17.23, 0.00, 0.00, 0.00);
    CreateObject(982, 110.93, 1828.64, 17.15, 0.00, 0.00, 0.42);
    CreateObject(982, 110.76, 1848.17, 17.15, 0.00, 0.00, 0.42);
    CreateObject(708, 138.07, 1808.70, 16.16, 0.00, 0.00, 0.00);
    CreateObject(708, 101.63, 1808.10, 16.16, 0.00, 0.00, 0.00);
    CreateObject(691, 153.66, 1809.17, 15.98, 0.00, 0.00, 0.00);
    CreateObject(691, 132.43, 1809.09, 15.98, 0.00, 0.00, 0.00);
    CreateObject(691, 121.38, 1808.23, 15.98, 0.00, 0.00, 0.00);
    CreateObject(691, 112.44, 1809.51, 15.98, 0.00, 0.00, 0.00);
    CreateObject(691, 105.47, 1818.22, 15.98, 0.00, 0.00, 0.00);
    CreateObject(691, 104.07, 1827.74, 15.98, 0.00, 0.00, 0.00);
    CreateObject(691, 103.80, 1837.97, 15.98, 0.00, 0.00, 0.00);
    CreateObject(691, 103.81, 1847.74, 15.98, 0.00, 0.00, 0.00);
    CreateObject(691, 104.54, 1858.60, 15.98, 0.00, 0.00, 0.00);
    CreateObject(708, 326.92, 1860.93, 16.53, 0.00, 0.00, 0.00);
    CreateObject(691, 257.43, 2006.34, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 204.45, 2029.40, 16.00, 0.00, 0.00, 0.00);
    CreateObject(4602, 221.45, 1961.29, 84.40, 0.00, 0.00, 0.00);
    CreateObject(982, 200.01, 1846.83, 17.13, 0.00, 0.00, 90.14);
    CreateObject(982, 237.41, 1938.18, 17.13, 0.00, 0.00, 90.14);
    CreateObject(1597, 290.66, 1891.67, 19.23, 0.00, 0.00, 270.27);
    CreateObject(1597, 275.71, 1981.43, 19.23, 0.00, 0.00, 270.27);
    CreateObject(3660, 312.19, 2017.18, 18.74, 0.00, 0.00, 0.00);
    CreateObject(1597, 275.46, 1994.68, 19.23, 0.00, 0.00, 270.27);
    CreateObject(1597, 290.46, 1901.17, 19.23, 0.00, 0.00, 270.27);
    CreateObject(1597, 290.62, 1827.97, 19.23, 0.00, 0.00, 270.27);
    CreateObject(1597, 290.33, 1880.75, 19.23, 0.00, 0.00, 270.27);
    CreateObject(1597, 290.47, 1868.42, 19.23, 0.00, 0.00, 270.27);
    CreateObject(1597, 290.43, 1856.00, 19.23, 0.00, 0.00, 270.27);
    CreateObject(1597, 290.44, 1844.45, 19.23, 0.00, 0.00, 270.27);
    CreateObject(19121, 285.47, 1826.88, 16.97, 0.00, 0.00, 0.00);
    CreateObject(19121, 271.16, 1981.20, 16.97, 0.00, 0.00, 0.00);
    CreateObject(19121, 294.79, 1844.26, 16.97, 0.00, 0.00, 0.00);
    CreateObject(19121, 294.80, 1855.76, 16.97, 0.00, 0.00, 0.00);
    CreateObject(19121, 294.91, 1868.24, 16.97, 0.00, 0.00, 0.00);
    CreateObject(19121, 294.95, 1880.59, 16.97, 0.00, 0.00, 0.00);
    CreateObject(19121, 295.15, 1891.46, 16.97, 0.00, 0.00, 0.00);
    CreateObject(3660, 274.15, 2018.26, 18.73, 0.00, 0.00, 0.00);
    CreateObject(673, 285.11, 1827.28, 16.12, 0.00, 0.00, 0.00);
    CreateObject(673, 319.77, 2016.83, 16.12, 0.00, 0.00, 0.00);
    CreateObject(673, 319.77, 2016.83, 16.12, 0.00, 0.00, 0.00);
    CreateObject(673, 302.97, 2016.82, 16.12, 0.00, 0.00, 0.00);
    CreateObject(673, 282.88, 2018.16, 16.12, 0.00, 0.00, 0.00);
    CreateObject(19121, 294.98, 1901.03, 16.97, 0.00, 0.00, 0.00);
    CreateObject(19121, 279.93, 1981.21, 16.97, 0.00, 0.00, 0.00);
    CreateObject(19121, 279.87, 1994.47, 16.97, 0.00, 0.00, 0.00);
    CreateObject(19121, 270.87, 1994.42, 16.97, 0.00, 0.00, 0.00);
    CreateObject(982, 264.38, 1979.59, 17.25, 0.00, 0.00, 0.00);
    CreateObject(982, 322.19, 2001.94, 17.25, 0.00, 0.00, 0.00);
    CreateObject(982, 322.08, 1807.05, 17.25, 0.00, 0.00, 0.00);
    CreateObject(982, 322.18, 2027.54, 17.25, 0.00, 0.00, 0.00);
    CreateObject(982, 231.51, 1815.78, 17.13, 0.00, 0.00, 90.03);
    CreateObject(982, 322.19, 2047.21, 17.25, 0.00, 0.00, 0.00);
    CreateObject(982, 309.37, 2060.07, 17.23, 0.00, 0.00, 90.03);
    CreateObject(982, 283.91, 2057.89, 17.23, 0.00, 0.00, 99.70);
    CreateObject(691, 257.98, 1982.72, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 277.85, 2065.34, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 286.86, 2067.05, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 294.94, 2068.29, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 303.59, 2068.61, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 320.46, 2067.78, 16.00, 0.00, 0.00, 0.00);
    CreateObject(708, 196.92, 1986.63, 15.50, 0.00, 0.00, 0.00);
    CreateObject(691, 311.60, 2067.96, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 329.59, 2038.82, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 329.94, 1797.65, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 329.98, 2023.60, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 330.61, 2014.18, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 330.35, 2003.98, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 330.14, 1895.41, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 330.35, 1983.29, 16.00, 0.00, 0.00, 0.00);
    CreateObject(708, 326.45, 2047.13, 15.91, 0.00, 0.00, 0.00);
    CreateObject(983, 322.22, 1891.81, 17.23, 0.00, 0.00, 0.00);
    CreateObject(983, 322.17, 1937.34, 17.23, 0.00, 0.00, 0.00);
    CreateObject(708, 326.64, 1972.15, 16.53, 0.00, 0.00, 0.00);
    CreateObject(983, 322.18, 1932.19, 17.23, 0.00, 0.00, 0.00);
    CreateObject(983, 322.22, 1903.11, 17.23, 0.00, 0.00, 0.00);
    CreateObject(983, 321.83, 1858.04, 17.23, 0.00, 0.00, 0.00);
    CreateObject(691, 330.95, 1993.22, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 330.37, 1901.11, 16.00, 0.00, 0.00, 0.00);
    CreateObject(983, 322.22, 1896.66, 17.23, 0.00, 0.00, 0.00);
    CreateObject(983, 321.88, 1862.85, 17.23, 0.00, 0.00, 0.00);
    CreateObject(708, 326.69, 1826.38, 16.53, 0.00, 0.00, 0.00);
    CreateObject(982, 322.19, 1976.34, 17.25, 0.00, 0.00, 0.00);
    CreateObject(982, 322.07, 1819.17, 17.25, 0.00, 0.00, 0.00);
    CreateObject(708, 327.07, 1935.51, 16.53, 0.00, 0.00, 0.00);
    CreateObject(691, 330.28, 2031.78, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 329.79, 1816.90, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 330.52, 1806.14, 16.00, 0.00, 0.00, 0.00);
    CreateObject(982, 195.53, 1886.40, 17.23, 0.00, 0.00, 0.00);
    CreateObject(982, 232.21, 1906.88, 17.23, 0.00, 0.00, 0.00);
    CreateObject(982, 232.25, 1886.55, 17.23, 0.00, 0.00, 0.00);
    CreateObject(982, 195.49, 1888.05, 17.23, 0.00, 0.00, 0.00);
    CreateObject(982, 191.51, 1815.80, 17.13, 0.00, 0.00, 90.03);
    CreateObject(982, 208.31, 1873.60, 17.13, 0.00, 0.00, 90.03);
    CreateObject(969, 209.51, 1875.34, 11.92, 0.00, 0.00, 0.00);
    CreateObject(708, 245.02, 2027.17, 15.50, 0.00, 0.00, 0.00);
    CreateObject(691, 248.47, 2015.11, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 204.09, 2039.90, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 268.65, 2063.73, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 196.33, 1952.80, 16.00, 0.00, 0.00, 0.00);
    CreateObject(708, 214.08, 2044.44, 15.50, 0.00, 0.00, 0.00);
    CreateObject(708, 214.23, 2059.27, 15.50, 0.00, 0.00, 0.00);
    CreateObject(691, 209.66, 2003.81, 16.00, 0.00, 0.00, 0.00);
    CreateObject(16271, 178.68, 1970.84, 30.18, 0.00, 0.00, 179.98);
    CreateObject(691, 203.91, 2013.95, 16.00, 0.00, 0.00, 0.00);
    CreateObject(708, 258.31, 2010.99, 15.50, 0.00, 0.00, 0.00);
    CreateObject(708, 233.36, 2009.24, 15.50, 0.00, 0.00, 0.00);
    CreateObject(708, 199.35, 2001.77, 15.50, 0.00, 0.00, 0.00);
    CreateObject(691, 204.00, 2021.41, 16.00, 0.00, 0.00, 0.00);
    CreateObject(691, 200.10, 1993.37, 16.00, 0.00, 0.00, 0.00);
    CreateObject(982, 219.42, 1873.73, 17.13, 0.00, 0.00, 90.03);
    CreateObject(691, 119.28, 1927.59, 15.98, 0.00, 0.00, 0.00);
    CreateObject(691, 105.39, 2086.02, 15.27, 0.00, 0.00, 0.00);
    CreateObject(10966, 64.30, 1985.90, 30.01, 0.00, 0.00, 0.00);
    CreateObject(982, 110.70, 1860.68, 17.15, 0.00, 0.00, 0.42);
    CreateObject(708, 107.31, 1871.85, 16.16, 0.00, 0.00, 0.00);
    CreateObject(691, 104.59, 1867.84, 15.98, 0.00, 0.00, 0.00);
    CreateObject(691, 103.31, 1913.38, 15.98, 0.00, 0.00, 0.00);
    CreateObject(691, 1.56, 2056.03, 15.47, 0.00, 0.00, 0.00);
    CreateObject(691, 147.80, 2057.90, 14.55, 0.00, 0.00, 0.00);
    CreateObject(691, 30.31, 2057.40, 15.47, 0.00, 0.00, 0.00);
    CreateObject(691, 57.99, 2058.59, 15.47, 0.00, 0.00, 0.00);
    CreateObject(691, 92.87, 2059.95, 15.47, 0.00, 0.00, 0.00);
    CreateObject(691, 119.75, 2053.33, 15.47, 0.00, 0.00, 0.00);
    CreateObject(691, 124.60, 2021.53, 16.67, 0.00, 0.00, 0.00);
    CreateObject(691, 124.02, 1995.44, 16.79, 0.00, 0.00, 0.00);
    CreateObject(691, 123.97, 1972.39, 16.91, 0.00, 0.00, 0.30);
    CreateObject(708, 174.03, 1888.83, 19.10, 0.00, 0.00, 33.61);
    CreateObject(691, 122.78, 1946.39, 15.47, 0.00, 0.00, 0.00);
    CreateObject(691, 167.10, 1931.69, 15.76, 0.00, 0.00, 0.00);
    CreateObject(691, 148.19, 1977.77, 16.39, 0.00, 0.00, 0.00);
    CreateObject(691, 147.89, 1997.26, 16.39, 0.00, 0.00, 0.00);
    CreateObject(691, 148.53, 2023.74, 16.39, 0.00, 0.00, 0.00);
    CreateObject(708, 182.00, 1929.60, 17.11, 0.00, 0.00, 33.61);
    CreateObject(691, 30.28, 2083.08, 15.27, 0.00, 0.00, 0.00);
    CreateObject(691, 57.63, 2084.69, 15.27, 0.00, 0.00, 0.00);
    CreateObject(691, 80.63, 2084.01, 15.27, 0.00, 0.00, 0.00);
    CreateObject(715, -17.20, 2133.74, 25.79, 0.00, 0.00, 14.59);
    CreateObject(19121, 204.30, 1815.82, 16.97, 0.00, 0.00, 0.00);
    CreateObject(19121, 195.47, 1900.88, 16.97, 0.00, 0.00, 3.34);
    CreateObject(708, 150.66, 1928.93, 17.11, 0.00, 0.00, 33.61);
    CreateObject(691, 148.30, 1954.99, 16.39, 0.00, 0.00, 0.00);
    CreateObject(3934, 275.67, 2001.65, 16.73, 0.00, 0.00, 0.61);
    CreateObject(3934, 275.82, 1987.99, 16.73, 0.00, 0.00, 0.61);
    //CreateObject(980, -19.90, 2066.58, 18.76, 0.00, 0.00, 91.93);


    und bei OnPlayerConnect die RemoveBuildingForPlayer Codes.

    RemoveBuildingForPlayer(playerid, 3366, 276.6563, 2023.7578, 16.6328, 0.25);
    RemoveBuildingForPlayer(playerid, 3366, 276.6563, 1989.5469, 16.6328, 0.25);
    RemoveBuildingForPlayer(playerid, 16093, 211.6484, 1810.1563, 20.7344, 0.25);
    RemoveBuildingForPlayer(playerid, 16638, 211.7266, 1809.1875, 18.9844, 0.25);
    RemoveBuildingForPlayer(playerid, 3279, 262.0938, 1807.6719, 16.8203, 0.25);
    RemoveBuildingForPlayer(playerid, 3279, 113.3828, 1814.4531, 16.8203, 0.25);
    RemoveBuildingForPlayer(playerid, 3279, 165.9531, 1849.9922, 16.8203, 0.25);
    RemoveBuildingForPlayer(playerid, 16094, 191.1406, 1870.0391, 21.4766, 0.25);
    RemoveBuildingForPlayer(playerid, 3279, 103.8906, 1901.1016, 16.8203, 0.25);
    RemoveBuildingForPlayer(playerid, 3279, 161.9063, 1933.0938, 16.8203, 0.25);
    RemoveBuildingForPlayer(playerid, 3279, 233.4297, 1934.8438, 16.8203, 0.25);
    RemoveBuildingForPlayer(playerid, 3279, 267.0625, 1895.2969, 16.8203, 0.25);
    RemoveBuildingForPlayer(playerid, 3268, 276.6563, 2023.7578, 16.6328, 0.25);
    RemoveBuildingForPlayer(playerid, 3268, 276.6563, 1989.5469, 16.6328, 0.25);



    Ich weiß aber nicht warum die anderen Objekte nicht mehr da sind, obwohl sie im Script vorhanden sind.




    Ich hoffe ihr wisst warum.
    > Bitte um Hilfe.




    MfG
    James.Spader.

    Liebe Community,
    Ich habe mir das JunkBuster-System herruntergeladen und es funktioniert auch perfekt, aber ich z.b. BanIP nur für Admins als ab Adminlevel 3.
    Ich habe dafür einen IsPlayerSuppMod befehl erstellt und ich weiß nicht wie ich das definen soll.



    PRIVATE: JB::IsPlayerAdmin (playerid)
    return (IsPlayerAdmin (playerid) || CallRemoteFunction ("IsPlayerAdminCall", "i", playerid));


    PRIVATE: JB::IsPlayerSuppMod (playerid)
    return (IsPlayerSuppMod (playerid) || CallRemoteFunction ("IsPlayerSuppModCall", "i", playerid));



    Ich will ein paar befehle für den AdmRang 1 und 2 sperren.




    Ich hoffe ihr habt eine Lösung :)



    MfG
    James.

    errors:


    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(47660) : error 029: invalid expression, assumed zero
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(47660) : warning 215: expression has no effect
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(47660) : warning 215: expression has no effect
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(47660) : warning 215: expression has no effect
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(47660) : warning 215: expression has no effect
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(47660) : warning 215: expression has no effect
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(47660) : error 001: expected token: ";", but found ")"
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(47660) : error 029: invalid expression, assumed zero
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(47660) : fatal error 107: too many error messages on one line

    dann poste mal bitte die problemzeilen + den jeweiligen error


    Errors:


    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(47660) : error 029: invalid expression, assumed zero
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(47660) : warning 215: expression has no effect
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(47660) : warning 215: expression has no effect
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(47660) : warning 215: expression has no effect
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(47660) : warning 215: expression has no effect
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(47660) : warning 215: expression has no effect
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(47660) : error 001: expected token: ";", but found ")"
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(47660) : error 029: invalid expression, assumed zero
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(47660) : fatal error 107: too many error messages on one line



    Die Zeilen:



    ocmd:admins(playerid)
    {
    new string[1024];
    format(string,sizeof(string),"Folgende Admins sind Online:\n");
    for(new i=0;i<MAX_PLAYERS;i++)
    {
    if(!IsPlayerConnected(i))continue;
    if(PlayerInfo[i][pAdmin]<=0)continue;
    if(PlayerInfo[i][pAdmin]==1338){format(string,sizeof(string),"%s\nProjektleiter: %s",string,SpielerName(i));}
    if(PlayerInfo[i][pAdmin]==1337){format(string,sizeof(string),"%s\nStellv. Projektleiter: %s",string,SpielerName(i));}
    if(PlayerInfo[i][pAdmin]==1336){format(string,sizeof(string),"%s\nManager: %s",string,SpielerName(i));}
    if(PlayerInfo[i][pAdmin]==4){format(string,sizeof(string),"%s\nHead Administrator: %s",string,SpielerName(i));}
    if(PlayerInfo[i][pAdmin]==3){format(string,sizeof(string),"%s\nAdministrator: %s",string,SpielerName(i));}
    if(PlayerInfo[i][pAdmin]==2){format(string,sizeof(string),"%s\nModerator: %s",string,SpielerName(i));}
    if(PlayerInfo[i][pAdmin]==1){format(string,sizeof(string),"%s\nSupporter: %s",string,SpielerName(i));}
    }
    ShowPlayerDialog(playerid,DIALOG_INFO,DIALOG_STYLE_MSGBOX,"{37CD00}4RL-Reallife: {FFFFFF}Teammitglieder",string,"OK",""); // Erros
    return 1;
    }

    Hast du es nicht richtig eingefügt? Ich kann es so ohne Probleme kompilieren.
    Das von Direct_Player: müsste ebenso funktionieren, ist ja das gleiche, nur eben mit if-Verknüpfungen.



    if(strcmp(cmd, "/admins", true) == 0)
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(GetPlayerName(i, sendername, sizeof(sendername))) //Gibt false/0 zurück, wenn der Spieler nicht online ist
    {
    switch(PlayerInfo[i][pAdmin])
    {
    case 1: format(string, sizeof(string), "%s{FFFF00}Supporter{FFFFFF}: %s [%d]\n", string, sendername,i);
    case 2: format(string, sizeof(string), "%s{33CC44}Moderator{FFFFFF}: %s [%d]\n", string, sendername,i);
    case 3: format(string, sizeof(string), "%s{0000FF}Administrator{FFFFFF}: %s [%d]\n", string, sendername,i);
    case 4: format(string, sizeof(string), "%s{B40431}Head Administrator{FFFFFF}: %s [%d]\n", string, sendername,i);
    case 1336: format(string, sizeof(string), "%s{01DFD7}Manager{FFFFFF}: %s [%d]\n", string, sendername,i);
    case 1337: format(string, sizeof(string), "%s{DF0101}Stellv. Projektleiter{FFFFFF}: %s [%d]\n", string, sendername,i);
    case 1338: format(string, sizeof(string), "%s{FF0000}Projektleiter{FFFFFF}: %s [%d]\n", string, sendername,i);
    }
    }
    }
    ShowPlayerDialog(playerid, DIALOG_ADMINS, DIALOG_STYLE_MSGBOX, "Online Admins", string, "Ok", ""); // ERROR
    return 1;
    }
    /*if (strcmp(cmd, "/admins", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    SendClientMessage(playerid, COLOR_WHITE, "______________ Admins Online ______________");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pAdmin] == 1)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 256, "* {FFFF00}Supporter{FFFFFF}: %s [%d]", sendername,i);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    if(PlayerInfo[i][pAdmin] == 2)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 256, "* {33CC44}Moderator{FFFFFF}: %s [%d]", sendername,i);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    if(PlayerInfo[i][pAdmin] == 3)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 256, "* {0000FF}Administrator{FFFFFF}: %s [%d]", sendername,i);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    if(PlayerInfo[i][pAdmin] == 4)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 256, "* {B40431}Head Administrator{FFFFFF}: %s [%d]", sendername,i);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    if(PlayerInfo[i][pAdmin] == 1336)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 256, "* {01DFD7}Manager{FFFFFF}: %s [%d]", sendername,i);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    if(PlayerInfo[i][pAdmin] == 1337)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 256, "* {DF0101}Stellv. Projektleiter{FFFFFF}: %s [%d]", sendername,i);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    if(PlayerInfo[i][pAdmin] == 1338)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 256, "* {FF0000}Projektleiter{FFFFFF}: %s [%d]", sendername,i);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    }
    }
    SendClientMessage(playerid, COLOR_WHITE, "______________ Admins Online ______________");
    }
    return 1;
    }*/
    if (strcmp("/carhelp", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
    SendClientMessage(playerid, COLOR_WHITE,"*** Commands *** /park /carlock /carkey /carsell");
    return 1;
    }


    so hab ich es eingefügt.

    Ich bekomme mal wieder errors.


    Errors:



    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(31094) : error 029: invalid expression, assumed zero
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(31094) : warning 215: expression has no effect
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(31094) : warning 215: expression has no effect
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(31094) : warning 215: expression has no effect
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(31094) : warning 215: expression has no effect
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(31094) : warning 215: expression has no effect
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(31094) : error 001: expected token: ";", but found ")"
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(31094) : error 029: invalid expression, assumed zero
    C:\SA-MP Server\gamemodes\LoR-v1-6.pwn(31094) : fatal error 107: too many error messages on one line



    die Zeilen:



    if(strcmp(cmd, "/admins", true) == 0)
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(GetPlayerName(i, sendername, sizeof(sendername))) //Gibt false/0 zurück, wenn der Spieler nicht online ist
    {
    switch(PlayerInfo[i][pAdmin])
    {
    case 1: format(string, sizeof(string), "%s{FFFF00}Supporter{FFFFFF}: %s [%d]\n", string, sendername,i);
    case 2: format(string, sizeof(string), "%s{33CC44}Moderator{FFFFFF}: %s [%d]\n", string, sendername,i);
    case 3: format(string, sizeof(string), "%s{0000FF}Administrator{FFFFFF}: %s [%d]\n", string, sendername,i);
    case 4: format(string, sizeof(string), "%s{B40431}Head Administrator{FFFFFF}: %s [%d]\n", string, sendername,i);
    case 1336: format(string, sizeof(string), "%s{01DFD7}Manager{FFFFFF}: %s [%d]\n", string, sendername,i);
    case 1337: format(string, sizeof(string), "%s{DF0101}Stellv. Projektleiter{FFFFFF}: %s [%d]\n", string, sendername,i);
    case 1338: format(string, sizeof(string), "%s{FF0000}Projektleiter{FFFFFF}: %s [%d]\n", string, sendername,i);
    }
    }
    }
    ShowPlayerDialog(playerid, DIALOG_ADMINS, DIALOG_STYLE_MSGBOX, "Online Admins", string, "Ok", ""); // ERROR
    return 1;
    }

    Liebe Community,
    Ich habe vor einiger zeit einen /admins befehl erstellt. Nun will ich ein Dialog dadraus machen, aber weiß nicht wie ich das mache.


    Der vorherige Befehl:



    if (strcmp(cmd, "/admins", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    SendClientMessage(playerid, COLOR_WHITE, "______________ Admins Online ______________");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pAdmin] == 1)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 256, "* {FFFF00}Supporter{FFFFFF}: %s [%d]", sendername,i);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    if(PlayerInfo[i][pAdmin] == 2)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 256, "* {33CC44}Moderator{FFFFFF}: %s [%d]", sendername,i);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    if(PlayerInfo[i][pAdmin] == 3)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 256, "* {0000FF}Administrator{FFFFFF}: %s [%d]", sendername,i);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    if(PlayerInfo[i][pAdmin] == 4)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 256, "* {B40431}Head Administrator{FFFFFF}: %s [%d]", sendername,i);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    if(PlayerInfo[i][pAdmin] == 1336)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 256, "* {01DFD7}Manager{FFFFFF}: %s [%d]", sendername,i);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    if(PlayerInfo[i][pAdmin] == 1337)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 256, "* {DF0101}Stellv. Projektleiter{FFFFFF}: %s [%d]", sendername,i);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    if(PlayerInfo[i][pAdmin] == 1338)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 256, "* {FF0000}Projektleiter{FFFFFF}: %s [%d]", sendername,i);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    }
    }
    SendClientMessage(playerid, COLOR_WHITE, "______________ Admins Online ______________");
    }
    return 1;
    }



    wäre echt nett wenn ihr mir helfen könntet.




    MFG
    James.