Započeo Obrisan korisnik
•20. Maj 2013.• Zaključano[Pomoc] Money saving
687
pregleda
15
postova
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;
}Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
523
Postovi:
44
Teme:
Pridružio se:Mar. 2013
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 😛
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
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
Forum Don
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
7,407
Postovi:
93
Teme:
Pridružio se:Nov. 2011
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");
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava
