/stats und alles spawnt sich 2x und motoren gehen aus und wetter ändert sich?

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Kurz beschrieben ich weis nicht was der Fehler ist... oder an was es liegen könnte.
    Unzwar wenn ich /stats eingebe dann spawnen sich ALLE fahrzeuge doppelt und alle Tore doppelt, wetter ändert sich, auto motoren gehen aus, alles mögliche ändert sich...
    An was könnte das liegen?


    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 = "Reporter"; }
    else if(PlayerInfo[targetid][pJob] == 7) { jtext = "Mechaniker"; }
    else if(PlayerInfo[targetid][pJob] == 8) { jtext = "hotdog"; }
    else if(PlayerInfo[targetid][pJob] == 9) { jtext = "Waffendealer"; }
    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 if(PlayerInfo[targetid][pJob] == 17) { jtext = "Bauer"; }
    else if(PlayerInfo[targetid][pJob] == 18) { jtext = "Angler"; }
    else if(PlayerInfo[targetid][pJob] == 19) { jtext = "Pizzalieferer"; }
    else { jtext = "-"; }
    new drank[20];
    if(PlayerInfo[targetid][pDonateRank] == 1) { drank = "Power User"; }
    else if(PlayerInfo[targetid][pDonateRank] >= 2) { drank = "Donater"; }
    else if(PlayerInfo[targetid][pDonateRank] >= 3) { drank = "üBERSKILLER"; }
    else { drank = "-"; }
    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 bmats = PlayerInfo[targetid][pBoxMats];
    new bdrugs = PlayerInfo[targetid][pBoxDrugs];
    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 bullets[12], weapons[12], weapname[12][50], Float:plHealth, Float:plArmour, plIP[20];
    GetPlayerWeaponData(targetid,1,weapons[0],bullets[0]); GetPlayerWeaponData(targetid,2,weapons[1],bullets[1]);
    GetPlayerWeaponData(targetid,3,weapons[2],bullets[2]); GetPlayerWeaponData(targetid,4,weapons[3],bullets[3]);
    GetPlayerWeaponData(targetid,5,weapons[4],bullets[4]); GetPlayerWeaponData(targetid,6,weapons[5],bullets[5]);
    GetPlayerWeaponData(targetid,7,weapons[6],bullets[6]); GetPlayerWeaponData(targetid,8,weapons[7],bullets[7]);
    GetPlayerWeaponData(targetid,9,weapons[8],bullets[8]); GetPlayerWeaponData(targetid,10,weapons[9],bullets[9]);
    GetPlayerWeaponData(targetid,11,weapons[10],bullets[10]); GetPlayerWeaponData(targetid,12,weapons[11],bullets[11]);
    GetWeaponName(weapons[0],weapname[0],50); GetWeaponName(weapons[1],weapname[1],50); GetWeaponName(weapons[2],weapname[2],50);
    GetWeaponName(weapons[3],weapname[3],50); GetWeaponName(weapons[4],weapname[4],50); GetWeaponName(weapons[5],weapname[5],50);
    GetWeaponName(weapons[6],weapname[6],50); GetWeaponName(weapons[7],weapname[7],50); GetWeaponName(weapons[8],weapname[8],50);
    GetWeaponName(weapons[9],weapname[9],50); GetWeaponName(weapons[10],weapname[10],50); GetWeaponName(weapons[11],weapname[11],50);
    GetPlayerHealth(targetid,plHealth);
    GetPlayerArmour(targetid,plArmour);
    GetPlayerIp(targetid,plIP,sizeof(plIP));
    //======================== /STATS ======================//
    new coordsstring[256];
    new string1[128],string2[128],string3[128],string4[128],string5[128],string6[128],string7[128],string8[128],string9[128],string10[128],string11[128],string12[128],string13[128],string14[128],string15[128],string16[128],string17[128],string18[128],string19[128],statsserverinfo[1028];
    // blablabla text <- liegt nicht daran!
    format(statsserverinfo, sizeof statsserverinfo, "%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s", string1,string2,string3,string4,string5,string6,string7,string8,string9,string10,string11,string12,string13,string14,string15,string16,string17,string18,string19);
    ShowPlayerDialog(playerid,19,DIALOG_STYLE_MSGBOX,name,statsserverinfo,"Schließen");
    if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pSupporter] >= 1)



    // EDIT PUSH PUSH!

    Einmal editiert, zuletzt von ciNo ()