Beiträge von Corvus

    Guten Tag,
    Folgendes Problem:
    [17:11:53] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    [17:11:53] [ERROR] CMySQLQuery::Execute[()] - (error #1060) Duplicate column name 'pMarried'
    [17:11:53] [ERROR] CMySQLQuery::Execute[()] - (error #1060) Duplicate column name 'Friedhof'
    [17:11:53] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'blacklistreason0,blacklist1,blacklistreason1,blacklist2,blacklistreason2,blackli' at line 1

    Woher kommt das?
    [21:21:23] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    [21:21:23] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'blacklistreason0,blacklist1,blacklistreason1,blacklist2,blacklistreason2,blackli' at line 1
    [21:21:23] [ERROR] CMySQLQuery::Execute[OnQueryFinish(siii)] - (error #1146) Table 'sql45.pRP_races' doesn't exist
    [21:21:23] [ERROR] CMySQLQuery::Execute[OnQueryFinish(siii)] - (error #1146) Table 'sql45.pRP_gutscheine' doesn't exist
    [21:21:23] [ERROR] CMySQLQuery::Execute[()] - (error #1054) Unknown column 'wHackPrice' in 'field list'
    [21:21:23] [ERROR] CMySQLQuery::Execute[()] - (error #1060) Duplicate column name 'Friedhof'
    [21:21:23] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    [21:21:23] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'blacklistreason0,blacklist1,blacklistreason1,blacklist2,blacklistreason2,blackli' at line 1
    [21:21:23] [ERROR] CMySQLQuery::Execute[()] - (error #1060) Duplicate column name 'pMarried'
    [21:23:09] [ERROR] CMySQLQuery::Execute[LoadAccountBlacklists(i)] - (error #1146) Table 'sql45.pRP_account_blacklist' doesn't exist
    [21:23:11] [ERROR] CMySQLQuery::Execute[()] - (error #1146) Table 'sql45.pRP_account_blacklist' doesn't exist
    [21:23:11] [ERROR] CMySQLQuery::Execute[()] - (error #1054) Unknown column 'Autologin' in 'field list'
    [21:23:11] [ERROR] CMySQLQuery::Execute[()] - (error #1054) Unknown column 'Slot10' in 'field list'
    [21:23:11] [ERROR] CMySQLQuery::Execute[()] - (error #1060) Duplicate column name 'Friedhof'
    [21:23:11] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'blacklistreason0,blacklist1,blacklistreason1,blacklist2,blacklistreason2,blackli' at line 1
    [21:23:11] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    [21:23:11] [ERROR] CMySQLQuery::Execute[()] - (error #1060) Duplicate column name 'Friedhof'
    [21:23:11] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    [21:23:11] [ERROR] CMySQLQuery::Execute[()] - (error #1060) Duplicate column name 'pMarried'
    [21:23:11] [ERROR] CMySQLQuery::Execute[()] - (error #1060) Duplicate column name 'pMarried'
    [21:23:11] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'blacklistreason0,blacklist1,blacklistreason1,blacklist2,blacklistreason2,blackli' at line 1
    [21:23:15] [ERROR] CMySQLQuery::Execute[()] - (error #1054) Unknown column 'Slot10' in 'field list'
    [21:23:15] [ERROR] CMySQLQuery::Execute[()] - (error #1054) Unknown column 'Autologin' in 'field list'
    [21:23:15] [ERROR] CMySQLQuery::Execute[()] - (error #1146) Table 'sql45.pRP_account_blacklist' doesn't exist
    [21:23:15] [ERROR] CMySQLQuery::Execute[()] - (error #1060) Duplicate column name 'Friedhof'
    [21:23:15] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    [21:23:15] [ERROR] CMySQLQuery::Execute[()] - (error #1060) Duplicate column name 'pMarried'
    [21:23:15] [ERROR] CMySQLQuery::Execute[()] - (error #1060) Duplicate column name 'Friedhof'
    [21:23:15] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'blacklistreason0,blacklist1,blacklistreason1,blacklist2,blacklistreason2,blackli' at line 1
    [21:23:15] [ERROR] CMySQLQuery::Execute[()] - (error #1060) Duplicate column name 'pMarried'
    [21:23:15] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'blacklistreason0,blacklist1,blacklistreason1,blacklist2,blacklistreason2,blackli' at line 1
    [21:23:15] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    [21:23:49] [ERROR] CMySQLQuery::Execute[()] - (error #1146) Table 'sql45.pRP_account_blacklist' doesn't exist
    [21:23:49] [ERROR] CMySQLQuery::Execute[()] - (error #1054) Unknown column 'Slot10' in 'field list'
    [21:23:49] [ERROR] CMySQLQuery::Execute[()] - (error #1054) Unknown column 'Autologin' in 'field list'
    [21:23:49] [ERROR] CMySQLQuery::Execute[()] - (error #1060) Duplicate column name 'pMarried'
    [21:23:49] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    [21:23:49] [ERROR] CMySQLQuery::Execute[()] - (error #1060) Duplicate column name 'Friedhof'
    [21:23:49] [ERROR] CMySQLQuery::Execute[()] - (error #1060) Duplicate column name 'Friedhof'
    [21:23:49] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'blacklistreason0,blacklist1,blacklistreason1,blacklist2,blacklistreason2,blackli' at line 1
    [21:23:49] [ERROR] CMySQLQuery::Execute[()] - (error #1060) Duplicate column name 'pMarried'
    [21:23:49] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    [21:23:49] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'blacklistreason0,blacklist1,blacklistreason1,blacklist2,blacklistreason2,blackli' at line 1
    [21:24:40] [ERROR] CMySQLQuery::Execute[()] - (error #1146) Table 'sql45.onlines' doesn't exist
    [21:51:43] [ERROR] CMySQLQuery::Execute[()] - (error #1054) Unknown column 'FrakMembers' in 'field list'

    Warum bekommt man öfters Crash beim Spawnen?
    switch(Spieler[playerid][pSpawn])
    {
    case 0: //Zivi
    {
    SetPlayerSkinEx(playerid,Spieler[playerid][pSkin]);
    SetPlayerColor(playerid,WEISS);
    SetPlayerPosEx(playerid,NOOBSPAWNSPAWN);
    SetPlayerFacingAngle(playerid,-90.00);
    SetPlayerInterior(playerid,NOOBSPAWNSPAWNINT);
    SetPlayerVirtualWorld(playerid,NOOBSPAWNSPAWNWELT);
    SetTimerEx("EntfernungSpawnFreeze",3000,false,"i",playerid);
    }
    case 1: //Fraktion
    {
    switch(Spieler[playerid][pFraktion])
    {
    case 1://Polizei
    {
    Freeze(playerid);
    SetPlayerPosEx(playerid,-2516.1130,-105.6042,-81.8141+1);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetTimerEx("EntfernungSpawnFreeze",3000,false,"i",playerid);
    SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
    }
    case 2: //Kripo
    {
    Freeze(playerid);
    SetPlayerPosEx(playerid,SPAWNKRIPO+1);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
    SetTimerEx("EntfernungSpawnFreeze",3000,false,"i",playerid);
    }
    case 3: //Arzt
    {
    Freeze(playerid);
    SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
    SetTimerEx("EntfernungSpawnFreeze",3000,false,"i",playerid);
    }
    case 4: //ADAC
    {
    Freeze(playerid);
    SetPlayerPosEx(playerid,2262.1316,2035.6992,10.8203);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
    SetTimerEx("EntfernungSpawnFreeze",3000,false,"i",playerid);
    }
    case 5: //News reporter
    {
    Freeze(playerid);
    SetPlayerPosEx(playerid,NEWSSPAWN);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
    SetTimerEx("EntfernungSpawnFreeze",3000,false,"i",playerid);
    }
    case 7: //grove Street
    {
    Freeze(playerid);
    SetPlayerPosEx(playerid,2496.4373,-1708.6318,1014.7422+1);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,5);
    SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
    SetTimerEx("EntfernungSpawnFreeze",3000,false,"i",playerid);
    }
    case 8: //Ballas
    {
    Freeze(playerid);
    SetPlayerPosEx(playerid,331.9128,1121.5629,1083.8903+1);
    SetPlayerInterior(playerid,5);
    SetPlayerVirtualWorld(playerid,5);
    SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
    SetTimerEx("EntfernungSpawnFreeze",3000,false,"i",playerid);
    }
    case 11: //Yakuza
    {
    Freeze(playerid);
    SetPlayerPosEx(playerid,222.3797, 1040.6150, 1158.2000+1);
    SetPlayerInterior(playerid,4);
    SetPlayerVirtualWorld(playerid,5);
    SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
    SetTimerEx("EntfernungSpawnFreeze",3000,false,"i",playerid);
    }
    case 12: //Triaden
    {
    Freeze(playerid);
    SetPlayerPosEx(playerid,961.2267,98.2043,1001.2659+1);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
    SetTimerEx("EntfernungSpawnFreeze",3000,false,"i",playerid);
    }
    case 13: //Fahrschule
    {
    Freeze(playerid);
    SetPlayerPosEx(playerid,FSSpawn+1);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
    SetTimerEx("EntfernungSpawnFreeze",3000,false,"i",playerid);
    }
    case 14: //Feuerwehr
    {
    Freeze(playerid);
    SetPlayerPosEx(playerid,SPAWNFEUERWEHR+1);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
    SetTimerEx("EntfernungSpawnFreeze",3000,false,"i",playerid);
    }
    case 15: //Terroristen
    {
    Freeze(playerid);
    SetPlayerPosEx(playerid,307.7416,307.4384,1003.3047+1);
    SetPlayerInterior(playerid,4);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
    SetTimerEx("EntfernungSpawnFreeze",3000,false,"i",playerid);
    }
    }
    }

    Oh Sry ganz vergessen:
    if(BusinessInfo[ErstellungBusiness[playerid]][BizArt] == 3)
    {
    format(query,sizeof(query),"INSERT INTO "#DATENBANK"_Business (`bID`,`bizName`,`bizPreis`,`bizLevel`,`bPosX`,`bPosY`,`bPosZ`,`bizStatus`,`bizVerkauft`,`bizArt`,`bizKasse`,");
    format(query2,sizeof(query2),"`bizBesitzer`,`bizTeilhaber`,`tanke1X`,`tanke1Y`,`tanke1Z`,`tanke2X`,`tanke2Y`,`tanke2Z`,`diesel`,`benzin`,`superplus`,`kerosin`,`zweitakt`,");
    format(query3,sizeof(query3),"`sprit`,`eingangposX`,`eingangposY`,`eingangposZ`,`interiorposX`,`interiorposY`,`interiorposZ`,`intWelt`,`intint`,`buyx`,`buyy`,`buyz`,`Erstellt`) VALUES ('%d','%s','%d','%d','%f','%f','%f','1','0','%d','0','Niemand','Niemand','%f','%f','%f','%f','%f','%f','%d','%d','%d','%d','%d','%d','%f','%f','%f','%f','%f','%f','%d','%d','%f','%f','%f','1')",ErstellungBusiness[playerid],BusinessInfo[ErstellungBusiness[playerid]][BizName],
    BusinessInfo[ErstellungBusiness[playerid]][BizPreis],BusinessInfo[ErstellungBusiness[playerid]][BizLevel],BusinessInfo[ErstellungBusiness[playerid]][BPosX],BusinessInfo[ErstellungBusiness[playerid]][BPosY],
    BusinessInfo[ErstellungBusiness[playerid]][BPosZ],BusinessInfo[ErstellungBusiness[playerid]][BizArt],BusinessInfo[ErstellungBusiness[playerid]][Zapfen1X],BusinessInfo[ErstellungBusiness[playerid]][Zapfen1Y],BusinessInfo[ErstellungBusiness[playerid]][Zapfen1Z],
    BusinessInfo[ErstellungBusiness[playerid]][Zapfen2X],BusinessInfo[ErstellungBusiness[playerid]][Zapfen2Y],BusinessInfo[ErstellungBusiness[playerid]][Zapfen2Z],BusinessInfo[ErstellungBusiness[playerid]][Diesel],BusinessInfo[ErstellungBusiness[playerid]][Benzin],
    BusinessInfo[ErstellungBusiness[playerid]][SuperPlus],BusinessInfo[ErstellungBusiness[playerid]][Kerosin],BusinessInfo[ErstellungBusiness[playerid]][zweitakt],BusinessInfo[ErstellungBusiness[playerid]][sprit],
    BusinessInfo[ErstellungBusiness[playerid]][BizeX],BusinessInfo[ErstellungBusiness[playerid]][BizeY],BusinessInfo[ErstellungBusiness[playerid]][BizeZ],
    BusinessInfo[ErstellungBusiness[playerid]][BizaX],BusinessInfo[ErstellungBusiness[playerid]][BizaY],BusinessInfo[ErstellungBusiness[playerid]][BizaZ],BusinessInfo[ErstellungBusiness[playerid]][bizwelt],BusinessInfo[ErstellungBusiness[playerid]][bizinterior],
    BusinessInfo[ErstellungBusiness[playerid]][buyX],BusinessInfo[ErstellungBusiness[playerid]][buyY],BusinessInfo[ErstellungBusiness[playerid]][buyZ]);
    format(hauptquery,sizeof(hauptquery),"%s%s%s",query,query2,query3);
    mysql_function_query(MYSQLVerbindung,hauptquery,false,"","");
    Delete3DTextLabel(Business3DText[ErstellungBusiness[playerid]]);
    DestroyPickup(BusinessInfo[ErstellungBusiness[playerid]][BizPickup]);


    BusinessInfo[ErstellungBusiness[playerid]][BizPickup] = CreatePickup(BUSINESSFREI,1,BusinessInfo[ErstellungBusiness[playerid]][BPosX],BusinessInfo[ErstellungBusiness[playerid]][BPosY],BusinessInfo[ErstellungBusiness[playerid]][BPosZ]-0.2);
    format(query,sizeof(query),""#HTML_LOGIN"Business Name: "#HTML_WHITE"%s\n"#HTML_LOGIN"Preis: "#HTML_WHITE"%i$\n"#HTML_LOGIN"Level: "#HTML_WHITE"%i\n"#HTML_WHITE"Business steht zum "#HTML_GREEN"Verkauf\n"#HTML_WHITE"/bkaufen",
    BusinessInfo[ErstellungBusiness[playerid]][BizName],BusinessInfo[ErstellungBusiness[playerid]][BizPreis],BusinessInfo[ErstellungBusiness[playerid]][BizLevel]);
    Business3DText[ErstellungBusiness[playerid]] = Create3DTextLabel(query,WEISS,BusinessInfo[ErstellungBusiness[playerid]][BPosX],BusinessInfo[ErstellungBusiness[playerid]][BPosY],BusinessInfo[ErstellungBusiness[playerid]][BPosZ]+1,15.0,0,0);


    BusinessInfo[ErstellungBusiness[playerid]][BizPickup2] = CreatePickup(1650,1,BusinessInfo[ErstellungBusiness[playerid]][Zapfen1X],BusinessInfo[ErstellungBusiness[playerid]][Zapfen1Y],BusinessInfo[ErstellungBusiness[playerid]][Zapfen1Z]);
    Business3DText[ErstellungBusiness[playerid]] = Create3DTextLabel(""#HTML_WHITE"[ = "#HTML_ORANGE"Zapfsäule "#HTML_WHITE"= ]\n/tanken",WEISS,BusinessInfo[ErstellungBusiness[playerid]][Zapfen1X],BusinessInfo[ErstellungBusiness[playerid]][Zapfen1Y],BusinessInfo[ErstellungBusiness[playerid]][Zapfen1Z],10.0,0,0);


    BusinessInfo[ErstellungBusiness[playerid]][BizPickup3] = CreatePickup(1650,1,BusinessInfo[ErstellungBusiness[playerid]][Zapfen2X],BusinessInfo[ErstellungBusiness[playerid]][Zapfen2Y],BusinessInfo[ErstellungBusiness[playerid]][Zapfen2Z]);
    Business3DText[ErstellungBusiness[playerid]] = Create3DTextLabel(""#HTML_WHITE"[ = "#HTML_ORANGE"Zapfsäule "#HTML_WHITE"= ]\n/tanken",WEISS,BusinessInfo[ErstellungBusiness[playerid]][Zapfen2X],BusinessInfo[ErstellungBusiness[playerid]][Zapfen2Y],BusinessInfo[ErstellungBusiness[playerid]][Zapfen2Z],10.0,0,0);
    UnFreeze(playerid);
    printf("Business (%s) erstellt durch %s",BusinessInfo[ErstellungBusiness[playerid]][BizName],SpielerName(playerid));
    BusinessInfo[ErstellungBusiness[playerid]][BizErstellt] = 1;
    ErstellungBusiness[playerid] = 0;
    return true;
    }

    Woran liegt der Fehler?
    [19:03:34] [DEBUG] mysql_tquery - connection: 1, query: "INSERT INTO db_Business (`bID`,`bizName`,`bizPreis`,`bizLevel`,`", callback: "(null)", format: "(null)"
    [19:03:34] [DEBUG] CMySQLQuery::Execute[] - starting query execution
    [19:03:34] [ERROR] CMySQLQuery::Execute[] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    [19:03:34] [DEBUG] CMySQLQuery::Execute[] - error will be triggered in OnQueryError
    [19:03:34] [DEBUG] Calling callback "OnQueryError"..

    Kompliter stürtz ab Befehl:
    case DIALOG_FRAKBANK_EINZAHLEN:
    {
    new cmd = strval(inputtext),string[350],query[215];
    for(new frakid=0;frakid<MAX_FRAKTIONEN;frakid++)
    {
    if(FrakInfo[frakid][fid] == Spieler[playerid][pFraktion])
    {
    if(response == 0) return ShowPlayerDialog(playerid,DIALOG_FRAKBANK,DIALOG_STYLE_LIST,"Fraktionsbank","Ausrüsten\nEinzahlen\nAuszahlen\nMaterial\nDrogen","Weiter","Abbruch");
    if(response == 1)
    {
    if((Spieler[playerid][pGeld] - cmd) < 0) return SendClientMessage(playerid,ROT,"Du hast nicht genug Geld!");
    if(!IsNumeric(inputtext))
    {
    format(string,sizeof(string),"Gebe bitte nun den Betrag ein, welchen du in die Fraktionkasse einzahlen möchtest!\nDerzeitiger Fraktionskassen Stand: %i$",FrakInfo[frakid][frakgeld]);
    ShowPlayerDialog(playerid,DIALOG_FRAKBANK_EINZAHLEN,DIALOG_STYLE_INPUT,"Fraktionsbank Einzahlung",string,"Weiter","Abbruch");
    return SendClientMessage(playerid,ROT,"Es sind nur Zahlen möglich!");
    }
    if(cmd < 1 || cmd > 10000)
    {
    format(string,sizeof(string),"Gebe bitte nun den Betrag ein, welchen du in die Fraktionkasse einzahlen möchtest!\nDerzeitiger Fraktionskassen Stand: %i$",FrakInfo[frakid][frakgeld]);
    ShowPlayerDialog(playerid,DIALOG_FRAKBANK_EINZAHLEN,DIALOG_STYLE_INPUT,"Fraktionsbank Einzahlung",string,"Weiter","Abbruch");
    return SendClientMessage(playerid,ROT,"Betrag nur zwischen 1 und 10.000$ möglich!");
    }
    FrakInfo[frakid][frakgeld] += cmd;
    ACMoney(playerid, -cmd);
    format(string,sizeof(string),""#HTML_WHITE"[ "#HTML_LOGIN"FrakBank: "#HTML_WHITE"Das Mitglied "#HTML_ORANGE"%s "#HTML_WHITE"hat so eben "#HTML_GREEN"%i$ "#HTML_WHITE"in der Fraktionkasse eingezahlt! "#HTML_WHITE"Neuer Stand: "#HTML_ORANGE"%i$ ]",SpielerName(playerid),cmd,FrakInfo[frakid][frakgeld]);
    FraktionsChat(Spieler[playerid][pFraktion],WEISS,string);

    format(query,sizeof(query),"INSERT INTO "#DATENBANK"_frakgeldlog (`fID`,`name`,`count`,`timestamp`,`op`) VALUES ('%d','%s','%d','%d','1')",frakid,SpielerName(playerid),cmd,gettime());
    mysql_function_query(MYSQLVerbindung,query,false,"","");

    ShowPlayerDialog(playerid,DIALOG_FRAKBANK,DIALOG_STYLE_LIST,"Fraktionsbank","Ausrüsten\nEinzahlen\nAuszahlen\nMaterial\nDrogen","Weiter","Abbruch");
    return true;
    }
    }
    }
    return true;
    }

    Guten Abend.
    Warum wird das Geld immer eine Fraktion weiter unten gespeichert.
    Beispiel: Zahle bei Frak 11 ein = Landet bei Fraktion 10


    Hier zahle ich ein:
    case DIALOG_FRAKBANK_EINZAHLEN:
    {
    new cmd = strval(inputtext),string[350],query[215];
    for(new frakid=0;frakid<MAX_FRAKTIONEN;frakid++)
    {
    if(FrakInfo[frakid][fid] == Spieler[playerid][pFraktion])
    {
    if(response == 0) return ShowPlayerDialog(playerid,DIALOG_FRAKBANK,DIALOG_STYLE_LIST,"Fraktionsbank","Ausrüsten\nEinzahlen\nAuszahlen\nMaterial\nDrogen","Weiter","Abbruch");
    if(response == 1)
    {
    if((Spieler[playerid][pGeld] - cmd) < 0) return SendClientMessage(playerid,ROT,"Du hast nicht genug Geld!");
    if(!IsNumeric(inputtext))
    {
    format(string,sizeof(string),"Gebe bitte nun den Betrag ein, welchen du in die Fraktionkasse einzahlen möchtest!\nDerzeitiger Fraktionskassen Stand: %i$",FrakInfo[frakid][frakgeld]);
    ShowPlayerDialog(playerid,DIALOG_FRAKBANK_EINZAHLEN,DIALOG_STYLE_INPUT,"Fraktionsbank Einzahlung",string,"Weiter","Abbruch");
    return SendClientMessage(playerid,ROT,"Es sind nur Zahlen möglich!");
    }
    if(cmd < 1 || cmd > 10000)
    {
    format(string,sizeof(string),"Gebe bitte nun den Betrag ein, welchen du in die Fraktionkasse einzahlen möchtest!\nDerzeitiger Fraktionskassen Stand: %i$",FrakInfo[frakid][frakgeld]);
    ShowPlayerDialog(playerid,DIALOG_FRAKBANK_EINZAHLEN,DIALOG_STYLE_INPUT,"Fraktionsbank Einzahlung",string,"Weiter","Abbruch");
    return SendClientMessage(playerid,ROT,"Betrag nur zwischen 1 und 10.000$ möglich!");
    }
    FrakInfo[frakid][frakgeld] += cmd;
    ACMoney(playerid, -cmd);
    format(string,sizeof(string),""#HTML_WHITE"[ "#HTML_LOGIN"FrakBank: "#HTML_WHITE"Das Mitglied "#HTML_ORANGE"%s "#HTML_WHITE"hat so eben "#HTML_GREEN"%i$ "#HTML_WHITE"in der Fraktionkasse eingezahlt! "#HTML_WHITE"Neuer Stand: "#HTML_ORANGE"%i$ ]",SpielerName(playerid),cmd,FrakInfo[frakid][frakgeld]);
    FraktionsChat(Spieler[playerid][pFraktion],WEISS,string);

    format(query,sizeof(query),"INSERT INTO "#DATENBANK"_frakgeldlog (`fID`,`name`,`count`,`timestamp`,`op`) VALUES ('%d','%s','%d','%d','1')",frakid,SpielerName(playerid),cmd,gettime());
    mysql_function_query(MYSQLVerbindung,query,false,"","");

    ShowPlayerDialog(playerid,DIALOG_FRAKBANK,DIALOG_STYLE_LIST,"Fraktionsbank","Ausrüsten\nEinzahlen\nAuszahlen\nMaterial\nDrogen","Weiter","Abbruch");
    return true;
    }
    }
    }
    return true;
    Hier wird das gespeichert:
    stock SaveFraktion()
    {
    new query[275];
    for(new frak=1;frak<MAX_FRAKTIONEN;frak++)
    {
    format(query,sizeof(query),"UPDATE "#DATENBANK"_fraktionen SET frakmaterial = '%d', frakgeld = '%d', marihuana = '%d', koks = '%d', crystle = '%d', lsd = '%d', gras = '%d' WHERE frakid = '%d'",
    FrakInfo[frak][frakmaterial],FrakInfo[frak][frakgeld],FrakInfo[frak][fMarihuana],FrakInfo[frak][fKoks],FrakInfo[frak][fCrystle],FrakInfo[frak][fLSD],FrakInfo[frak][fGras],frak);
    mysql_function_query(MYSQLVerbindung,query,false,"","");
    }
    return true;
    }

    Guten Abend,
    In diesem Thread verkauf ich drei Interiors.
    Die Interiors wurden von mir und John Trust gemappt.


    Stadthallen Interior:


    Los Santos Police Department:


    Bank Interior:




    Angebote per PN.


    Bezahlungsmöglichkeiten:

    • Paypal



    [Folgendes muss im Thema enthalten sein und darf nicht entfernt werden:]
    ______
    Unverbindlicher Hinweis: Die Sicherheit einer Transaktion kann am besten durch die Einschaltung eines Mittelsmannes gewährleistet werden. Weitere Informationen dazu gibt es hier.

    Warum wird das nicht gesetzt:
    new newtut[41];
    new newtut1[41];
    TextDrawSetString(Tut3, newtut);
    TextDrawSetString(Tut4, newtut1);
    format(newtut, sizeof(newtut), "Hier ist der Los Santos Hauptbahnhof.~n~Hole dir nun in der Stadthalle einen Job.");
    format(newtut, sizeof(newtut), "Ein Interior kannst du mit der Eingabe Tase betreten.~n~Bitte Folge dem Checkpoint zur Stadthalle.");
    CP[playerid] = 14002;

    Guten Tag,
    Wir hatten unser UCP alles auf unserem Webspace. Nun wollten wir alles auf unseren VServer laden und haben einige Probleme damit. Er kann keine Verbindung etc. herstellen.
    Danke im vorraus,

    Hab folgendes Problem das er keine Float Speichert.:
    Float:TankVolumen,
    self_mysql_get_field("AH_TankVolumen", data); Carlist[playerid][h][TankVolumen] = floatstr( data );
    Carlist[playerid][CarKey[playerid]][TankVolumen] = vehTank[GetVehicleModel(VID)-400];