Best effiecent scripting
#14

Quote:
Originally Posted by Vince
Посмотреть сообщение
Dini sucks. Please that me what it is that dini can do that any other (and better) ini writer can't do. Furthermore, use enumerators to keep track of dialogs. Much easier to maintain. Also you can undefine MAX_PLAYERS and set it to your own.
pawn Код:
#if defined MAX_PLAYERS
     #undef MAX_PLAYERS
#endif
#define MAX_PLAYERS (100)
I defined MP as MAX_PLAYERS so when I create player related variables I only need to do "[MP]", not "[MAX_PLAYERS]", just shortens scripting time.

I'm using Dini for an unbanned command, and I'll use it for other commands to. The reason I'm using that instead of y_ini (I still use y_ini for the the main things, like loading and saving players data) is because y_ini can't get a single value from a file, without needing the load the whole file and parse it (from my knowledge). The only function I use with Dini is dini_Get.
Reply


Messages In This Thread
Best effiecent scripting - by Jack_Leslie - 31.07.2012, 03:27
Re: Best effiecent scripting - by dannyk0ed - 31.07.2012, 03:33
Re: Best effiecent scripting - by ReneG - 31.07.2012, 03:53
Re: Best effiecent scripting - by Jack_Leslie - 31.07.2012, 03:56
Re: Best effiecent scripting - by coole210 - 31.07.2012, 03:56
Re: Best effiecent scripting - by Jack_Leslie - 31.07.2012, 04:01
Re: Best effiecent scripting - by coole210 - 31.07.2012, 04:22
Re: Best effiecent scripting - by JoBullet - 31.07.2012, 05:00
Re: Best effiecent scripting - by CaHbKo - 31.07.2012, 08:40
Re: Best effiecent scripting - by CaHbKo - 31.07.2012, 09:16
Re: Best effiecent scripting - by Sinner - 31.07.2012, 09:31
Re: Best effiecent scripting - by Sniper Kitty - 31.07.2012, 09:32
Re: Best effiecent scripting - by Vince - 31.07.2012, 09:49
Re: Best effiecent scripting - by Jack_Leslie - 31.07.2012, 11:07
Re: Best effiecent scripting - by Slice - 31.07.2012, 11:10
Re: Best effiecent scripting - by Jack_Leslie - 31.07.2012, 11:12
Re: Best effiecent scripting - by IstuntmanI - 31.07.2012, 11:13
Re: Best effiecent scripting - by Slice - 31.07.2012, 11:26
Re: Best effiecent scripting - by Jack_Leslie - 31.07.2012, 11:46
Re: Best effiecent scripting - by Vince - 31.07.2012, 11:52
Re: Best effiecent scripting - by Universal - 31.07.2012, 12:17
Re: Best effiecent scripting - by Jack_Leslie - 31.07.2012, 12:20
Re: Best effiecent scripting - by Slice - 31.07.2012, 12:21
Re: Best effiecent scripting - by SuperViper - 31.07.2012, 16:26
Re: Best effiecent scripting - by The__ - 31.07.2012, 18:08
Re: Best effiecent scripting - by SuperViper - 31.07.2012, 19:05
Re: Best effiecent scripting - by Finn - 31.07.2012, 19:15
Re: Best effiecent scripting - by The__ - 31.07.2012, 19:24
Re: Best effiecent scripting - by Universal - 31.07.2012, 19:36
Re: Best effiecent scripting - by [KHK]Khalid - 02.08.2012, 03:12
Re: Best effiecent scripting - by Y_Less - 02.08.2012, 07:07
Re: Best effiecent scripting - by Ash. - 02.08.2012, 11:29
Re: Best effiecent scripting - by WackoX - 02.08.2012, 12:25
Re: Best effiecent scripting - by Y_Less - 02.08.2012, 14:13
Re: Best effiecent scripting - by [KHK]Khalid - 02.08.2012, 17:00
Re: Best effiecent scripting - by Y_Less - 02.08.2012, 18:44
Re: Best effiecent scripting - by [KHK]Khalid - 02.08.2012, 19:10

Forum Jump:


Users browsing this thread: 4 Guest(s)