Thread
:
DeRoiD's Mapchooser v2.33
View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
04-12-2015 , 05:05 Re: DMC (Map chooser)
#
3
If it has color chat, you can't have it submitted as "Modification: All". You would have to make it Counter-Strike only.
You shouldn't assign a string to a string array variable, you shouldn't use equal, you should use copy().
The method you use to calculate the top vote can be done way simpler. Take a look at teh default mapchooser plugin.
read_file() shouldn't be used in a loop. You should use fopen, fgets, fclose instead.
Writing to a file while you have it open for reading is never a good idea.
The variable named "MapName" is vague so it's hard to tell what it actually contains.
To clear the values in an array (make them all default) you can simply use arrayset() instead of looping.
When setting a cvar value, use set_cvar_*() instead of using a server command.
__________________
Polymorph
,
GitHub
Last edited by fysiks; 04-12-2015 at
05:28
.
fysiks
View Public Profile
Send a private message to fysiks
Find More Posts by fysiks