Beiträge von Büttii<3

    Sry wen diese Frage vil. schoneimal gestellt wurde..


    Ich würde gerne ein GangwarSystem haben indem man GangZonen (Bezirke) der anderen Gangs einnehmen kann
    dort sollen dann halt beim Gangwar Flaggen stehen die man einnehmen muss
    hat da villeicht eine Erfahrung mit ?


    würde mich Freuen wen mir da einer dabei helfen könnte



    Mfg.


    Büttii<33 :love:

    (22510) : error 001: expected token: "-identifier-", but found "3"
    (22513) : error 029: invalid expression, assumed zero
    (22513) : error 017: undefined symbol "dlabel"
    (22513) : error 035: argument type mismatch (argument 2)
    (22513) : fatal error 107: too many error messages on one line

    if(!strcmp(cmdtext, "/supmobil"))
    {
    if (PlayerInfo[playerid][pAdmin] >= 10)
    {
    new name[MAX_PLAYER_NAME], string[44]; // Falls error, auskommentieren (// entfernen)
    new 3dlabel, Text3D:vehicle3Dtext;
    new Float, Float:Y, Float:Z, car;
    GetPlayerName(playerid, name, sizeof(name));
    3dlabel = Create3DTextLabel( "SuporterMobil von: %s",name, 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
    GetPlayerPos(playerid, X, Y, Z);
    car = AddStaticVehicle(457,X+1,Y,Z,270.8807,0,0);//Wenn´s nicht funktioniert dann: vehicle_id = CreateVehicle(457,X+1,Y,Z,270.8807,0,0);
    Attach3DTextLabelToVehicle( 3dlabel, car, 0.0, 0.0, 2.0);
    PutPlayerInVehicle(playerid, car, 0);
    return 1;
    }
    }


    was ist hier Falsch ;(

    if(!strcmp(cmdtext, "/supmobil"))
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pAdmin] < 10)
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist kein Administrator!");
    return 1;
    }
    new Float:X , Float:Y, Float:Z,car;
    GetPlayerPos(playerid, X, Y, Z);
    car = AddStaticVehicle(457,X+1,Y,Z,270.8807,0,0);
    new Text3D:vehicle3Dtext;
    vehicle3Dtext = Create3DTextLabel( "Suporter Mobil" ,0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1);
    Attach3DTextLabelToVehicle( vehicle3Dtext, car, 0.0, 0.0, 2.0);
    }
    return 1;
    }


    Wie macht hier das hinter Suporter Mobil beim 3Dtextlabel steht Suporter Mobil von : Spielername ;) ?



    Mfg. Bütti =)

    GetSpielerPasswort(playerid)
    {
    format(CacheString, sizeof(CacheString), "SELECT Passwort FROM gf_players WHERE SpielerName = '%s';",GetName(playerid));
    mysql_query(CacheString);
    mysql_store_result();
    mysql_retrieve_row();
    mysql_fetch_field_row(PlayerInfo[playerid][pKey],"Passwort");
    mysql_free_result();
    }
    SavePlayerSQLInt(playerid,field[],setint)
    {
    format(CacheString,sizeof(CacheString),"UPDATE gf_players SET %s = '%i' WHERE SpielerName = '%s';",field,setint,GetName(playerid));
    mysql_query(CacheString);
    return true;
    }
    SavePlayerSQLFloat(playerid,field[],Float:setfloat)
    {
    format(CacheString,sizeof(CacheString),"UPDATE gf_players SET %s = '%f' WHERE SpielerName = '%s';",field,setfloat,GetName(playerid));
    mysql_query(CacheString);
    return true;
    }
    SavePlayerSQLString(playerid,field[],setstring[])
    {
    format(CacheString,sizeof(CacheString),"UPDATE gf_players SET %s = '%s' WHERE SpielerName = '%s';",field,setstring,GetName(playerid));
    mysql_query(CacheString);
    return true;
    }
    ReadPlayerSQLInt(playerid,field[])
    {
    format(CacheString,sizeof(CacheString),"SELECT %s FROM gf_players WHERE SpielerName = '%s';",field,GetName(playerid));
    mysql_query(CacheString);
    mysql_store_result();
    new mysqlint=mysql_fetch_int();
    mysql_free_result();
    return mysqlint;
    }
    Float:ReadPlayerSQLFloat(playerid,field[])
    {
    format(CacheString,sizeof(CacheString),"SELECT %s FROM gf_players WHERE SpielerName = '%s';",field,GetName(playerid));
    mysql_query(CacheString);
    mysql_store_result();
    new Float:mysqlfloat;
    mysql_fetch_float(mysqlfloat);
    mysql_free_result();
    return mysqlfloat;
    }
    ReadPlayerSQLString(playerid,field[],buffer[])
    {
    format(CacheString,sizeof(CacheString),"SELECT %s FROM gf_players WHERE SpielerName = '%s';",field,GetName(playerid));
    mysql_query(CacheString);
    mysql_store_result();
    mysql_retrieve_row();
    mysql_fetch_field_row(buffer,field);
    mysql_free_result();
    return true;
    }




    LadeInventar(playerid)
    {
    new cnr[8];
    format(CacheString, 256, "spielerdaten/%s.inv", GetName(playerid));
    if(INI_Open(CacheString))
    {
    for(new id = 0; id < MAX_PRODUCTS; id++)
    {
    Inventar[playerid][id][ivpSlot] = -1; Inventar[playerid][id][ivpMenge] = -1; Inventar[playerid][id][ivpAblauf] = -1;
    Itter_Remove(PInventar[playerid], id);
    valstr(cnr, id);
    INI_ReadString(CacheString, cnr);
    sscanf(CacheString, "p<;>iiiis[128]f",
    Inventar[playerid][id][ivpSlot],
    Inventar[playerid][id][ivpMenge],
    Inventar[playerid][id][ivpAblauf],
    Inventar[playerid][id][ivpNumber],
    Inventar[playerid][id][ivpString],
    Inventar[playerid][id][ivpFloat]);
    if(Inventar[playerid][id][ivpSlot] != -1) Itter_Add(PInventar[playerid], id);
    }
    INI_Close();
    }
    return true;
    }


    SpeichereInventar(playerid)
    {
    new cnr[8];
    format(CacheString, 256, "spielerdaten/%s.inv", GetName(playerid));
    if(INI_Open(CacheString))
    {
    foreach(PInventar[playerid], id)
    {
    valstr(cnr, id);
    format(CacheString, 256, "%i;%i;%i;%i;%s;%f",
    Inventar[playerid][id][ivpSlot],
    Inventar[playerid][id][ivpMenge],
    Inventar[playerid][id][ivpAblauf],
    Inventar[playerid][id][ivpNumber],
    Inventar[playerid][id][ivpString],
    Inventar[playerid][id][ivpFloat]);
    INI_WriteString(cnr, CacheString);
    }
    INI_Save();
    //INI_Close();
    }
    return true;
    } //edit noch was zugefügt

    ImportOldPlayerFile(playerid)
    {
    new rstring[MAX_PLAYER_NAME+18];
    format(rstring, sizeof(rstring), "spielerdaten/%s.ini", GetName(playerid));
    INI_Open(rstring);
    INI_ReadString(PlayerInfo[playerid][pKey], "Passwort", MAX_PASSWORT_LENGTH);
    WP_Hash(PlayerInfo[playerid][pKey],512,PlayerInfo[playerid][pKey]);
    PlayerInfo[playerid][pLevel] = INI_ReadInt("Level");
    PlayerInfo[playerid][pFraktion] = INI_ReadInt("Fraktion");
    PlayerInfo[playerid][pDonateRank] = INI_ReadInt("DonateRank");
    PlayerInfo[playerid][gPupgrade] = INI_ReadInt("UpgradePoints");
    PlayerInfo[playerid][pConnectTime] = INI_ReadInt("ConnectedTime");
    PlayerInfo[playerid][pReg] = INI_ReadInt("Registered");