[Pomoc] Money saving

Započeo Obrisan korisnik
20. Maj 2013. Zaključano
631
pregleda
15
postova
Deleted User
Obrisan korisnik
20. Maj 2013.
Skripta koju koristim : moja od 0
Opis problema : kad izadjem sa servera,restartiram ga, ugasim nezacuvaju mi se pare
Deo skripte : /
Slika problema :
xyzcod2
5
Underboss
20. Maj 2013.
daj da vidim kako spremas pare
Mish26
4
Shot Caller
20. Maj 2013.
Mozda se i cuvaju, nego da li si stavio da igracu da pare kad se uloguje?
Deleted User
Obrisan korisnik
20. Maj 2013.
koji deo ocete?
Bugi
5
Crime Lord
20. Maj 2013.
Ono pod onplayerdisconnect sa INI_Write sto pocinje
xyzcod2
5
Underboss
20. Maj 2013.
daj onplayerdisconnect
Deleted User
Obrisan korisnik
20. Maj 2013.

public OnPlayerDisconnect(playerid, reason)
{
if(IsBeingSpeced == 1)
    {
        foreach(Player,i)
        {
            if(spectatorid == playerid)
            {
                TogglePlayerSpectating(i, 0);
            }
        }
    }
new INI:File = INI_Open(UserPath(playerid));
    INI_SetTag(File,"data");
    INI_WriteInt(File,"Admin",PlayerInfo);
    INI_WriteInt(File,"VIP",PlayerInfo);
    INI_WriteInt(File,"Wanted",GetPlayerWantedLevel(playerid));
    INI_WriteInt(File,"Kills",PlayerInfo);
    INI_WriteInt(File,"Deaths",PlayerInfo);
    INI_WriteInt(File,"Jailed",PlayerInfo);
    INI_WriteInt(File,"Muted",PlayerInfo);
    INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
INI_WriteInt(File,"Score",GetPlayerScore(playerid));
INI_WriteInt(File,"Banned",PlayerInfo);
    INI_Close(File);

    IsOnDuty = 0;
    IsGodMode = 0;
    onlinepl--;
return 1;
}
xyzcod2
5
Underboss
20. Maj 2013.
Yakavetta wrote on May 20, 2013, 3:20 pm:

public OnPlayerDisconnect(playerid, reason)
{
if(IsBeingSpeced == 1)
    {
        foreach(Player,i)
        {
            if(spectatorid == playerid)
            {
                TogglePlayerSpectating(i, 0);
            }
        }
    }
new INI:File = INI_Open(UserPath(playerid));
    INI_SetTag(File,"data");
    INI_WriteInt(File,"Admin",PlayerInfo);
    INI_WriteInt(File,"VIP",PlayerInfo);
    INI_WriteInt(File,"Wanted",GetPlayerWantedLevel(playerid));
    INI_WriteInt(File,"Kills",PlayerInfo);
    INI_WriteInt(File,"Deaths",PlayerInfo);
    INI_WriteInt(File,"Jailed",PlayerInfo);
    INI_WriteInt(File,"Muted",PlayerInfo);
    INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
INI_WriteInt(File,"Score",GetPlayerScore(playerid));
INI_WriteInt(File,"Banned",PlayerInfo);
    INI_Close(File);

    IsOnDuty = 0;
    IsGodMode = 0;
    onlinepl--;
return 1;
}

ovo mi  se cini ok.
Ajde pogledaj u igracev fajl kolko ima,pa mu stavi na 100$,ako mu kad udes u igru bude 0$ idi pogledaj FS koje imas mozda gdje imas GivePlayerMoney(playerid,0); ili nesto,tako ja imo 😛
Deleted User
Obrisan korisnik
20. Maj 2013.
ma ima sve to FS nekoristim .... evo uzeo sam prethodnu verziju tamo radi mozda je do neki sistem sto sam ubacio a isto za Age pravi problema uvek pise da imas jednu godinu
Blaeks_Biofor
5
Forum Don
20. Maj 2013.
da li ti ucitavas novac ? posto ga spremas funkcijom getplayermoney, ne mozes ga ucitavati varijablom nego takodje istom funkcijom
Deleted User
Obrisan korisnik
20. Maj 2013.
ma uredu je sredio sam to poprecavali mi neki stvari u registraciji nego da neznas neki EXP/LEVEL system do sad sam hiljadu promenio i FS i pravio po tutovima sve dobro ali exp nikad ne stigne
Blaeks_Biofor
5
Forum Don
Deleted User
Obrisan korisnik
20. Maj 2013.
 D:\Balkan SpeeD RP x6\gamemodes\grandlarc.pwn(55) : warning 201: redefinition of constant/macro (symbol "PATH")
D:\Balkan SpeeD RP x6\gamemodes\grandlarc.pwn(355) : error 017: undefined symbol "dini_Exists"
D:\Balkan SpeeD RP x6\gamemodes\grandlarc.pwn(357) : error 017: undefined symbol "dini_Create"
D:\Balkan SpeeD RP x6\gamemodes\grandlarc.pwn(2037) : warning 202: number of arguments does not match definition
D:\Balkan SpeeD RP x6\gamemodes\grandlarc.pwn(2045) : warning 202: number of arguments does not match definition
D:\Balkan SpeeD RP x6\gamemodes\grandlarc.pwn(2052) : warning 202: number of arguments does not match definition
D:\Balkan SpeeD RP x6\gamemodes\grandlarc.pwn(2056) : warning 202: number of arguments does not match definition
D:\Balkan SpeeD RP x6\gamemodes\grandlarc.pwn(2242) : error 017: undefined symbol "dini_IntSet"
D:\Balkan SpeeD RP x6\gamemodes\grandlarc.pwn(2249) : error 017: undefined symbol "dini_IntSet"
D:\Balkan SpeeD RP x6\gamemodes\grandlarc.pwn(2255) : error 017: undefined symbol "dini_IntSet"
D:\Balkan SpeeD RP x6\gamemodes\grandlarc.pwn(2261) : error 017: undefined symbol "dini_IntSet"
D:\Balkan SpeeD RP x6\gamemodes\grandlarc.pwn(2264) : error 017: undefined symbol "dini_Int"
D:\Balkan SpeeD RP x6\gamemodes\grandlarc.pwn(2266) : error 017: undefined symbol "dini_Int"
D:\Balkan SpeeD RP x6\gamemodes\grandlarc.pwn(2453) : warning 203: symbol is never used: "ScoreOld"
D:\Balkan SpeeD RP x6\gamemodes\grandlarc.pwn(2453) : warning 203: symbol is never used: "levelexp"
Pawn compiler 3.2.3664

Izbacuje mi ove errore warninzi nisu vazni to nije od ovog sistema
Evo i deo skripte gde izbacuje
SetPlayerExp(playerid, exp)
{
        dini_IntSet(PFile(playerid), "Exp", exp);
        PlayerInfo = exp;
}

GivePlayerExp(playerid, exp)
{
    PlayerInfo += exp;
    dini_IntSet(PFile(playerid), "Exp", PlayerInfo);
}

SetPlayerLevel(playerid, level)
{
    PlayerInfo = level;
    dini_IntSet(PFile(playerid), "Level", PlayerInfo);
}

GivePlayerLevel(playerid, level)
{
    PlayerInfo += level;
    dini_IntSet(PFile(playerid), "Level", PlayerInfo);
}

stock GetPlayerExp(playerid) return dini_Int(PFile(playerid), "Exp");

stock GetPlayerLevel(playerid) return dini_Int(PFile(playerid), "Level");
Deleted User
Obrisan korisnik
20. Maj 2013.
Edit: Reseno moze lock

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha