SA-MP Forums Archive
Help top - 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)
+--- Thread: Help top (/showthread.php?tid=575636)



Help top - BlackEvils - 28.05.2015

if(strcmp("/topgangs", cmdtext, true, 10) == 0)
{
if(InDm[playerid] >= 1) return SendClientMessage(playerid,0xFF0000FF,"ERROR:You can't use this command in a dm/event.");
if(InDm[playerid] == 0)
{
new string[1000], string2[556];
strcat(string, string2);
format(string2, 556, "{ff0000}Top 10 Gangs\n", gang1gp); strcat(string, string2);
if(gang1gp >= gang2gp && gang3gp)
{
format(string2, 556, "{FF0000}1 {ffffff}United Pirates Castle: {ff0000}%d\n", gang1gp); strcat(string, string2);
}
if(gang2gp >= gang1gp && gang3gp)
{
format(string2, 556, "{FF0000}1 {F7FF00}The Other Side: {ff0000}%d\n", gang2gp), strcat(string, string2);
}
if(gang3gp >= gang1gp && gang2gp)
{
format(string2, 556, "{FF0000}1 {F7FF00}Unknow Legends: {ff0000}%d\n", gang3gp), strcat(string, string2);
}

if(gang1gp >= gang2gp <= gang3gp)
{
format(string2, 556, "{FF0000}2 {ffffff}United Pirates Castle: {ff0000}%d\n", gang1gp); strcat(string, string2);
}
if(gang1gp <= gang2gp >= gang3gp)
{
format(string2, 556, "{FF0000}2 {ffffff}United Pirates Castle: {ff0000}%d\n", gang1gp); strcat(string, string2);
}
if(gang2gp >= gang1gp <= gang3gp)
{
format(string2, 556, "{FF0000}2 {F7FF00}The Other Side: {ff0000}%d\n", gang2gp), strcat(string, string2);
}
if(gang2gp <= gang1gp >= gang3gp)
{
format(string2, 556, "{FF0000}2 {F7FF00}The Other Side: {ff0000}%d\n", gang2gp), strcat(string, string2);
}
if(gang3gp >= gang1gp <= gang2gp)
{
format(string2, 556, "{FF0000}2 {F7FF00}Unknow Legends: {ff0000}%d\n", gang3gp), strcat(string, string2);
}
if(gang3gp <= gang1gp >= gang2gp)
{
format(string2, 556, "{FF0000}2 {F7FF00}Unknow Legends: {ff0000}%d\n", gang3gp), strcat(string, string2);
}

if(gang1gp <= gang2gp && gang3gp)
{
format(string2, 556, "{FF0000}3 {ffffff}United Pirates Castle: {ff0000}%d\n", gang1gp); strcat(string, string2);
}
if(gang2gp <= gang1gp && gang3gp)
{
format(string2, 556, "{FF0000}3 {F7FF00}The Other Side: {ff0000}%d\n", gang2gp), strcat(string, string2);
}
if(gang3gp <= gang1gp && gang2gp)
{
format(string2, 556, "{FF0000}3 {F7FF00}Unknow Legends: {ff0000}%d\n", gang3gp), strcat(string, string2);
}
format(string2, 556, "{FF0000}Top 10 Gangs\n"), strcat(string2,"" );
ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, string2, string, "Close", "");
}
return 1;
}

I need help to set it like a top with out bugs top1 top2 top3


Re: Help top - BlackEvils - 29.05.2015

UP !


Re: Help top - SoFahim - 29.05.2015

Fix your post. Then we can help


Re: Help top - BlackEvils - 29.05.2015

i want make a top with the 1st place 2nd place 3rd place

(gang1gp gang2gp gang3gp) its gang points gang1 gang2 gang3 points

i want make a top that change depending the gang points have a gang


Re: Help top - BlackEvils - 31.05.2015

up !