28.06.2011, 14:04
Make sure that the code is inside of the OnPlayerCommandText callback.
For creating dialogs you should take a look at the corresponding wiki pages:
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
https://sampwiki.blast.hk/wiki/OnDialogResponse
For creating dialogs you should take a look at the corresponding wiki pages:
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
https://sampwiki.blast.hk/wiki/OnDialogResponse