I need help with this - 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: I need help with this (
/showthread.php?tid=215565)
I need help with this -
Steven Paul - 23.01.2011
Like in MTA, there is a dialog shown when you press
F5. Will it be possible if I can show a
DIALOG_STYLE_MSGBOX when player press
F5
EDIT : Can i use this ASCII code in sa-mp
00111111
Re: I need help with this -
Alex_Valde - 23.01.2011
In the future - probably yes.
Now - nope.
Because you can't detect 'F5', you can only detect
these keys.
Re: I need help with this -
Steven Paul - 23.01.2011
i think it's possible with American Standard Code for Information Interchange
EDIT : It would be possible when player press "K" key then the DIALOG_STYLE_MSGBOX will be shown
Re: I need help with this -
Alex_Valde - 23.01.2011
I know what ASCII means.
Well, you can try, but as far as I know it's not possible.
Re: I need help with this -
Steven Paul - 24.01.2011
so who to put ascii code in pawno? I need the thing that when player press "K" key then it would showed up a "DIALOG_STYLE_MSGBOX"
Re: I need help with this -
bartje01 - 24.01.2011
Quote:
Originally Posted by Steven Paul
so who to put ascii code in pawno? I need the thing that when player press "K" key then it would showed up a "DIALOG_STYLE_MSGBOX"
|
As Alex said, "Impossible"
For now.
Re: I need help with this -
Alex_Valde - 24.01.2011
I'm just gonna say to you - really hard.
And + I think client doesn't support your editing/remaking buttons. So...
What's wrong with using standard buttons?
I know there is now 'K' button but it's the only thing that you got left.
Re: I need help with this -
iggy1 - 24.01.2011
Quote:
Originally Posted by Steven Paul
so who to put ascii code in pawno? I need the thing that when player press "K" key then it would showed up a "DIALOG_STYLE_MSGBOX"
|
Something you should understand PAWN isn't just used for sa-mp and not being able to check for other buttons is completely sa-mp related. It wouldn't be a very good language if it didn't support at least one full charachter set. The callback "OnPlayerKeyStateChange" is only called when one of the
watched keys is pressed. Other keys exist in PAWN they are just not used by sa-mp.