Little problem
#1

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;
}

Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)