Getting name from dialog
#1

Hey!

Currently working on textdraw based report system.

Thats pastebin on how I made dialog: https://pastebin.com/2YGvhAPj

and then under OnDialogResponse I got this: https://pastebin.com/zRna6GdT

But it does not get the player's name that is selected. Might be dumb mistake but how to fix it.. also am I displaying dialog good in first place since im only one in server it shows my name but im not sure if its gonna show others =)

Ty for help
Reply
#2

new selectedplayer[MAX_PLAYER_NAME];

Shouldn't that be globally declared?

Where's the sense if you're using it only in OnDialogResponse?
The player will response, and the array is right away after he closed the dialog.
Reply
#3

Change "listitem" to "inputtext" in the format function.
Reply
#4

as you can see I got "//" infront so im not using it =)
Reply
#5

Also read firstly please the wiki:

https://sampwiki.blast.hk/wiki/OnDialogResponse

Getting the name is pretty easy if you'd just care about the documentation.
Reply
#6

Lmao.. I literally cant think today.. ty tho
Reply
#7

Quote:
Originally Posted by NoteND
Посмотреть сообщение
as you can see I got "//" infront so im not using it =)
As you can see, I'm helping you so where's the problem? First learn basic functions. Beginning with FS would be probably better for you.

Otherwise I can only suggest you to read this really good information thread:

https://sampforum.blast.hk/showthread.php?tid=646264

His structure makes sense and helped me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)