[Include] gDialog - Easyer way of managing dialogs!
#5

Quote:
Originally Posted by Phanto90
Посмотреть сообщение
Nice work.
Looking at pastebin i saw this:
Код:
if(dialogid > MAX_DIALOGS)
I don't know if it is possibile as i never tried for a dialog, but with this condition users can CreateDialogs with negative numbers, and obviously won't work in an array.
Add also
Код:
|| dialogid < 0
:P
Healthy people will not use id's below zero anyway, if they would they should seriously think about following some tutorials about how to script.

Quote:
Originally Posted by ******
Посмотреть сообщение
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.
You mean i should automaticly let it create id's so people cannot make mistakes with this anymore ?
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)
{

}
Same story with the variables... gotto fix that somehow before getting a id system to work.
Reply


Messages In This Thread
gDialog - Easyer way of managing dialogs! - by gamer931215 - 04.09.2011, 22:34
Re: gDialog - Easyer way of managing dialogs! - by FireCat - 04.09.2011, 22:36
Re: gDialog - Easyer way of managing dialogs! - by [MNC]Azz - 04.09.2011, 23:31
Re: gDialog - Easyer way of managing dialogs! - by Phanto90 - 04.09.2011, 23:35
Re: gDialog - Easyer way of managing dialogs! - by gamer931215 - 04.09.2011, 23:53
Re: gDialog - Easyer way of managing dialogs! - by Darnell - 05.09.2011, 10:59
Re: gDialog - Easyer way of managing dialogs! - by Kaperstone - 05.09.2011, 15:22
Re: gDialog - Easyer way of managing dialogs! - by Gh0sT_ - 05.09.2011, 15:24
Re: gDialog - Easyer way of managing dialogs! - by Sascha - 06.09.2011, 11:03
Re: gDialog - Easyer way of managing dialogs! - by Gh0sT_ - 06.09.2011, 12:59
Re: gDialog - Easyer way of managing dialogs! - by gamer931215 - 06.09.2011, 14:30
Re: gDialog - Easyer way of managing dialogs! - by Gh0sT_ - 06.09.2011, 15:48
Re: gDialog - Easyer way of managing dialogs! - by Gamer_Z - 08.09.2011, 16:32
Re: gDialog - Easyer way of managing dialogs! - by gamer931215 - 08.09.2011, 16:55
AW: gDialog - Easyer way of managing dialogs! - by Nanory - 08.09.2011, 19:40
Re: gDialog - Easyer way of managing dialogs! - by Gamer_Z - 08.09.2011, 20:24
AW: gDialog - Easyer way of managing dialogs! - by BloodyEric - 08.09.2011, 20:59
Re: gDialog - Easyer way of managing dialogs! - by Gamer_Z - 08.09.2011, 22:42
Re: gDialog - Easyer way of managing dialogs! - by Sasino97 - 09.09.2011, 10:33
Re: gDialog - Easyer way of managing dialogs! - by Gamer_Z - 09.09.2011, 11:37
Re: gDialog - Easyer way of managing dialogs! - by Gamer_Z - 20.09.2011, 15:42
Re: gDialog - Easyer way of managing dialogs! - by [M.A]Angel[M.A] - 20.09.2011, 16:17
Re: gDialog - Easyer way of managing dialogs! - by Hade. - 13.11.2012, 08:10

Forum Jump:


Users browsing this thread: 1 Guest(s)