GPS System
#1

I tried to make this GPS (http://pastebin.com/q4dA9mpY) , but it gives me error.

GPS: http://pastebin.com/q4dA9mpY
Errors: http://pastebin.com/zZxLkmee
Reply
#2

you have to give \\ in order to use the \
PHP код:
ShowPlayerDialog(playerid,5642,DIALOG_STYLE_LIST,"{FFFFFF}Sistem de Pozitie Global",mainstring\n\\ mainstring2\n\\ mainstring3\n\\ mainstring4\n\\ mainstring5,"{FFFFFF}Selectare","{FFFFFF}Anulare"); 
Reply
#3

Not working. Same thing.
Reply
#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
#5

Is seen only the first
Reply
#6

Resolved. Thank's all.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)