Help verification hack

borizona

New member
Joined
Jun 16, 2025
Messages
4
Reaction score
0
Hello, can someone make me a verification script that works like this: it's about capital cities.
The verification shows you a country – for example, "Slovenije" – and you have to click on the correct capital, like "Ljubljana".


Examples of country-capital pairs that should be included in the verification are:



  • Slovacka – Bratislava
  • Serbije – Belgrade
  • Bosne i Hercegovine – Sarajevo
  • Hrvatske – Zagreb
  • Spanije – Madrid
  • Crno Gore – Podgorica
  • Slovenije- Ljubljana

 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,346
Solutions
7
Reaction score
952
Location
Lithuania
Easy to make, but require time, so i can't help you.
But there's what you need using CLEO and SAMPFUNCS.:
PHP:
//get number of dialog elements
0B54: samp 1@ = listbox_items_count

//substract one from total cout
1@ -= 1 //last item is actually the null terminator

chatmsg "num of elements %d" -1 1@

for 0@ = 0 to 1@
alloc 2@ = 256
0B5B: samp get_listbox_item 0@ text_to 2@    
chatmsg "element %d - text: %s" -1 0@ 2@
free 2@
end
PHP:
0C29: 2@ = stristr string1 0@ string2 1@
0B49: samp set_current_dialog_list_item 1@
 
Top