Beiträge von reaL.

    Jeffry:
    ich habe jetze das Problem mit mein VIP Cars und meinen Job cars wie muss ich das machen ?
    Job enum
    enum JobCars
    {
    Jobid,
    model,
    Float:c_x,
    Float:c_y,
    Float:c_z,
    Float:c_r,
    Color1,
    Color2,
    v_ID
    }


    so wird erstellt
    for(new c=0; c<sizeof(Jobc); c++)
    {
    Jobc[code=c][v_ID] = AddStaticVehicleEx(Jobc[code=c][model],Jobc[code=c][c_x],Jobc[code=c][c_y],Jobc[code=c][c_z],Jobc[code=c][c_r],Jobc[code=c][Color1],Jobc[code=c][Color2],-1);
    if(Jobc[code=c][Jobid] == 2)
    {
    SetVehicleNumberPlate(Jobc[code=c][v_ID],"Müllmann");
    }

    Ja ich will ja das Kennzeichen auslesen lassen und dann Setzen lassen aber jetze habe ich diesen Error


    [18:09:01] [ERROR] cache_get_field_content_int - invalid datatype

    bekomme eine Leere Nachricht


    enum carEnum{
    id_x,
    model,
    besitzer,
    Float:c_x,
    Float:c_y,
    Float:c_z,
    Float:c_r,
    db_id,
    pctank,
    ckz,
    bname[30]
    }


    createPlayerCar(playerid,modelid,Float:x,Float:y,Float:z,Float:r)
    {
    for(new i=0; i<sizeof(cInfo); i++)
    {
    if(cInfo[i][id_x]!=0)continue;
    new string[30];
    format(string,sizeof(string),"%s",getPlayerName(playerid));
    format(cInfo[i][bname],30,string);
    cInfo[i][besitzer]=sInfo[playerid][db_id];
    cInfo[i][c_x]=x;
    cInfo[i][c_y]=y;
    cInfo[i][c_z]=z;
    cInfo[i][c_r]=r;
    cInfo[i][model]=modelid;
    cInfo[i][id_x] = CreateVehicle(modelid,x,y,z,r,-1,-1,-1);
    tank[cInfo[i][id_x]] = 100;
    SetVehicleParamsEx(cInfo[i][id_x],0,0,0,1,0,0,0);
    saveCarToDB(playerid,i);
    new str[10],plate;
    plate = GetFreeNumberPlate();
    format(str, sizeof(str), "PRP-SA-%d", plate);
    cInfo[i][ckz] = SetVehicleNumberPlate(cInfo[i][id_x],str);
    new query[256];
    format(query,sizeof(query),"UPDATE autos SET Kennzeichen='%s' WHERE id='%i'",cInfo[i][ckz],cInfo[i][db_id]);
    mysql_function_query(dbhandle,query,false,"","");
    return 1;
    }
    return 1;
    }


    public OnPlayerCarsLoad(playerid)
    {
    new num_fields,num_rows;
    cache_get_data(num_rows,num_fields,dbhandle);
    if(!num_rows)return 1;
    for(new i=0; i<num_rows; i++)
    {
    new id=getFreeCarID();
    new string[30];
    format(string,sizeof(string),"%s",getPlayerName(playerid));
    format(cInfo[i][bname],30,string);
    cInfo[id][model]=cache_get_field_content_int(i,"model",dbhandle);
    cInfo[id][besitzer]=cache_get_field_content_int(i,"besitzer",dbhandle);
    cInfo[id][c_x]=cache_get_field_content_float(i,"x",dbhandle);
    cInfo[id][c_y]=cache_get_field_content_float(i,"y",dbhandle);
    cInfo[id][c_z]=cache_get_field_content_float(i,"z",dbhandle);
    cInfo[id][c_r]=cache_get_field_content_float(i,"r",dbhandle);
    cInfo[id][pctank]=cache_get_field_content_int(i,"tank",dbhandle);
    cache_get_field_content(i,"Kennzeichen",cInfo[id][ckz],dbhandle,20);
    cInfo[id][db_id]=cache_get_field_content_int(i,"id",dbhandle);
    cInfo[id][id_x]=CreateVehicle(cInfo[id][model],cInfo[id][c_x],cInfo[id][c_y],cInfo[id][c_z],cInfo[id][c_r],-1,-1,-1);
    SetVehicleNumberPlate(cInfo[id][id_x],cInfo[id][ckz]);
    tank[cInfo[id][id_x]] = (cInfo[id][pctank]);
    }
    return 1;
    }




    stock GetAutoBesitzer(playerid,vehicleid)
    {
    new string[50];
    for(new i=0; i<sizeof(cInfo); i++)
    {
    if(cInfo[i][id_x] == vehicleid)
    {
    format(string,sizeof(string),"%s",cInfo[i][bname]);
    SendClientMessage(playerid,ROT,string);
    }
    }


    //Oben im Script
    new bool:Adminduty[MAX_PLAYERS];


    //Befehl
    ocmd:aduty(playerid,params[])
    {
    if(!IsPlayerEinAdmin(playerid,3)) return SendClientMessage(playerid,ROT,"Du bist kein Admin!");
    if(Adminduty[playerid]==false)
    {
    new name[100];
    GetPlayerName(playerid, name, sizeof(name));
    format(name,sizeof(name),"Admin %s ist in den Dienst gegangen! Er ist Rot Markiert!",name);
    SetPlayerHealth(playerid, 99999);
    SetPlayerArmour(playerid, 99999);
    SendClientMessageToAll(ROT,name);SetPlayerSkin(playerid, 217);
    SetPlayerColor(playerid, ROT);
    Adminduty[playerid] = 1;
    return 1;
    }
    else
    {
    new name[100];
    GetPlayerName(playerid, name, sizeof(name));
    format(name,sizeof(name),"Admin %s hat den Dienst Beendet!!",name);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 0);
    SendClientMessageToAll(ROT,name);
    SetPlayerSkin(playerid, 217);
    SetPlayerColor(playerid, ROT);
    Adminduty[playerid] = 0;
    return 1;
    }
    }

    Hey ich suche Call of Duty Black ops 2 mitspieler wer will einfach schreiben



    und ich habe ein Problem ich habe mir den DLC
    Call of Duty: Black Ops II - Weaponized 115 Pack
    gekauft aber ich habe ingame keine Waffe ?
    meine frage wie bekomme ich die waffen davon