Server Freezes When Someone Connects [+REP].
#5

Youssef you should now make your own admin system lux admin system is outdated
pawn Код:
if(dini_Exists(file)) { // If the file exist
        SetPlayerScore(playerid, dini_Int(file, "Score"));
        SetPlayerMoney(playerid, dini_Int(file, "Money"));
        LPinfo[playerid][Drugs] = dini_Int(file,"Drugs");
        LPinfo[playerid][Adre] = dini_Int(file,"Adrenaline Pills");
        BankMoney[playerid] = dini_Int(file,"BankMoney");
        Favouritesong[playerid] = dini_Int(file,"SongID");
    }
    else {
        dini_Create(file); // Create the file
        dini_IntSet(file, "Score", 0); // Set's "Score"
        dini_IntSet(file, "Money", 0); // Set's "Money"
        dini_IntSet(file, "Drugs", LPinfo[playerid][Drugs]); // Set's "Kills"
        dini_IntSet(file, "Adrenaline Pills", LPinfo[playerid][Adre]); // Set's "Kills"
        dini_IntSet(file, "BankMoney", BankMoney[playerid]); // Set's "Kills"
        dini_IntSet(file, "SongID", Favouritesong[playerid]); // Set's "Kills"
        SetPlayerScore(playerid, dini_Int(file, "Score")); // This describes where to load the score
        SetPlayerMoney(playerid, dini_Int(file, "Money")); // This describes where to load the money
        // the same thing
    } // This get's the length of the player name
why not make it on player register ??
dam i don't know how dini works
try making this all one gamemode or change return 1; to return 0;
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)