little question
#1

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

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
Reply
#3

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)
Reply
#4

Thanks for reply both of you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)