04.09.2011, 23:53
(
Последний раз редактировалось gamer931215; 05.09.2011 в 00:35.
)
Quote:
Nice work.
Looking at pastebin i saw this: Код:
if(dialogid > MAX_DIALOGS) Add also Код:
|| dialogid < 0 |
Quote:
One of the major drawbacks to the current dialog system is it's reliance on explicit IDs, instead of creating a dialog and having it return the ID of the slot in which it is created. That would IMHO be the first thing to sort out in a dialog script.
|
Well i tried adding this, but caught a few problems with this since "DIALOG:variable" doesnt work, and if people use filterscripts NOT created by themself it will CREATE conflicting ID's because it isnt allowing users to pick there own id instead of "fixing" this common problem.
Example:
pawn Код:
//This will work:
DIALOG:1337(parameters)
{
}
//This wont work:
#define test 1337
DIALOG:test(parameters)
{
}