Sos bottle message sort script (syntaxes issues)
Posted: 2010-03-10 10:30:20
Hi there, i'm writing at this moment a script for sorting sos bottle messages. But i have a huge knowledge leak at basic (or what language is it). So can someone help me with syntaxes in this part of code:
edit: Array testo consist of
Its like "Blabalabalba 63o 15' N 85o 55' W"
So can somebody give me an advice what i'm doing wrong?
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?