Jump to content

Question

Posted

Nume: BLuE_GaMeR

Problema intalnita: deci am pus in gamemode sa se salveze kills/deaths si cand deschid serverul imi da o eroare

Ce am incercat pana acum: pai am verificat in gamemode si totul e facut bine

Codul sursa/Log/Altele:

Log (eroare data in consola):

[pawn][10:57:50] Script[gamemodes/GM]: Run time error 19: "File or function is not found"

[10:57:50] Number of vehicle models: 0[/pawn]

onplayerconnect:

[pawn]if(!dini_Exists(file))

    {

        dini_Create(file);

        dini_IntSet(file, "Kills", PlayerInfo[playerid][Kills]);

        dini_IntSet(file, "Deaths", PlayerInfo[playerid][Deaths]);

    }

    SetPlayerMoney(playerid, dini_Int(file, "Money"));

    PlayerInfo[playerid][Coins] = dini_Int(file,"Coins:");[/pawn]

onplayerdisconnect:

[pawn]dini_IntSet(file, "Kills", PlayerInfo[playerid][Kills]);

dini_IntSet(file, "Deaths", PlayerInfo[playerid][Deaths]);[/pawn]

P.S: Cand compilez gamemode-ul nu imi da nici o eroare

P.S: Am cateva masini in gamemode si inainte sa bag sa se salveze mergeau: [pawn]Number of vehicle models: 6[/pawn]

dar acum scrie 0: [pawn]Number of vehicle models: 0[/pawn] puteti observa si sus la LOG

3 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.