10.10.2015, 10:28
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 Float: fDistance = GetPlayerDistanceFromPoint(playerid, -2265.9446,236.7936,35.3096);
new coordsstring[256], mainstring[500];
format(coordsstring, sizeof(coordsstring), "{FFFFFF}DMV Distanta: %f", fDistance);
strcat(mainstring, coordsstring);
new coordsstring2[256], mainstring2[500];
new Float: fDistance2 = GetPlayerDistanceFromPoint(playerid, -2033.3480,148.4637,28.8359);
format(coordsstring2, sizeof(coordsstring), "\n\\{FFFFFF}24/7 Distanta: %f", fDistance2);
strcat(mainstring2, coordsstring);
new coordsstring3[256], mainstring3[500];
new Float: fDistance3 = GetPlayerDistanceFromPoint(playerid, -2224.3142,329.1097,35.3203);
format(coordsstring3, sizeof(coordsstring), "\n\\{FFFFFF}GunShop Distanta: %f", fDistance3);
strcat(mainstring3, coordsstring);
new coordsstring4[256], mainstring4[500];
new Float: fDistance4 = GetPlayerDistanceFromPoint(playerid, -2215.4094,199.0377,35.3203);
format(coordsstring4, sizeof(coordsstring), "\n\\{FFFFFF}Magazin Licente Distanta: %f", fDistance4);
strcat(mainstring4, coordsstring);
new coordsstring5[256], mainstring5[500];
new Float: fDistance5 = GetPlayerDistanceFromPoint(playerid, -2442.7661,754.8850,35.1719);
format(coordsstring5, sizeof(coordsstring), "\n\\{FFFFFF}Inchirieri Masini Distanta: %f", fDistance5);
strcat(mainstring5, coordsstring);
ShowPlayerDialog(playerid, 5642,DIALOG_STYLE_LIST,"{FFFFFF}Sistem de Pozitie Global",coordsstring,"{FFFFFF}Selectare","{FFFFFF}Anulare");
}
}