[Pomoc] Spremanje/Citanje Score


Započeo Mladen Smiljan, Decembar 30, 2011, 17:20:35 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: >> Moj mod <<
Detaljan opis problema: Znaci radim Reg/log sistem ( Y_ini ) i napravio sam za spremanje/citanje novca, i napravio sam za citanje score, novac zeli, a score nece
Dio skripte:
Znaci samo trebamza score, Novac radi:
enum pInfo
{
    pScore,
    pCash,
}


new INI:File = INI_Open(UserPath(playerid));
                INI_SetTag(File,"data");
                INI_WriteInt(File,"Score",0);
                INI_WriteInt(File,"Cash",0);
                INI_Close(File);



Evo za Citanje i Spremanje Public:

public SaveAccountInfo(playerid)
{
    new INI:File = INI_Open(UserPath(playerid));
    INI_SetTag(File,"data");
    INI_WriteInt(File,"Score",GetPlayerScore(playerid));
    INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
    INI_Close(File);
	return 1;
}


public LoadUser_data(playerid,name[],value[])
{
    INI_Int("Score",PlayerInfo[playerid][pScore]);
    INI_Int("Cash",PlayerInfo[playerid][pCash]);
	return 1;
}


Trenutni projekt: NightLife Roleplay

Bizz System 40%
House System 70%
Car Ownership 20%
Log/reg System 100%
Poslovi 20%
Anticheat 0%
Organizacije 50%
Event System 0%
Komande 20%


Znaci Imam Score i Cash..
Cash se sprema / Cita, a score ne..
PA sad neznam u cemu sam pogrijesio naprvio sma sve isto ko i za cash, ali score ne zeli citati / spremati!
Trenutni projekt: NightLife Roleplay

Bizz System 40%
House System 70%
Car Ownership 20%
Log/reg System 100%
Poslovi 20%
Anticheat 0%
Organizacije 50%
Event System 0%
Komande 20%

pa jesi si probao podic score sa nekom komandom i onda? kolko ja vidim sve si uredu napravio samo stavi kad se logira SetPlayerScore(playerid,PlayerInfo[playerid][pScore]);

Evo sad sam isporbo s Komandom /score..
Sprema se, a kad dodam
SetPlayerScore(playerid,PlayerInfo[playerid][pScore]);
onda se i cita..
Trenutni projekt: NightLife Roleplay

Bizz System 40%
House System 70%
Car Ownership 20%
Log/reg System 100%
Poslovi 20%
Anticheat 0%
Organizacije 50%
Event System 0%
Komande 20%


Da radi..
Hvala
Trenutni projekt: NightLife Roleplay

Bizz System 40%
House System 70%
Car Ownership 20%
Log/reg System 100%
Poslovi 20%
Anticheat 0%
Organizacije 50%
Event System 0%
Komande 20%