SA-MP Forums Archive
Little problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Little problem (/showthread.php?tid=134813)



Little problem - RenisiL - 17.03.2010

I have one problem, how to rise 1 level as I do to remove the old points exp?

Quote:

public TikrinaLygi(playerid)
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if (PlayerData[i][exp] > 799)
{
new Vardas[MAX_PLAYER_NAME], DiniFailas[128];
GetPlayerName(playerid, Vardas, sizeof(Vardas));
format(DiniFailas, sizeof(DiniFailas), "/Vartotojai/%s.ini", Vardas);
dini_IntSet(DiniFailas, "Lygis", PlayerData[i][Lygis]);
dini_IntSet(DiniFailas, "exp", PlayerData[i][exp]);

PlayerData[i][Lygis] = PlayerData[i][Lygis]+1;
SendClientMessage(i, COLOR_ZALIA, "_____________________________________________ _");
SendClientMessage(i, COLOR_ZALIA, "INFO: Sveikiname Jus! Jus pasikelete kita lygi!");
dini_IntSet(DiniFailas, "exp", 0);
new string[128];
format(string,128,"INFO: Tavo Naujas lygis yra: %d",PlayerData[i][Lygis]);
SendClientMessage(i, COLOR_ZALIA, string);
SendClientMessage(i, COLOR_ZALIA, "_____________________________________________ _");
}
}
}
return 1;
}




Re: Little problem - Deat_Itself - 17.03.2010

i do not get you ? what are you saying about ?