[FilterScript] Radio System with Dialogs (zcmd)
#4

Quote:
Originally Posted by Bible
Посмотреть сообщение
Your reply just tells me that you didn't even look at the code or you have no idea what this code does (except for the main concept of course).

1. OnDialogResponse should return 0 since it's a filterscript and most likely the callback is in use by the gamemode itself.

2. Not wrong but better would be if you use a switch for your dialog id's.

3. Also not wrong but better would be if you would use an enum to store dialogs in, considering that dialog ID 1 is probably in use by the gamemode.

4. Since it's a filterscript, you can remove
pawn Код:
#else
Well, first of all i know what code does, and maybe he is a beginner, at least he tried.
Reply


Messages In This Thread
Radio System with Dialogs (zcmd) - by kyriakos587 - 22.02.2015, 20:35
Re: Radio System with Dialogs (zcmd) - by TheSnaKe - 22.02.2015, 20:38
Re: Radio System with Dialogs (zcmd) - by AndySedeyn - 22.02.2015, 20:50
Re: Radio System with Dialogs (zcmd) - by TheSnaKe - 22.02.2015, 21:01
Re: Radio System with Dialogs (zcmd) - by kyriakos587 - 22.02.2015, 21:04
Re: Radio System with Dialogs (zcmd) - by AndySedeyn - 22.02.2015, 21:07
Re: Radio System with Dialogs (zcmd) - by kyriakos587 - 22.02.2015, 21:09

Forum Jump:


Users browsing this thread: 1 Guest(s)