GPS System
#4

sure you can't add the \n cause you are not in type mode you did not add " " i think the below code have to work well >>

PHP код:
if(strcmp(cmd"/gps"true) == 0)
        {
            if(
IsPlayerConnected(playerid))
            {
                new 
FloatfDistance GetPlayerDistanceFromPoint(playerid, -2265.9446,236.7936,35.3096);
                new 
coordsstring[256], mainstring[500];
                
format(coordsstringsizeof(coordsstring), "{FFFFFF}DMV                          Distanta: %f"fDistance);
                
strcat(mainstringcoordsstring);
                new 
coordsstring2[256], mainstring2[500];
                new 
FloatfDistance2 GetPlayerDistanceFromPoint(playerid, -2033.3480,148.4637,28.8359);
                
format(coordsstring2sizeof(coordsstring), "\n\\{FFFFFF}24/7                         Distanta: %f"fDistance2);
                
strcat(mainstring2coordsstring);
                new 
coordsstring3[256], mainstring3[500];
                new 
FloatfDistance3 GetPlayerDistanceFromPoint(playerid, -2224.3142,329.1097,35.3203);
                
format(coordsstring3sizeof(coordsstring), "\n\\{FFFFFF}GunShop                      Distanta: %f"fDistance3);
                
strcat(mainstring3coordsstring);
                new 
coordsstring4[256], mainstring4[500];
                new 
FloatfDistance4 GetPlayerDistanceFromPoint(playerid, -2215.4094,199.0377,35.3203);
                
format(coordsstring4sizeof(coordsstring), "\n\\{FFFFFF}Magazin Licente              Distanta: %f"fDistance4);
                
strcat(mainstring4coordsstring);
                new 
coordsstring5[256], mainstring5[500];
                new 
FloatfDistance5 GetPlayerDistanceFromPoint(playerid, -2442.7661,754.8850,35.1719);
                
format(coordsstring5sizeof(coordsstring), "\n\\{FFFFFF}Inchirieri Masini            Distanta: %f"fDistance5);
                
strcat(mainstring5coordsstring);
                
ShowPlayerDialog(playerid,      5642,DIALOG_STYLE_LIST,"{FFFFFF}Sistem de Pozitie Global",coordsstring,"{FFFFFF}Selectare","{FFFFFF}Anulare");
            }
        } 
Reply


Messages In This Thread
GPS System - by anonimus22222 - 10.10.2015, 09:46
Re: GPS System - by AbyssMorgan - 10.10.2015, 09:57
Re: GPS System - by anonimus22222 - 10.10.2015, 10:01
Re: GPS System - by jlalt - 10.10.2015, 10:28
Re: GPS System - by anonimus22222 - 10.10.2015, 15:27
Re: GPS System - by anonimus22222 - 10.10.2015, 16:06

Forum Jump:


Users browsing this thread: 1 Guest(s)