Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Qiyamet poslato April 23, 2022, 19:05:21 POSLE PODNE

Naslov: inputtext float coordinata
Poruka od: Qiyamet poslato April 23, 2022, 19:05:21 POSLE PODNE
Problem(error/warning): Pravim dialog za postavljanje coordinat ( rucno upisivanje ), kako da inputtext vratim kao float tj. imam problem kod sacuvanja, inputtext mi sacuva kao integer, ne sacuva mi iza . coordinate nikako.
Deo skripte:
Pawno Code:
case DIALOG_Interior_X:   {
         if( !response )   {
            format(STRING_Heading, sizeof(STRING_Heading), ""color_error"EDITOVANJE INTERIORA ["color_white"%i"color_error"]", INTERIOR_Editing_ID[playerid]);
             format(STRING_Body, sizeof(STRING_Body), ""color_rgblue"[1]"color_gray" Naziv\t\t"color_white"%s\n"color_rgblue"[2]"color_gray" Interior ID\t\t"color_white"%i\n"color_rgblue"[3]"color_gray" Spawn X\t\t"color_white"%f\n"color_rgblue"[4]"color_gray" Spawn Y\t\t"color_white"%f\n"color_rgblue"[5]"color_gray" Spawn Z\t\t"color_white"%f\n"color_rgblue"[6]"color_gray" Spawn A\t\t"color_white"%f", InteriorInfo[INTERIOR_Editing_ID[playerid]][INTERIOR_Name], InteriorInfo[INTERIOR_Editing_ID[playerid]][INTERIOR_ID], InteriorInfo[INTERIOR_Editing_ID[playerid]][INTERIOR_Spawn_X],  InteriorInfo[INTERIOR_Editing_ID[playerid]][INTERIOR_Spawn_Y],  InteriorInfo[INTERIOR_Editing_ID[playerid]][INTERIOR_Spawn_Z],  InteriorInfo[INTERIOR_Editing_ID[playerid]][INTERIOR_Spawn_A]);
             ShowPlayerDialog(playerid, DIALOG_Interior_Edit, DIALOG_STYLE_LIST, STRING_Heading, STRING_Body, ""color_white"Izaberi", ""color_error"Nazad");
         }
         if( response )   {
            InteriorInfo[INTERIOR_Editing_ID[playerid]][INTERIOR_Spawn_X] = strval(inputtext);
            SaveInterior(INTERIOR_Editing_ID[playerid]);
            format(string, sizeof(string), ""color_white"%s"color_gray" je promijenio "color_white"Spawn X"color_gray" za "color_white"%s", PlayerNameFromID(playerid), InteriorInfo[INTERIOR_Editing_ID[playerid]][INTERIOR_Name]);
            SendClientMessageToRCON(string);
            format(STRING_Heading, sizeof(STRING_Heading), ""color_error"EDITOVANJE INTERIORA ["color_white"%i"color_error"]", INTERIOR_Editing_ID[playerid]);
             format(STRING_Body, sizeof(STRING_Body), ""color_rgblue"[1]"color_gray" Naziv\t\t"color_white"%s\n"color_rgblue"[2]"color_gray" Interior ID\t\t"color_white"%i\n"color_rgblue"[3]"color_gray" Spawn X\t\t"color_white"%f\n"color_rgblue"[4]"color_gray" Spawn Y\t\t"color_white"%f\n"color_rgblue"[5]"color_gray" Spawn Z\t\t"color_white"%f\n"color_rgblue"[6]"color_gray" Spawn A\t\t"color_white"%f", InteriorInfo[INTERIOR_Editing_ID[playerid]][INTERIOR_Name], InteriorInfo[INTERIOR_Editing_ID[playerid]][INTERIOR_ID], InteriorInfo[INTERIOR_Editing_ID[playerid]][INTERIOR_Spawn_X],  InteriorInfo[INTERIOR_Editing_ID[playerid]][INTERIOR_Spawn_Y],  InteriorInfo[INTERIOR_Editing_ID[playerid]][INTERIOR_Spawn_Z],  InteriorInfo[INTERIOR_Editing_ID[playerid]][INTERIOR_Spawn_A]);
             ShowPlayerDialog(playerid, DIALOG_Interior_Edit, DIALOG_STYLE_LIST, STRING_Heading, STRING_Body, ""color_white"Izaberi", ""color_error"Nazad");
         }
      }

Slika/video ingame problema(obavezno ako je ingame problem): //
Naslov: Odg: inputtext float coordinata
Poruka od: Qiyamet poslato April 23, 2022, 19:13:21 POSLE PODNE
rijesio problem
floatstr(inputtext)