Beiträge von Dark Leary

    Wird immernochnicht angezeigt...


    if(IsPlayerInArea(playerid, 1388.8229,-1844.0062, 1568.6563,-1731.7355)||IsPlayerInArea(playerid,1537.2194,-1718.0927,1613.8837,-1598.2101)||IsPlayerInArea(playerid,1169.8374,-921.9053,1240.7095,-877.9357)||IsPlayerInArea(playerid,1090.9242,-1388.7046,1189.1777,-1287.0449))
    {
    TextDrawShowForPlayer(playerid,NoDmZone[playerid]);
    }

    hi mache grade den Speichern stock aber da kommen folgende probleme..



    stock SB(bizzid) /* Speichert ein Bizz */
    {
    mysql_SetInt("bizzs", "Name", BizzInfo[bizzid][bname]);
    mysql_SetInt("bizzs", "Besitzer", BizzInfo[bizzid][bBesitzer]);
    mysql_SetInt("bizzs", "Besitzt", BizzInfo[bizzid][bBesitzt]);
    mysql_SetFloat("bizzs", "X", BizzInfo[bizzid][bx]);
    mysql_SetFloat("bizzs", "Y", BizzInfo[bizzid][by]);
    mysql_SetFloat("bizzs", "Z", BizzInfo[bizzid][bz]);
    mysql_SetInt("bizzs","Level",BizzInfo[bizzid][blevel]);
    mysql_SetInt("bizzs","Preis",BizzInfo[bizzid][bpreis]);
    mysql_SetInt("bizzs", "Kasse",BizzInfo[bizzid][bkasse]);
    mysql_SetFloat("bizzs","Produkte",BizzInfo[bizzid][pProds]);
    return 1;
    }


    stock mysql_SetInt(Table[], Field[], To, Where[], Where2[])
    {
    new query[128];
    mysql_real_escape_string(Table, Table);
    mysql_real_escape_string(Field, Field);
    mysql_real_escape_string(Where, Where);
    mysql_real_escape_string(Where2, Where2);
    format(query, 128, "UPDATE `%s` SET `%s` = '%d' WHERE `%s` = '%s'", Table, Field, To, Where, Where2);
    mysql_query(query);
    return true;
    }


    stock mysql_SetFloat(Table[], Field[], Float:To, Where[], Where2[])
    {
    new query[128];
    mysql_real_escape_string(Table, Table);
    mysql_real_escape_string(Field, Field);
    mysql_real_escape_string(Where, Where);
    mysql_real_escape_string(Where2, Where2);
    format(query, 128, "UPDATE `%s` SET `%s` = '%f' WHERE `%s` = '%s'", Table, Field, To, Where, Where2);
    mysql_query(query);
    return true;
    }


    ich weiss auch schon wo das problem ist aber ich weiss nicht, wie ich das nun behebe...

    Wieder eine vorstellung
    habe einen kleinen Parkour gebastelt...
    sorry das dass Video 2 mal kommt...
    kenne mich mit den neuen Editor nicht so aus...
    Enjoy!


    Externer Inhalt www.youtube.com
    Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.
    Durch die Aktivierung der externen Inhalte erklären Sie sich damit einverstanden, dass personenbezogene Daten an Drittplattformen übermittelt werden. Mehr Informationen dazu haben wir in unserer Datenschutzerklärung zur Verfügung gestellt.

    Hi ich habe ein nerviges Problem...
    wenn man sich einloggen will, kommt Stay Within the World Bounties oder so...

    und das nervt...
    ich habe ein stock erstellt wo die Spawn coardinaten
    aufgelistet sind...
    auf meinen Hamachi Server geht alles aber da nicht... bitte help

    Hey ich habe ein Problem und zwar wird der Account irgentwie nicht geladen...
    ich habe es getestet... es wird gespeichert... aber nicht geladen.. wieso??



    stock LoadPlayer(playerid)
    {
    GetPlayerName(playerid, PlayerInfo[playerid][pName], MAX_PLAYER_NAME);
    PlayerInfo[playerid][pLevel] = mysql_GetInt("accounts", "Level", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pGeld] = mysql_GetInt("accounts", "Geld", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pSkin] = mysql_GetInt("accounts", "Skin", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pMember] = mysql_GetInt("accounts", "Member", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pJob] = mysql_GetInt("accounts", "Job", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pJobTime] = mysql_GetInt("accounts", "Job Zeit", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pLeader] = mysql_GetInt("accounts", "Leader", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pFRank] = mysql_GetInt("accounts", "FrakRank", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pAdmin] = mysql_GetInt("accounts", "Adminlevel", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pSupporter] = mysql_GetInt("accounts", "Supporter", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pBan] = mysql_GetInt("accounts", "Ban", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pDriverLic] = mysql_GetInt("accounts", "Fuehrerschein", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pPerso] = mysql_GetInt("accounts", "Personalausweis", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pWanted] = mysql_GetInt("accounts", "Wantedlevel", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pVersichert] = mysql_GetInt("accounts", "Krankenversicherung", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pWarn] = mysql_GetInt("accounts", "Verwarnungen", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pGeschlecht] = mysql_GetInt("accounts", "Job", "Geschlecht", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pWaffenschein] = mysql_GetInt("accounts", "Waffenschein", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pLunch] = mysql_GetInt("accounts", "Lunch", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pAngel] = mysql_GetInt("accounts", "Angelschein", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pIPod] = mysql_GetInt("accounts", "iPod", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pFName] = mysql_GetInt("accounts", "Fraktionsname", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][Bank] = mysql_GetInt("accounts", "Bank", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pDate] = mysql_GetInt("accounts", "Geburtsjahr", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pJailtime] = mysql_GetInt("accounts", "Jailtime", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pWanted] = mysql_GetInt("accounts", "Wanteds", "Geschlecht", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pTot] = mysql_GetInt("accounts", "Gestorben", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pTx] = mysql_GetFloat("accounts", "PTX", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pTy] = mysql_GetFloat("accounts", "PTY", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][pTz] = mysql_GetFloat("accounts", "PTZ", "Name", PlayerInfo[playerid][pName]);
    Acc[playerid][NextPayday] = mysql_GetInt("accounts", "NextPayday", "Name", PlayerInfo[playerid][pName]);
    PlayerInfo[playerid][FirstLog] = mysql_GetInt("accounts", "ErsterLog", "Name", PlayerInfo[playerid][pName]);
    GivePlayerMoney(playerid,PlayerInfo[playerid][pGeld]);
    SetPlayerScore(playerid,PlayerInfo[playerid][pLevel]);
    SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
    SetPlayerWantedLevel(playerid,PlayerInfo[playerid][pWanted]);
    return 1;
    }

    nun gehts nimma weg



    Geldsack[playerid] = CreateObject(1550,745.5028,-1302.9707,-0.9173,0,0,0);
    AttachObjectToPlayer(Geldsack[playerid], playerid, 0.0, 0.0-0.3, 0.3, 0.0, 0.0, 0.0);
    SetPlayerAttachedObject(playerid,0,1550,1,0.070999,-0.285000,0.016999,3.200000,84.000015,0.699999,0.913000,0.907999,0.778000);
    DestroyObject(Geldsack[playerid]);


    RemovePlayerAttachedObject(playerid, Geldsack[playerid]);

    Achso :DD
    keins von beiden...



    stock Umschreiben(old, neu)
    {
    CarInfo[neu][pX] = CarInfo[old][pX];
    CarInfo[neu][pY] = CarInfo[old][pY];
    CarInfo[neu][pZ] = CarInfo[old][pZ];
    CarInfo[neu][pA] = CarInfo[old][pA];
    CarInfo[neu][pModel] = CarInfo[old][pModel];
    CarInfo[neu][pFarbe1] = CarInfo[old][pFarbe1];
    CarInfo[neu][pFarbe2] = CarInfo[old][pFarbe2];
    CarInfo[neu][pPreis] = CarInfo[old][pPreis];
    new string[256];
    format(string, sizeof(string),"%f, %f, %f, %f, %d, %d, 0, 0, %d, %d",CarInfo[neu][pX],CarInfo[neu][pY],CarInfo[neu][pZ],CarInfo[neu][pA],CarInfo[neu][pFarbe1],CarInfo[neu][pFarbe2],GetVehicleModel(GetPlayerVehicleID(neu)),CarInfo[neu][pPreis]);
    SaveVehicles(string, neu);


    CarInfo[old][pX] = 0;
    CarInfo[old][pY] = 0;
    CarInfo[old][pZ] = 0;
    CarInfo[old][pA] = 0;
    CarInfo[old][pModel] = 0;
    CarInfo[old][pFarbe1] = 0;
    CarInfo[old][pFarbe2] = 0;
    CarInfo[old][pPreis] = 0;
    DeleteVehicle(old);
    }
    stock LoadVehicels(playerid)
    {
    new arrCoords[30][64];
    new strFromFile2[256];
    new string[256], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string),"/Autohaus/%s.ini",name);
    if(!fexist(string)) return 1;
    new File: file = fopen(string, io_read);
    if (file)
    {
    fread(file, strFromFile2);
    split(strFromFile2, arrCoords, ',');
    CarInfo[playerid][pX] = floatstr(arrCoords[0]);
    CarInfo[playerid][pY] = floatstr(arrCoords[1]);
    CarInfo[playerid][pZ] = floatstr(arrCoords[2]);
    CarInfo[playerid][pA] = floatstr(arrCoords[3]);
    CarInfo[playerid][pFarbe1] = strval(arrCoords[4]);
    CarInfo[playerid][pFarbe2] = strval(arrCoords[5]);
    CarInfo[playerid][pModel] = strval(arrCoords[6]);
    CarInfo[playerid][pPreis] = strval(arrCoords[7]);
    strmid(CarInfo[playerid][pOwner], name, 0, strlen(name), 255);
    new str[128];
    format(str, sizeof(str),"%s",name);
    CarInfo[playerid][pKey] = CreateVehicle(CarInfo[playerid][pModel],CarInfo[playerid][pX],CarInfo[playerid][pY],CarInfo[playerid][pZ],CarInfo[playerid][pA],CarInfo[playerid][pFarbe1],CarInfo[playerid][pFarbe2],-1);
    SetVehicleNumberPlate(CarInfo[playerid][pKey],str);
    SetVehicleToRespawn(CarInfo[playerid][pKey]);
    fclose(file);
    }
    return 1;
    }
    stock SaveVehicles(string[],playerid)
    {
    new entry[256],str[256],name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(str, sizeof(str),"/Autohaus/%s.ini",name);
    format(entry, sizeof(entry), "%s\n",string);
    new File:hFile;
    hFile = fopen(str, io_write);
    fwrite(hFile, entry);
    fclose(hFile);
    }

    hi bei mir buggt der geldsack
    also wenn ich ihn anhabe dan ist die Camera so fail...


    Geldsack[playerid] = CreateObject(1550, 0.0, 0.0, -1000, 0.0, 0.0, 0.0);
    AttachObjectToPlayer(Geldsack[playerid], playerid, 0.0, 0.0-0.3, 0.3, 0.0, 0.0, 0.0);