Oldskool
#13

I still use strcmp for one or two things, I wrote a CallLocalFunction based command system (that's how ZCMD works) for standard commands but I have some "dynamic" sort of commands that change during runtime, I couldn't figure out a way to incorporate public functions to do that so I just used a simple loop+strcmp (It loops about 50-60 times)

It's for teleports, so I have an array of coordinates and commands, you type for instance "/ls" it loops the array, checks each string and if it matches it teleports you to the right place.

Call me lazy, but I didn't really want to write (or write a function to write) 50-60 command functions for teleports!


As for files, just listen to everyone else, and don't offer scripting help if you have to ask about things like this!
Reply


Messages In This Thread
Oldskool - by Mike_Peterson - 17.08.2012, 10:03
Re: Oldskool - by Mike_Peterson - 17.08.2012, 10:06
Re: Oldskool - by playbox12 - 17.08.2012, 12:34
Re: Oldskool - by steki. - 17.08.2012, 13:07
Re: Oldskool - by AndreT - 17.08.2012, 13:15
Re: Oldskool - by Universal - 17.08.2012, 13:23
Re: Oldskool - by Mike_Peterson - 17.08.2012, 18:33
Re: Oldskool - by playbox12 - 17.08.2012, 19:11
Re: Oldskool - by Calgon - 17.08.2012, 19:56
Re: Oldskool - by FireCat - 17.08.2012, 20:31
Re: Oldskool - by [ABK]Antonio - 17.08.2012, 22:56
Re: Oldskool - by Y_Less - 18.08.2012, 06:09
Re: Oldskool - by [HLF]Southclaw - 25.08.2012, 22:40
Re: Oldskool - by Guitar - 26.08.2012, 08:01
Re: Oldskool - by DRIFT_HUNTER - 23.09.2012, 01:14
Re: Oldskool - by xDeadlyBoy - 17.10.2012, 23:41
Re: Oldskool - by [FSaF]Jarno - 19.10.2012, 13:29
Re: Oldskool - by Snipa - 21.10.2012, 03:16
Re: Oldskool - by playbox12 - 22.10.2012, 08:26
Re: Oldskool - by AndreT - 22.10.2012, 08:48
Re: Oldskool - by [HLF]Southclaw - 22.10.2012, 13:57
Re: Oldskool - by Y_Less - 22.10.2012, 14:05
Re: Oldskool - by Extremo - 23.10.2012, 09:37
Re: Oldskool - by Slice - 23.10.2012, 10:29
Re: Oldskool - by Y_Less - 23.10.2012, 10:38
Re: Oldskool - by Extremo - 23.10.2012, 16:07
Re: Oldskool - by SchurmanCQC - 11.12.2012, 21:22
Re: Oldskool - by Mike_Peterson - 12.12.2012, 16:43
Re: Oldskool - by Y_Less - 12.12.2012, 16:54
Re: Oldskool - by Mike_Peterson - 12.12.2012, 17:07
Re: Oldskool - by [HLF]Southclaw - 12.12.2012, 18:05
Re: Oldskool - by Mike_Peterson - 12.12.2012, 18:16
Re: Oldskool - by mastermax7777 - 13.12.2012, 20:41
Re: Oldskool - by RebeloX - 13.12.2012, 20:54

Forum Jump:


Users browsing this thread: 9 Guest(s)