SA-MP Forums Archive
Check selected menu item? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Check selected menu item? (/showthread.php?tid=228782)



Check selected menu item? - DaneAMattie - 20.02.2011

Hi everyone,

How can i check what menu item is selected for a player?

Like i create a menu with 4 items, and how do i see when he just selects the item 2 or so, so NOT when he clicks it but only when its selected


AW: Check selected menu item? - Nero_3D - 20.02.2011

You cant and why would you need that ?

Maybe it could be done with OnPlayerKeyStateChange
Dont know if it is still active while using a menu


Re: AW: Check selected menu item? - DaneAMattie - 20.02.2011

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
You cant and why would you need that ?

Maybe it could be done with OnPlayerKeyStateChange
Dont know if it is still active while using a menu
yea i need it cuz when the user selects like item 2 i want the skinID to be changed as a preview of what he's selecting you know?


Re: Check selected menu item? - DaneAMattie - 20.02.2011

also i found out that when you are not spawned the menu cant be used until you spawn, any fix for this?


AW: Check selected menu item? - Nero_3D - 20.02.2011

Cant be fixed the only solution for that is that you recall the menu if he selected the item


Re: AW: Check selected menu item? - DaneAMattie - 20.02.2011

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
Cant be fixed the only solution for that is that you recall the menu if he selected the item
NVM about the 2nd problem, i already fixed that, but how do i check when a player selects a certain item?