Beiträge von Lιση

    Hallo liebe Community,


    mein Problem ist das die Uniformsskinauswahl nicht funktioniert, es wird alles ausgeführt was soll außer das man den Skin weiter und zurück machen kann! Hier der Code:


    Code:
    new BincoSystemFraktionsSkins[][BincoFrakt_daten] =//{Skinid,Fraktid}
    {
    {283,1},{282,1},{281,1},{280,1},{267,1},{266,1},{288,1},//SAPD (7)
    {163,2},{164,2},{165,2},{166,2},{286,2},{141,2},//FBI (6)
    {214,3},{219,3},{70,3},{274,3},{275,3},{276,3},//San Andreas Rettungsdienst (4)
    {292,4},{110,4},{108,4},{109,4},{90,4},{47,4},//los santos vagos (6)
    {105,5},{106,5},{107,5},{269,5},{270,5},{271,5},{293,5},{65,5},{195,5},// GROVE STREET (9)
    {61,6},{73,6},{150,6},{179,6},{191,6},{287,6},//ARMY (6)
    {185,7},{102,7},{103,7},{104,7},{24,7},{195,7},//BALLAS (6)
    {14,8},{57,8},{142,8},{143,8},{144,8},{165,8},{220,8},{221,8},{222,8},//TERRORS (9)
    {121,9},{122,9},{169,9},{120,9},{118,9},{228,9},{186,9},{123,9},//YAKUZA (8)
    {187,10},{188,10},{192,10},{261,10},{76,10},{60,10},{40,10},//Newsreporter (7)
    {42,11},{16,11},{71,11},{227,11},{50,11},//Ordnungsamt (5)
    {93,12},{98,12},{111,12},{113,12},{124,12},{125,12},{126,12},{127,12},{299,12},//La Cose Nostra (9)
    {173,13},{174,13},{175,13},{273,13},{30,13},{91,13},//Sureno Syndikat (6)
    {240,14},{153,14},{259,14},{217,14},{202,14},{194,14},//FAHRSCHULE (6)
    {16,15},{27,15},{50,15},{153,15},{260,15},//SA ELEKTRONIK GmBh (5)
    {17,16},{57,16},{147,16},{163,16},{164,16},{165,16},{227,16},{214,16},//Regierung (8)
    {46,17},{47,17},{48,17},{214,17},{223,17},{272,17}//West Coast Custom
    };
    if(clickedid == BINCOdraw[0])//skin nach hinten wechseln
    {
    if(sInfo[playerid][AmUmkleiden] == 1)
    {
    sInfo[playerid][skin]--;
    if(sInfo[playerid][skin] < 0) sInfo[playerid][skin] = sizeof(BincoSystemZiviSkins);
    SetPlayerSkin(playerid,BincoSystemZiviSkins[sInfo[playerid][skin]][Skinid]);
    }
    if(sInfo[playerid][AmUmkleidenF] == 1)
    {
    if(sInfo[playerid][fskin] >= 0 && isFraktion(playerid,BincoSystemFraktionsSkins[sInfo[playerid][fskin]][Fraktid]))
    {
    SetPlayerSkin(playerid,BincoSystemFraktionsSkins[sInfo[playerid][fskin]][Skinid]);
    }
    else
    {
    new skincounter = 0;
    for(new i=0;i<sizeof(BincoSystemFraktionsSkins);i++)
    {
    if(isFraktion(playerid,BincoSystemFraktionsSkins[i][Fraktid]))
    {
    skincounter = i;
    }
    }
    sInfo[playerid][fskin] = skincounter;
    SetPlayerSkin(playerid,BincoSystemFraktionsSkins[skincounter][Skinid]);
    }
    return 1;
    }
    }
    if(clickedid == BINCOdraw[1])//skin nach vorne wechseln
    {
    if(sInfo[playerid][AmUmkleiden] == 1)
    {
    sInfo[playerid][skin]++;
    if(sInfo[playerid][skin] > sizeof(BincoSystemZiviSkins)) sInfo[playerid][skin] = 0;
    SetPlayerSkin(playerid,BincoSystemZiviSkins[sInfo[playerid][skin]][Skinid]);
    }
    if(sInfo[playerid][AmUmkleidenF] == 1)
    {
    if(sInfo[playerid][fskin] >= sizeof(BincoSystemFraktionsSkins))
    {
    for(new i=0;i<sizeof(BincoSystemFraktionsSkins);i++)
    {
    if(!isFraktion(playerid,BincoSystemFraktionsSkins[i][Fraktid]))
    {
    sInfo[playerid][fskin] = i;
    }
    }
    }
    if(!isFraktion(playerid,BincoSystemFraktionsSkins[sInfo[playerid][fskin]][Fraktid]))
    {
    for(new i=0;i<sizeof(BincoSystemFraktionsSkins);i++)
    {
    if(isFraktion(playerid,BincoSystemFraktionsSkins[i][Fraktid]))
    {
    sInfo[playerid][fskin] = i;
    SetPlayerSkin(playerid,BincoSystemFraktionsSkins[i][Skinid]);
    break;
    }
    }
    }
    else
    {
    SetPlayerSkin(playerid,BincoSystemFraktionsSkins[sInfo[playerid][fskin]][Skinid]);
    }
    return 1;
    }
    }
    if(clickedid == BINCOdraw[2])//skin bestätigen
    {
    if(sInfo[playerid][AmUmkleiden] == 1)
    {
    sInfo[playerid][skin]=GetPlayerSkin(playerid);
    TogglePlayerControllable(playerid,1);
    SetCameraBehindPlayer(playerid);
    sInfo[playerid][AmUmkleiden]=0;
    TextDrawHideForPlayer(playerid,BINCOdraw[0]);
    TextDrawHideForPlayer(playerid,BINCOdraw[1]);
    TextDrawHideForPlayer(playerid,BINCOdraw[2]);
    PlayerTextDrawHide(playerid,BINCOplayerdraw[playerid]);
    SetPlayerVirtualWorld(playerid,0);
    SendClientMessage(playerid,Rot,"Falls du dich nicht bewegen kannst drücke 'ESC'.");
    return 1;
    }
    if(sInfo[playerid][AmUmkleidenF] == 1)
    {
    sInfo[playerid][fskin]=GetPlayerSkin(playerid);
    TogglePlayerControllable(playerid,1);
    SetCameraBehindPlayer(playerid);
    sInfo[playerid][AmUmkleidenF]=0;
    TextDrawHideForPlayer(playerid,BINCOdraw[0]);
    TextDrawHideForPlayer(playerid,BINCOdraw[1]);
    TextDrawHideForPlayer(playerid,BINCOdraw[2]);
    PlayerTextDrawHide(playerid,BINCOplayerdraw[playerid]);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerSkin(playerid,sInfo[playerid][skin]);
    SendClientMessage(playerid,Rot,"Falls du dich nicht bewegen kannst drücke 'ESC'.");
    printf("Skin: %d",sInfo[playerid][fskin]);
    return 1;
    }
    }
    return 1;
    }


    Die normale Skinauswahl (AmUmkleiden) funktioniert perfekt! Aber die Fraktionsskinauswahl (AmUmkleidenF) funktioniert das weiter und zurück nicht! Ich hoffe ihr könnt mir helfen. :S




    Mit freundlichen Grüßen,
    DexterA1

    Hallo liebe Community,


    ich kenne mich mit php kaum aus, daher bräuchte ich mal eure Hilfe. Wie kann ich bei dem Code (unten) die M5 Entschlüsselung einfügen, also wie muss das dann aussehen?



    Code:

    PHP
    <?php 	define('GLOBAL_INC', 'GLOBAL_INC');	require_once('core.php');	UserLoggedIn();	if(isset($_POST['log_submit']))	{		$Username = mysql_real_escape_string($_POST['log_username']);		$Password = mysql_real_escape_string($_POST['log_password']);		$CheckData = mysql_query("SELECT id FROM ".$Prefix."user WHERE name = '$Username' AND password = '$Password' LIMIT 1");		if(mysql_num_rows($CheckData) == 1)		{			$_SESSION['username'] = $Username; 			$_SESSION['password'] = $Password;			$_SESSION['loggedin'] = true; 			header('Location: home.php');		} else {			$Smarty->assign('MESSAGE', '<div>Falsche Zugangsdaten!</div>');		}	} else {		$Smarty->assign('MESSAGE', '');	}	$Smarty->display('templates/login.tpl');?>




    Mit freundlichen Grüßen,
    DexterA1

    Hallo liebe Community,


    mein Problem ist das ich die Koordinaten von Pickups in einem Enum hab und es werden zwei nicht geladen.


    Mein Code:
    enum buildingsEnum{
    Float:b_x,
    Float:b_y,
    Float:b_z,
    Float:b_sx,
    Float:b_sy,
    Float:b_sz,
    Float:b_ix,
    Float:b_iy,
    Float:b_iz,
    Float:b_six,
    Float:b_siy,
    Float:b_siz,
    b_interior,
    Float:b_spawnx,
    Float:b_spawny,
    Float:b_spawnz,
    b_shopname[64]
    }
    new bInfo[][buildingsEnum] = {//AUSSEN-PICKUP, EXIT-SPAWN, INNEN-PICKUP, INTERIOR-SPAWN
    {1789.4702,-1295.9545,13.5598,1789.4702,-1295.9545,13.4597,1803.1923,-1298.2323,82.2460,1800.4341,-1299.7035,82.1459,0,0.0,0.0,0.0,"Zivilspawn"},//Zivilspawn
    {1199.2667,-918.4944,43.2206,1198.0889,-920.8557,43.0403,363.0327,-74.9503,1001.6079,365.1226,-73.9612,1001.5078,10,0.0,0.0,0.0,"Burgershot Nord"},//LS BSN
    {1368.2289,-1279.8066,13.6470,1366.3708,-1279.9669,13.5469,315.7064,-143.5418,999.7017,314.3075,-141.1259,999.6016,7,0.0,0.0,0.0,"Waffenladen"},//LS Waffenladen
    {1153.4393,-1318.2325,15.3460,1152.7239,-1322.3441,13.8826,-2036.0121,-58.1286,1061.0917,-2034.0125,-57.3055,1060.9916,0,-1992.7455,-78.8729,1060.9877,"Krankenhaus"},//LS Krankenhaus
    {1462.3456,-1010.5144,26.9438,1462.3407,-1014.2900,26.6298,2304.9282,-16.1579,26.8423,2307.7976,-16.3576,26.7496,0,0.0,0.0,0.0,"Bank of San Andreas"},//LS Bank
    {1481.3795,-1819.1378,15.6367,1481.0818,-1816.9515,15.3840,389.9506,173.6876,1008.4829,384.808624,173.804992,1008.382812,3,0.0,0.0,0.0,"Stadthalle"},//LS Stadthalle
    {1548.4781,-1673.6023,13.5476,1546.9281,-1673.1544,13.4476,288.6916,167.5339,1007.2720,288.745971,169.350997,1007.171875,3,216.4410,168.5336,1003.0234,"Los Santos - Police Department"},//LSPD
    {1743.0194,-1863.3376,13.6753,1742.7118,-1861.2164,13.5778,-2158.6108,642.7610,1052.4751,-2159.1228,641.5175,1052.3817,1,-2170.6138,638.6362,1057.5997,"Taxizentrale"},//LS Taxibase
    {595.6693,-1250.7739,18.3997,593.2079,-1248.6953,18.1762,240.7322,75.8566,1005.1392,238.6056,75.9947,1005.0391,6,234.3555,72.2012,1005.0391,"San Andreas News AG"},//News AG
    {919.4656,-1252.1716,16.3110,916.6663,-1252.9513,15.6641,322.3466,302.7425,999.2485,322.0825,304.6203,999.1484,5,322.3232,308.1683,999.1484,"Ordnungsamt"},//Ordnungsamt
    {2244.5574,-1665.1196,15.5767,2245.3508,-1662.6350,15.4690,207.7149,-111.0163,1005.2329,207.737991,-109.019996,1005.132812,15,0.0,0.0,0.0,"Umziehladen:\nBinco"},//Binco
    {810.6122,-1616.2349,13.5469,813.6622,-1616.2539,13.5547,363.0327,-74.9503,1001.6079,365.1226,-73.9612,1001.5078,10,0.0,0.0,0.0,"Burgershot Süd"},//LS BSS
    {928.6077,-1352.8959,13.3438,926.6429,-1352.9110,13.3767,0.0,0.0,0.0,369.579528,-4.487294,1001.858886,9,0.0,0.0,0.0,"Cluckin' bell"}//Cluckin' bell in LS
    };
    for(new i=0; i<sizeof(bInfo); i++)
    {
    CreatePickup(1559,1,bInfo[i][b_x],bInfo[i][b_y],bInfo[i][b_z],-1);
    CreatePickup(1559,1,bInfo[i][b_ix],bInfo[i][b_iy],bInfo[i][b_iz],-1);
    Create3DTextLabel(bInfo[i][b_shopname],Blau,bInfo[i][b_x],bInfo[i][b_y],bInfo[i][b_z]+0.5,40.0,0,0);
    }


    Der Bürgershot Süd und der Cluckin´bell werden nicht geladen, also die letzen beiden. Ich hoffe ihr könnt mir helfen.




    Mit freundlichen Grüßen,
    DexterA1

    Hallo liebe Community,


    ich habe eine Frage und zwar wie kann ich das so abfragen wenn ich so ein Auto erstelle:


    Auto1[0]=CreateVehicle(...)
    Auto1[1]=CreateVehicle(...)
    Auto1[2]=CreateVehicle(...)
    Auto1[3]=CreateVehicle(...)
    Auto1[4]=CreateVehicle(...)
    Auto1[5]=CreateVehicle(...)

    wie kann ich dann in diesem Code abfragen:


    forward IsAMedicCar(carid);
    public IsAMedicCar(carid)
    {
    new camodel = GetVehicleModel(carid);
    {
    if(camodel == 416 || [b][u]WAS MUSS HIER REIN[/u][/b])
    {
    return 1;
    }
    }
    return 0;
    }


    wenn ich alle diese Autos abfragen will?



    Sorry das es ein bisschen komisch klingt aber es lässt sich auch nicht so gut erklären.. :S



    Mit freundlichen Grüßen,
    DexterA1

    Klappt immer noch nicht. :(



    if(strcmp(cmd, "/schnee", true) == 0)
    {
    if(!isAdmin(playerid,5))return SendClientMessage(playerid,Rot,"Du hast nicht das nötige Adminlevel dafür!");
    new Float:x, Float:y, Float:z;
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(Snow[i]==0)
    {
    new Float:Pos[3];
    GetPlayerPos(i,x,y,z);
    SnowObject[i]=CreatePlayerObject(i,18864,x,y,z,0.0,0.0,0.0);
    GetPlayerObjectRot(i,SnowObject[i],Pos[0],Pos[1],Pos[2]);
    MovePlayerObject(i,SnowObject[i],x,y,z,100.0,Pos[0]+(random(5)),Pos[1]+(random(5)),Pos[2]+(random(5)));
    SetPlayerWeather(i,9);
    Snow[i]=1;
    return 1;
    }
    if(Snow[i]==1)
    {
    Snow[i]=0;
    StopPlayerObject(i,SnowObject[i]);
    DestroyPlayerObject(i,SnowObject[i]);
    return 1;
    }
    }
    return 1;
    }

    Hallo liebe Community,


    ich habe einen Schnee Befehl erstellt, der dafür sorgen soll das es auf dem ganzen Server schneit, aber er funktioniert nicht?



    Mein Code:
    if(strcmp(cmd, "/schnee", true) == 0)
    {
    if(!isAdmin(playerid,5))return SendClientMessage(playerid,Rot,"Du hast nicht das nötige Adminlevel dafür!");
    new Float:x, Float:y, Float:z;
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(Snow[i]==0)
    {
    new Float:Pos[3];
    SnowObject[i]=CreatePlayerObject(i,18864,x,y,z,0.0,0.0,0.0);
    GetPlayerObjectRot(i,SnowObject[i],Pos[0],Pos[1],Pos[2]);
    MovePlayerObject(i,SnowObject[i],x,y,z,100.0,Pos[0]+(random(5)),Pos[1]+(random(5)),Pos[2]+(random(5)));
    SetPlayerWeather(i,9);
    Snow[i]=1;
    return 1;
    }
    if(Snow[i]==1)
    {
    Snow[i]=0;
    StopPlayerObject(i,SnowObject[i]);
    DestroyPlayerObject(i,SnowObject[i]);
    return 1;
    }
    }
    return 1;
    }


    Es wird nicht mal das Wetter geändert!




    Mit freundlichen Grüßen,
    DexterA1

    Oha hab was in der MySQL Log entdeckt aber wie kann ich das reparieren?


    [02:10:16] [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 'lock='0' WHERE id='2'' at line 1
    [02:10:16] [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 'lock='1' WHERE id='3'' at line 1
    [02:10:16] [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 'lock='0' WHERE id='4'' at line 1
    [02:10:16] [ERROR] CMySQLQuery::Execute[()] - (error #1054) Unknown column 'pwarn' in 'field list'
    [02:10:16] [ERROR] CMySQLQuery::Execute[()] - (error #1054) Unknown column 'perso' in 'field list'
    [02:10:59] [WARNING] CMySQLResult::GetRowDataByName - field not found ("pwarn")
    [02:10:59] [WARNING] CMySQLResult::GetRowDataByName - field not found ("crimes")
    [02:10:59] [WARNING] CMySQLResult::GetRowDataByName - field not found ("perso")
    [02:10:59] [WARNING] CMySQLResult::GetRowDataByName - field not found ("gbdatum")
    [02:10:59] [WARNING] CMySQLResult::GetRowDataByName - field not found ("bmoney")
    [02:11:53] [WARNING] CMySQLResult::GetRowDataByName - field not found ("pwarn")
    [02:11:53] [WARNING] CMySQLResult::GetRowDataByName - field not found ("crimes")
    [02:11:53] [WARNING] CMySQLResult::GetRowDataByName - field not found ("perso")
    [02:11:53] [WARNING] CMySQLResult::GetRowDataByName - field not found ("gbdatum")
    [02:11:53] [WARNING] CMySQLResult::GetRowDataByName - field not found ("bmoney")
    [02:12:09] [ERROR] CMySQLQuery::Execute[()] - (error #1054) Unknown column 'pwarn' in 'field list'
    [02:12:09] [ERROR] CMySQLQuery::Execute[()] - (error #1054) Unknown column 'perso' in 'field list'
    [02:13:31] [ERROR] CMySQLQuery::Execute[()] - (error #1054) Unknown column 'pwarn' in 'field list'
    [02:13:31] [ERROR] CMySQLQuery::Execute[()] - (error #1054) Unknown column 'gbdatum' in 'field list'
    [02:14:11] [ERROR] CMySQLQuery::Execute[()] - (error #1054) Unknown column 'pwarn' in 'field list'
    [02:14:11] [ERROR] CMySQLQuery::Execute[()] - (error #1054) Unknown column 'gbdatum' in 'field list'
    [02:15:13] [ERROR] CMySQLQuery::Execute[()] - (error #1054) Unknown column 'pwarn' in 'field list'
    [02:15:13] [ERROR] CMySQLQuery::Execute[()] - (error #1054) Unknown column 'gbdatum' in 'field list'

    Hallo liebe Community, mein Problem ist das perso und geschlecht in der Datenbank nicht gespeichert werden. Warum weiß ich leider nicht, deswegen habe ich gehofft ihr könntet mal drüber schauen.



    Mein Code:
    savePlayer(playerid)
    {
    if(sInfo[playerid][eingeloggt]==0)return 1;
    //Speichern (Level,Geld)
    new query[256];
    format(query,sizeof(query),"UPDATE user SET level='%i',money='%i',adminlevel='%i',fraktion='%i',skin='%i' WHERE id='%i'",sInfo[playerid][level],GetPlayerMoney(playerid),sInfo[playerid][adminlevel],sInfo[playerid][fraktion],sInfo[playerid][skin],sInfo[playerid][pid]);
    mysql_function_query(dbhandle,query,false,"","");
    format(query,sizeof(query),"UPDATE user SET gun1='%i',gun2='%i',gun3='%i',gun4='%i',gun5='%i',gun6='%i' WHERE id='%i'",sInfo[playerid][gun1],sInfo[playerid][gun2],sInfo[playerid][gun3],sInfo[playerid][gun4],sInfo[playerid][gun5],sInfo[playerid][gun6],sInfo[playerid][pid]);
    mysql_function_query(dbhandle,query,false,"","");
    format(query,sizeof(query),"UPDATE user SET guna1='%i',guna2='%i',guna3='%i',guna4='%i',guna5='%i',guna6='%i' WHERE id='%i'",sInfo[playerid][guna1],sInfo[playerid][guna2],sInfo[playerid][guna3],sInfo[playerid][guna4],sInfo[playerid][guna5],sInfo[playerid][guna6],sInfo[playerid][pid]);
    mysql_function_query(dbhandle,query,false,"","");
    format(query,sizeof(query),"UPDATE user SET banned='%i',pwarn='%i',crimes='%i',geschlecht='%i' WHERE id='%i'",sInfo[playerid][banned],sInfo[playerid][pwarn],sInfo[playerid][crimes],sInfo[playerid][geschlecht],sInfo[playerid][pid]);
    mysql_function_query(dbhandle,query,false,"","");
    format(query,sizeof(query),"UPDATE user SET perso='%i',gbdatum='%i',bmoney='%i' WHERE id='%i'",sInfo[playerid][perso],sInfo[playerid][gbdatum],sInfo[playerid][bmoney],sInfo[playerid][pid]);
    mysql_function_query(dbhandle,query,false,"","");
    //banned='%i'
    return 1;
    }


    resetPlayer(playerid)
    {
    sInfo[playerid][level]=0;
    sInfo[playerid][eingeloggt]=0;
    sInfo[playerid][pid]=0;
    sInfo[playerid][adminlevel]=0;
    sInfo[playerid][fraktion]=0;
    sInfo[playerid][skin]=0;
    sInfo[playerid][dienst]=0;
    sInfo[playerid][aduty]=0;
    sInfo[playerid][cuffed]=0;
    sInfo[playerid][registrierung]=0;
    sInfo[playerid][banned]=0;
    sInfo[playerid][supcar]=0;
    sInfo[playerid][realchat]=0;
    sInfo[playerid][tooc]=0;
    sInfo[playerid][bigear]=0;
    sInfo[playerid][muted]=0;
    sInfo[playerid][gun1]=0;
    sInfo[playerid][guna1]=0;
    sInfo[playerid][gun2]=0;
    sInfo[playerid][guna2]=0;
    sInfo[playerid][gun3]=0;
    sInfo[playerid][guna3]=0;
    sInfo[playerid][gun4]=0;
    sInfo[playerid][guna4]=0;
    sInfo[playerid][gun5]=0;
    sInfo[playerid][guna5]=0;
    sInfo[playerid][gun6]=0;
    sInfo[playerid][guna6]=0;
    sInfo[playerid][pwarn]=0;
    sInfo[playerid][crimes]=0;
    sInfo[playerid][friedhof] = 0;
    sInfo[playerid][perso] = 0;
    sInfo[playerid][geschlecht] = 0;
    sInfo[playerid][gbdatum] = 0;
    sInfo[playerid][bmoney] = 0;
    APerso[playerid] = 0;
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    //if(GetPVarInt(playerid,"loggedin")==1)
    //{
    //SpielerSpeichern(playerid);
    //}
    for(new i=0; i<sizeof(cInfo); i++)
    {
    if(cInfo[i][id_x]==0)continue;
    if(cInfo[i][besitzer]!=sInfo[playerid][pid])continue;
    GetVehiclePos(cInfo[i][id_x],cInfo[i][c_x],cInfo[i][c_y],cInfo[i][c_z]);
    GetVehicleZAngle(cInfo[i][id_x],cInfo[i][c_r]);
    GetVehicleColor(cInfo[i][id_x], cInfo[i][vcolor1], cInfo[i][vcolor2]);
    cInfo[i][tuning1]=GetVehicleComponentInSlot(cInfo[i][id_x], 0);
    cInfo[i][tuning2]=GetVehicleComponentInSlot(cInfo[i][id_x], 1);
    cInfo[i][tuning3]=GetVehicleComponentInSlot(cInfo[i][id_x], 2);
    cInfo[i][tuning4]=GetVehicleComponentInSlot(cInfo[i][id_x], 3);
    cInfo[i][tuning5]=GetVehicleComponentInSlot(cInfo[i][id_x], 4);
    cInfo[i][tuning6]=GetVehicleComponentInSlot(cInfo[i][id_x], 5);
    cInfo[i][tuning7]=GetVehicleComponentInSlot(cInfo[i][id_x], 6);
    cInfo[i][tuning8]=GetVehicleComponentInSlot(cInfo[i][id_x], 7);
    cInfo[i][tuning9]=GetVehicleComponentInSlot(cInfo[i][id_x], 8);
    cInfo[i][tuning10]=GetVehicleComponentInSlot(cInfo[i][id_x], 9);
    cInfo[i][tuning11]=GetVehicleComponentInSlot(cInfo[i][id_x], 10);
    cInfo[i][tuning12]=GetVehicleComponentInSlot(cInfo[i][id_x], 11);
    cInfo[i][tuning13]=GetVehicleComponentInSlot(cInfo[i][id_x], 12);
    cInfo[i][tuning14]=GetVehicleComponentInSlot(cInfo[i][id_x], 13);
    new query[256];
    format(query,sizeof(query),"UPDATE autos SET x='%f',y='%f',z='%f',r='%f',color1='%i',color2='%i',lock='%i' WHERE id='%i'",cInfo[i][c_x],cInfo[i][c_y],cInfo[i][c_z],cInfo[i][c_r],cInfo[i][vcolor1],cInfo[i][vcolor2],cInfo[i][lock],cInfo[i][db_id]);
    mysql_function_query(dbhandle,query,false,"","");
    format(query,sizeof(query),"UPDATE autos SET tuning1='%i',tuning2='%i',tuning3='%i',tuning4='%i',tuning5='%i',tuning6='%i',tuning7='%i' WHERE id='%i'",cInfo[i][tuning1],cInfo[i][tuning2],cInfo[i][tuning3],cInfo[i][tuning4],cInfo[i][tuning5],cInfo[i][tuning6],cInfo[i][tuning7],cInfo[i][db_id]);
    mysql_function_query(dbhandle,query,false,"","");
    format(query,sizeof(query),"UPDATE autos SET tuning8='%i',tuning9='%i',tuning10='%i',tuning11='%i',tuning12='%i',tuning13='%i',tuning14='%i' WHERE id='%i'",cInfo[i][tuning8],cInfo[i][tuning9],cInfo[i][tuning10],cInfo[i][tuning11],cInfo[i][tuning12],cInfo[i][tuning13],cInfo[i][tuning14],cInfo[i][db_id]);
    mysql_function_query(dbhandle,query,false,"","");
    DestroyVehicle(cInfo[i][id_x]);
    cInfo[i][id_x]=0;
    }
    if(sInfo[playerid][supcar]==1)
    {
    sInfo[playerid][supcar] = 0;
    DestroyVehicle(Supcar[playerid]);
    }
    GetPlayerWeapons(playerid);
    savePlayer(playerid);
    resetPlayer(playerid);
    KillTimer(CarTimer[playerid]);
    return 1;
    }



    In der Datenbank sind alle Tabeln erstellt.





    Mit freundlichen Grüßen,
    DexterA1

    Hallo liebe Community,
    mal wieder brauche ich eure Hilfe. Mein Problem ist das ich mir etwas aus dem prp Script kopiert hab doch das funktioniert bei mir nicht? Es geht um SetDynamicObjectMaterialText.



    Code:
    enum InfoTafelInfo
    {
    Float:itafelx,
    Float:itafely,
    Float:itafelz,
    Float:itafelxrot,
    Float:itafelyrot,
    Float:itafelzrot,
    itafel1text[64],
    itafel1tmindex,
    itafel1tmsize,
    itafel1tfonts[32],
    itafel1tfontsize,
    itafel1tbold,
    itafel1tfontcolor[16],
    itafel1tbackcolor[16],
    itafel1taligment,
    itafel2text[64],
    itafel2tmindex,
    itafel2tmsize,
    itafel2tfonts[32],
    itafel2tfontsize,
    itafel2tbold,
    itafel2tfontcolor[16],
    itafel2tbackcolor[16],
    itafel2taligment,
    itafel3text[64],
    itafel3tmindex,
    itafel3tmsize,
    itafel3tfonts[32],
    itafel3tfontsize,
    itafel3tbold,
    itafel3tfontcolor[16],
    itafel3tbackcolor[16],
    itafel3taligment,
    itafel4text[64],
    itafel4tmindex,
    itafel4tmsize,
    itafel4tfonts[32],
    itafel4tfontsize,
    itafel4tbold,
    itafel4tfontcolor[16],
    itafel4tbackcolor[16],
    itafel4taligment,
    itafel5text[64],
    itafel5tmindex,
    itafel5tmsize,
    itafel5tfonts[32],
    itafel5tfontsize,
    itafel5tbold,
    itafel5tfontcolor[16],
    itafel5tbackcolor[16],
    itafel5taligment
    }
    new InfoTafeln[9][InfoTafelInfo] =
    {
    //Float:itafelx,Float:itafely,Float:itafelz,Float:itafelxrot,Float:itafelyrot,Float:itafelzrot,itafel1text[64],itafel1tmindex,itafel1tmsize,itafel1tfonts[32],itafel1tfontsize,itafel1tbold,itafel1tfontcolor[16],itafel1tbackcolor[16],itafel1taligment,itafel2text[64],itafel2tmindex,itafel2tmsize,itafel2tfonts[32],itafel2tfontsize,itafel2tbold,itafel2tfontcolor[16],itafel2tbackcolor[16],itafel2taligment,
    //itafel3text[64],itafel3tmindex,itafel3tmsize,itafel3tfonts[32],itafel3tfontsize,itafel3tbold,itafel3tfontcolor[16],itafel3tbackcolor[16],itafel3taligment,itafel4text[64],itafel4tmindex,itafel4tmsize,itafel4tfonts[32],itafel4tfontsize,itafel4tbold,itafel4tfontcolor[16],itafel4tbackcolor[16],itafel4taligment,itafel5text[64],itafel5tmindex,itafel5tmsize,itafel5tfonts[32],itafel5tfontsize,itafel5tbold,itafel5tfontcolor[16],itafel5tbackcolor[16],itafel5taligment
    {1221.5,-873.20001220703,42.700000762939,0.00,0.00,8.00,"Herzlich",5,120,"Arial",50,1,-1,-16777216,1,"Willkommen",4,120,"Arial",40,1,-1,-16777216,1,"auf",3,120,"Arial",50,1,-1,-16777216,1,""#SERVERFARBE""#SERVERNAME"",2,120,"Arial",50,1,-1,-16777216,1,"Its Possible 2.0b",1,120,"Arial",50,1,-1,-16777216,1},
    {1222.0,-876.40002441406,42.700000762939,0.00,0.00,10.00,SERVERNAME,5,120,"Arial",50,1,-1,-16777216,1,""#HTML_WHITE"FORUM:"#HTML_RED" "#WEBURL1"",4,120,"Arial",40,1,-1,-16777216,1,""#HTML_WHITE"CP:"#HTML_GOLDENYELLOW" "#UCPWEBURL1"",3,120,"Arial",50,1,-1,-16777216,1,""#HTML_WHITE"TS:"#HTML_GOLDENYELLOW" "#TSIP2"",2,120,"Arial",50,1,-1,-16777216,1,"ITS POSSIBLE 2.0b",1,120,"Arial",50,1,-1,-16777216,1},
    {1361.04,-1018.94,29.43,0.00,0.00,0.00,SERVERNAME,5,120,"Arial",50,1,-1,-16777216,1,""#HTML_WHITE"FORUM:"#HTML_RED" "#WEBURL1"",4,120,"Arial",40,1,-1,-16777216,1,""#HTML_WHITE"CP:"#HTML_GOLDENYELLOW" "#UCPWEBURL1"",3,120,"Arial",50,1,-1,-16777216,1,""#HTML_WHITE"TS:"#HTML_GOLDENYELLOW" "#TSIP2"",2,120,"Arial",50,1,-1,-16777216,1,"ITS POSSIBLE 2.0b",1,120,"Arial",50,1,-1,-16777216,1},
    {1811.5196,-1622.2359,14.8919,0.00,0.00,144.0482,SERVERNAME,5,120,"Arial",50,1,-1,-16777216,1,""#HTML_WHITE"FORUM:"#HTML_RED" "#WEBURL1"",4,120,"Arial",40,1,-1,-16777216,1,""#HTML_WHITE"CP:"#HTML_GOLDENYELLOW" "#UCPWEBURL1"",3,120,"Arial",50,1,-1,-16777216,1,""#HTML_WHITE"TS:"#HTML_GOLDENYELLOW" "#TSIP2"",2,120,"Arial",50,1,-1,-16777216,1,"ITS POSSIBLE 2.0b",1,120,"Arial",50,1,-1,-16777216,1},
    {1479.4411,-1794.4844,16.4419,0.00,0.00,179.4481,SERVERNAME,5,120,"Arial",50,1,-1,-16777216,1,""#HTML_WHITE"FORUM:"#HTML_RED" "#WEBURL1"",4,120,"Arial",40,1,-1,-16777216,1,""#HTML_WHITE"CP:"#HTML_GOLDENYELLOW" "#UCPWEBURL1"",3,120,"Arial",50,1,-1,-16777216,1,""#HTML_WHITE"TS:"#HTML_GOLDENYELLOW" "#TSIP2"",2,120,"Arial",50,1,-1,-16777216,1,"ITS POSSIBLE 2.0b",1,120,"Arial",50,1,-1,-16777216,1},
    {383.0843,-2078.9709,10.1559,0.00,0.00,-179.5509,SERVERNAME,5,120,"Arial",50,1,-1,-16777216,1,""#HTML_WHITE"FORUM:"#HTML_RED" "#WEBURL1"",4,120,"Arial",40,1,-1,-16777216,1,""#HTML_WHITE"CP:"#HTML_GOLDENYELLOW" "#UCPWEBURL1"",3,120,"Arial",50,1,-1,-16777216,1,""#HTML_WHITE"TS:"#HTML_GOLDENYELLOW" "#TSIP2"",2,120,"Arial",50,1,-1,-16777216,1,"ITS POSSIBLE 2.0b",1,120,"Arial",50,1,-1,-16777216,1},
    {1108.3337,-1301.8652,16.1642,0.00,0.00,1.2547,SERVERNAME,5,120,"Arial",50,1,-1,-16777216,1,""#HTML_WHITE"FORUM:"#HTML_RED" "#WEBURL1"",4,120,"Arial",40,1,-1,-16777216,1,""#HTML_WHITE"CP:"#HTML_GOLDENYELLOW" "#UCPWEBURL1"",3,120,"Arial",50,1,-1,-16777216,1,""#HTML_WHITE"TS:"#HTML_GOLDENYELLOW" "#TSIP2"",2,120,"Arial",50,1,-1,-16777216,1,"ITS POSSIBLE 2.0b",1,120,"Arial",50,1,-1,-16777216,1},
    {1614.9188,-1248.3789,19.8072,0.00,0.00,135.8282,SERVERNAME,5,120,"Arial",50,1,-1,-16777216,1,""#HTML_WHITE"FORUM:"#HTML_RED" "#WEBURL1"",4,120,"Arial",40,1,-1,-16777216,1,""#HTML_WHITE"CP:"#HTML_GOLDENYELLOW" "#UCPWEBURL1"",3,120,"Arial",50,1,-1,-16777216,1,""#HTML_WHITE"TS:"#HTML_GOLDENYELLOW" "#TSIP2"",2,120,"Arial",50,1,-1,-16777216,1,"ITS POSSIBLE 2.0b",1,120,"Arial",50,1,-1,-16777216,1},
    {1632.1575,-859.1402,60.1496,0.00,0.00,-28.1897,SERVERNAME,5,120,"Arial",50,1,-1,-16777216,1,""#HTML_WHITE"FORUM:"#HTML_RED" "#WEBURL1"",4,120,"Arial",40,1,-1,-16777216,1,""#HTML_WHITE"CP:"#HTML_GOLDENYELLOW" "#UCPWEBURL1"",3,120,"Arial",50,1,-1,-16777216,1,""#HTML_WHITE"TS:"#HTML_GOLDENYELLOW" "#TSIP2"",2,120,"Arial",50,1,-1,-16777216,1,"ITS POSSIBLE 2.0b",1,120,"Arial",50,1,-1,-16777216,1}
    };
    for(new i=0;i<sizeof(InfoTafeln);i++)
    {
    new obj=CreateObject(5811, 1500.76, -1783.90, 16.02, 0.00, 0.00, 48.00);
    new obj2=CreateObject(5811, 1462.61, -1784.75, 16.02, 0.00, 0.00, -32.58);
    SetDynamicObjectMaterialText(obj,InfoTafeln[i][itafel1tmindex],InfoTafeln[i][itafel1text],InfoTafeln[i][itafel1tmsize],InfoTafeln[i][itafel1tfonts],InfoTafeln[i][itafel1tfontsize],InfoTafeln[i][itafel1tbold],InfoTafeln[i][itafel1tfontcolor],InfoTafeln[i][itafel1tbackcolor],InfoTafeln[i][itafel1taligment]);
    SetDynamicObjectMaterialText(obj2,InfoTafeln[i][itafel2tmindex],InfoTafeln[i][itafel2text],InfoTafeln[i][itafel2tmsize],InfoTafeln[i][itafel2tfonts],InfoTafeln[i][itafel2tfontsize],InfoTafeln[i][itafel2tbold],InfoTafeln[i][itafel2tfontcolor],InfoTafeln[i][itafel2tbackcolor],InfoTafeln[i][itafel2taligment]);
    }




    Mit freundlichen Grüßen,
    DexterA1