Beiträge von JustMe.77

    Jemand da der gut französisch kann und mir diesen kleinen Text übersetzt? Weiß durch Google Translate grob worum es geht, aber es ist halt Google Translate und das was daraus kommt ist kein vernünftiges Deutsch :D


    Il y a que quand je frôle la mort que je me sens en vie
    Comme si j'allais m'endormir en classe et j'avais besoin d'un paire de claques pour me ressaisir
    Tu vois ?
    Comme si j'avais besoin de perdre quelque chose pour avoir envie de le reprendre
    La monotonie, ça m'insomne
    Le quotidien, ça vous colle en bas, ça vous englue
    Ça vous cloue au sol
    J'ai besoin de vivre la vie comme une montagne russe, tu vois ?
    Regarde les étoiles c'est fou de briller autant
    Mais je pense que quelque part quelqu'un nous regarde briller aussi dans son ciel et aimerait nous ressembler
    J'aime ce vertige quand je regarde le ciel
    J'ai l'impression que je pourrais me casser la gueule dans cette infinité

    Alles von OnGameModeInit zu OnPlayerConnect verschieben :)


    So:



    public OnPlayerConnect(playerid)
    {
    RemoveBuildingForPlayer(playerid, 17770, 2485.9063, -1639.3281, 16.9531, 0.25);
    RemoveBuildingForPlayer(playerid, 3654, 2517.4766, -1644.6953, 15.1953, 0.25);
    RemoveBuildingForPlayer(playerid, 3592, 2498.3047, -1638.3281, 15.1797, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2487.3984, -1688.1016, 13.2813, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 2488.8047, -1684.7891, 12.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2491.8984, -1688.1016, 13.2813, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2498.6719, -1688.2344, 13.2813, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 2491.2344, -1653.9609, 12.9219, 0.25);
    RemoveBuildingForPlayer(playerid, 1308, 2491.8984, -1647.8984, 12.7500, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2492.2656, -1653.9922, 12.8984, 0.25);
    RemoveBuildingForPlayer(playerid, 3589, 2498.3047, -1638.3281, 15.1797, 0.25);
    RemoveBuildingForPlayer(playerid, 1211, 2495.2656, -1653.6719, 12.9141, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 2505.6719, -1658.9063, 12.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 2510.9219, -1656.1328, 12.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 1211, 2505.6641, -1657.9375, 12.9219, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2511.5000, -1654.1563, 13.4922, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2509.0156, -1652.1719, 13.4922, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2501.9297, -1650.5078, 12.9141, 0.25);
    RemoveBuildingForPlayer(playerid, 1468, 2505.1094, -1646.0391, 13.9141, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2509.1719, -1648.7031, 13.4922, 0.25);
    RemoveBuildingForPlayer(playerid, 760, 2507.5859, -1646.5547, 12.5313, 0.25);
    RemoveBuildingForPlayer(playerid, 760, 2501.7500, -1645.5000, 12.2969, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 2508.8672, -1634.4922, 11.9063, 0.25);
    RemoveBuildingForPlayer(playerid, 762, 2508.4141, -1635.4375, 11.7500, 0.25);
    RemoveBuildingForPlayer(playerid, 3594, 2514.3906, -1658.6016, 13.1406, 0.25);
    RemoveBuildingForPlayer(playerid, 760, 2517.0938, -1656.0703, 13.0625, 0.25);
    RemoveBuildingForPlayer(playerid, 645, 2518.6484, -1655.5234, 12.9922, 0.25);
    RemoveBuildingForPlayer(playerid, 1468, 2520.6016, -1652.5938, 13.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2514.7344, -1654.1875, 13.7734, 0.25);
    RemoveBuildingForPlayer(playerid, 760, 2521.6953, -1653.0391, 13.2109, 0.25);
    RemoveBuildingForPlayer(playerid, 1468, 2524.4063, -1648.8516, 13.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 3649, 2517.4766, -1644.6953, 15.1953, 0.25);
    RemoveBuildingForPlayer(playerid, 669, 2530.4766, -1636.7031, 12.3047, 0.25);
    RemoveBuildingForPlayer(playerid, 762, 2446.5547, -1681.0703, 12.3828, 0.25);
    RemoveBuildingForPlayer(playerid, 1468, 2468.3516, -1680.9844, 13.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 3593, 2457.8672, -1679.6719, 12.9453, 0.25);
    RemoveBuildingForPlayer(playerid, 1468, 2465.6953, -1676.4453, 13.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 1468, 2463.8672, -1671.5156, 13.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 17879, 2484.5313, -1667.6094, 21.4375, 0.25);
    RemoveBuildingForPlayer(playerid, 1226, 2456.3672, -1662.8828, 16.4297, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2453.9609, -1653.6953, 12.6797, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2475.0000, -1653.6094, 12.7891, 0.25);
    RemoveBuildingForPlayer(playerid, 1498, 2485.6797, -1644.1094, 13.2578, 0.25);
    RemoveBuildingForPlayer(playerid, 17699, 2485.9063, -1639.3281, 16.9531, 0.25);



    return 1;
    }

    Das nativechecker Plugin muss als letztes in der server.cfg eingetragen werden, bitte einmal umändern.


    Ebenfalls einmal den Streamer updaten (Plugin/Include) und jedes Script neu compilen wo der Streamer verwendet wird.

    Okay gut, verwende das nun und es wird inserted (auch nur einmalig wie gewollt), aber scheinbar funktioniert das laden des Wertes nicht mehr ordnungsgemäß, was habe ich falsch gemacht?


    Console:


    Successfully created a connection to "ServerSettings.db".
    INSERT OR IGNORE INTO `Settings` VALUES(0, 1)
    SELECT * FROM `Settings` WHERE `pSetting` = '0'


    Tabelle:


    ID 0, pSetting 1


    Code:



    public OnFilterScriptInit()
    {
    new DBResult: query,string[144];
    query = db_query(db_handle, string);

    // Create a connection to the database
    if((db_handle = db_open("ServerSettings.db")) == DB:0)
    {
    // Error
    print("Failed to open a connection to \"ServerSettings.db\".");
    SendRconCommand("exit");
    }
    else
    {
    // Success
    db_free_result(db_query(db_handle, "CREATE TABLE IF NOT EXISTS `Settings`(`ID` INTEGER PRIMARY KEY AUTOINCREMENT, `pSetting`)"));
    print("Successfully created a connection to \"ServerSettings.db\".");
    }



    format(string, sizeof string, "INSERT OR IGNORE INTO `Settings` VALUES(0, 1)");
    db_free_result(db_query(db_handle, string));
    printf(string);



    format(string, sizeof(string), "SELECT * FROM `Settings` WHERE `pSetting` = '%d'", aSetting);
    query = db_query(db_handle, string);



    new Field[5];
    db_get_field_assoc(query, "pSetting", Field, 5);
    aSetting = strval(Field);
    printf(string);



    return 1;
    }