[Help] Order Alphabetic a Dialog
#1

Hello guys, how can I alphabetically order a string on a dialog? thx friends +rep

This is my code:

PHP код:
if(IsPlayerInRangeOfPoint(playerid4.0, -118.4777,-1208.6708,4.5859))//F1
    
{
        if(
PRESSED(KEY_SECONDARY_ATTACK))
        {
        if(
Giocatore[playerid][Costruttore]==1) return SendClientMessage(playerid,ROSSO,"[ERROR:] {FFFFFF}You are in builder mode.");
        
format(stringa,sizeof(stringa),"");
        for(new 
i=0;i<=GareCaricatei++)
         {
         if(
Gara[i][Giri]>&& Gara[i][Inseguimento]==0)
         
format(stringa2,sizeof(stringa2),"{F58C5B}{FFFFFF}%s (%d laps)",Gara[i][Nome],Gara[i][Giri]);
         if(
Gara[i][Giri]==&& Gara[i][Inseguimento]==0)
         
format(stringa2,sizeof(stringa2),"{97EA68}{FFFFFF}%s",Gara[i][Nome]);
         if(
Gara[i][Giri]>&& Gara[i][Inseguimento]==1)
         
format(stringa2,sizeof(stringa2),"{446ED1}{FFFFFF}%s (%d laps)",Gara[i][Nome],Gara[i][Giri]);
         if(
Gara[i][Giri]==&& Gara[i][Inseguimento]==1)
         
format(stringa2,sizeof(stringa2),"{446ED1}{FFFFFF}%s",Gara[i][Nome]);
         
strins(stringa,stringa2,strlen(stringa),sizeof(stringa));
         if(
i!=GareCaricate)
         
strins(stringa,"\nAzukay\nEstoril\nForest\nMonaco\n",strlen(stringa),sizeof(stringa));
         }
        
ShowPlayerDialog(playerid2DIALOG_STYLE_LIST"Circuits",stringa "Select""Cancel");
               return 
1;
    }} 
Reply


Messages In This Thread
[Help] Order Alphabetic a Dialog - by bookknp - 22.03.2019, 21:07
Re: [Help] Order Alphabetic a Dialog - by TheToretto - 22.03.2019, 21:26
Re: [Help] Order Alphabetic a Dialog - by bookknp - 22.03.2019, 21:27
Re: [Help] Order Alphabetic a Dialog - by antixgaming - 22.03.2019, 21:53
Re: [Help] Order Alphabetic a Dialog - by bookknp - 22.03.2019, 22:15

Forum Jump:


Users browsing this thread: 1 Guest(s)