[POMOC]Problem sa listom

Započeo Plen Ki Mun
20. Jul 2016. Zaključano
193
pregleda
3
postova
Mate
5
Underboss
20. Jul 2016.
Skripta koju koristim: Moja
Detaljan opis problema: Pa ovako kada netko upise /toplist prikazuje se samo njegova imena iako on nije najbogatiji ili ima najveci skor znaci tako se pokazuje za svakog igraca!
Dio skripte:
CMD:toplist(playerid, params[])
{
new string6;
new string7;
new string8;
new string9;
    new name, player1, h, m, s;
    GetPlayerName(playerid, name, sizeof(name));
    TotalGameTime(playerid, h, m, s);
format(string6, sizeof(string6), "{00c0ff}_______________________________________________________");
format(string7, sizeof(string7), "{b5b6b5}Most Active player |{FFFFFF} %s | TimePlayed: [%d] hrs [%d] mins [%d]\n\n{b5b6b5}Most Rich player |{FFFFFF} %s | Cash: $%d",name, h, m, s, name, GetPlayerMoney(player1));
format(string8, sizeof(string8), "{b5b6b5}Player with most Kills |{FFFFFF} %s | Kills: %d\n\n{b5b6b5}Player with most Score |{FFFFFF} %s | Score: %d",name, Float:PlayerInfo, name, GetPlayerScore(player1));
format(string9, sizeof(string9), "%s\n\n\n%s\n\n%s\n%s",string6, string7, string8);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "{F81414}{FFFFFF}Top List", string9, "Close", "");
return 1;
}


Neke slike/video za lakse dobivanje pomoci(neobavezno):
Rudimental
5
OG Legend
20. Jul 2016.
Evo ti kako da uradis top listu http://forum.sa-mp.com/showpost.php?p=1092420&postcount=1760
Mate
5
Underboss
20. Jul 2016.
Imam nesto ovo
CMD:topscores(playerid,params[]) {
    #pragma unused params
new string, Slot1 = -1, Slot2 = -1, Slot3 = -1, Slot4 = -1, HighestCash = -9999;
SendClientMessage(playerid,COLOR_WHITE,"Top Scorers:");

for(new x=0; x= HighestCash) {
HighestCash = GetPlayerScore(x);
Slot1 = x;
}
HighestCash = -9999;
for(new x=0; x= HighestCash) {
HighestCash = GetPlayerScore(x);
Slot2 = x;
}
HighestCash = -9999;
for(new x=0; x= HighestCash) {
HighestCash = GetPlayerScore(x);
Slot3 = x;
}
HighestCash = -9999;
for(new x=0; x= HighestCash) {
HighestCash = GetPlayerScore(x);
Slot4 = x;
}
format(string, sizeof(string), "(%d) %s - %d - Rank: %s", Slot1,PlayerName2(Slot1),GetPlayerScore(Slot1), GetRankName(Slot1) );
SendClientMessage(playerid,COLOR_WHITE,string);
if(Slot2 != -1) {
format(string, sizeof(string), "(%d) %s - %d - Rank: %s", Slot2,PlayerName2(Slot2),GetPlayerScore(Slot2), GetRankName(Slot2));
SendClientMessage(playerid,COLOR_WHITE,string);
}
if(Slot3 != -1) {
format(string, sizeof(string), "(%d) %s - %d - Rank: %s", Slot3,PlayerName2(Slot3),GetPlayerScore(Slot3), GetRankName(Slot3) );
SendClientMessage(playerid,COLOR_WHITE,string);
}
if(Slot4 != -1) {
format(string, sizeof(string), "(%d) %s - %d - Rank: %s", Slot4,PlayerName2(Slot4),GetPlayerScore(Slot4), GetRankName(Slot4) );
SendClientMessage(playerid,COLOR_WHITE,string);
}
return 1;
}


Kako to ubacim u top listu kao te slotove ;/

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha