Thread
:
Showing your legs
View Single Post
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
02-28-2015 , 13:26 Re: Showing your legs
#
8
Don't comment everything, just the lines which need an explanations or are confusing.
PHP Code:
// The only variable :D
How this help peoples to understand ? We all know that you only have a global variable. Anyway, your comment is wrong, this is the only global variable, not the only variable.
In your create_feet function
static is not needed
engfunc(EngFunc_AllocString, "info_target")
allocating a string every time is not the best ideea. Idk how many times a player will join(how many times you create that ent), but you should cache this in
plugin_init
, since this is a constant value for the same string.
As claudiuhks said, please explain why you used this "random ?" values.
__________________
Last edited by HamletEagle; 02-28-2015 at
13:27
.
HamletEagle
View Public Profile
Send a private message to HamletEagle
Find More Posts by HamletEagle