Opis problema : kad izadjem sa servera,restartiram ga, ugasim nezacuvaju mi se pare
Deo skripte : /
Slika problema :
Naš forum je uspješno migriran na novu platformu. Svi vaši podaci, računi i sadržaj su prebačeni na GTABLKN.
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;
}
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;
} 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 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