SA-MP Forums Archive
little question - 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: little question (/showthread.php?tid=272646)



little question - kingchandio - 29.07.2011

What is function of 2000 and 2001 after define?
pawn Код:
#define DIALOG_REGISTER 2000
#define DIALOG_LOGIN 2001



Re: little question - Jeffry - 29.07.2011

This is just the dialog ID which you have to set at:
https://sampwiki.blast.hk/wiki/ShowPlayerDialog

Params:
(playerid, dialogid, style, caption[], info[], button1[], button2[])

dialogid would be 2000 / 2001 then.

IDs from 0-32767 are possible. Any negative ID will close the opened dialog.


Jeffry


Re: little question - Lorenc_ - 29.07.2011

You're defining something using the PAWN pre-processor, meaning the little pharse 'DIALOG_REGISTER' has a value of the number you choosen (2000)

Check this out

PAWN Pre-Processor (Part 1)


Re: little question - kingchandio - 29.07.2011

Thanks for reply both of you.