Code: Select all
if (coord[0] >= "5") and (coord[0] <= "7") then [color=#000000]#####this part is temp version sorts 1st number in coordinates[/color]
for i = 0 to (STRLEN(testo)-1) [color=#000000]#####here i look for " ' " to sort by direction S or N [/color]
if (testo[i] == ",") and (testo[i+2]== "S") then [color=#000000]#### This part does not work when i run script[/color]
uo.grab(1,"finditem")
wait(500)
endif
end if
edit: Array testo consist of
Code: Select all
var testo = UO.lastgump("text",1)
Its like "Blabalabalba 63o 15' N 85o 55' W"
So can somebody give me an advice what i'm doing wrong?