Raised This Month: $ Target: $400
 0% 

please fix code ;(


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
drakeris
Senior Member
Join Date: Jul 2009
Old 12-17-2009 , 07:21   Re: please fix code ;(
Reply With Quote #1

Quote:
Originally Posted by Styles View Post
Author is ""Drakeris & Frostas"" I take it you just put your name on it. This is well written, at least it looked clean. I didn't take a look at anything else. And if your a NOOB you wouldn't create such pretty work. You would probably have a sloppy mess of a plugin.

I would ask the creator if I were you ;)
I am the creator but there were a problem i wanted to trick my firend and messede up tthe code and when i wanted to add some things to it i didnt remeber what i done bad...and yes im a creator if not show me whos the creator of it,if not just STFU Ok?
fisiks heres my problem where i cant fix i can fix everthing other but not this :/
PHP Code:
groups/amxmodx/tmp3/text9MygU8.sma(441) : warning 209: function "drag_end" should return a value
/groups/amxmodx/tmp3/text9MygU8.sma(453) : error 010invalid function or declaration
/groups/amxmodx/tmp3/text9MygU8.sma(453) : error 017undefined symbol "damage_type"
/groups/amxmodx/tmp3/text9MygU8.sma(455) : error 010invalid function or declaration
/groups/amxmodx/tmp3/text9MygU8.sma(457) : error 010invalid function or declaration
/groups/amxmodx/tmp3/text9MygU8.sma(460) : error 021symbol already defined"drag_end"
/groups/amxmodx/tmp3/text9MygU8.sma(461) : error 054unmatched closing brace
/groups/amxmodx/tmp3/text9MygU8.sma(464) : error 010invalid function or declaration
/groups/amxmodx/tmp3/text9MygU8.sma(466) : error 010invalid function or declaration
/groups/amxmodx/tmp3/text9MygU8.sma(469) : error 021symbol already defined"drag_end"
/groups/amxmodx/tmp3/text9MygU8.sma(470) : error 054unmatched closing brace
/groups/amxmodx/tmp3/text9MygU8.sma(472) : error 010invalid function or declaration
/groups/amxmodx/tmp3/text9MygU8.sma(573) : warning 209: function "He_Damage" should return a value
/groups/amxmodx/tmp3/text9MygU8.sma(727) : error 003declaration of a local variable must appear in a compound block
/groups/amxmodx/tmp3/text9MygU8.sma(727) : error 029invalid expressionassumed zero
/groups/amxmodx/tmp3/text9MygU8.sma(732) : warning 225unreachable code
/groups/amxmodx/tmp3/text9MygU8.sma(736 -- 737) : error 029invalid expressionassumed zero
/groups/amxmodx/tmp3/text9MygU8.sma(737 -- 738) : error 028invalid subscript (not an array or too many subscripts): "HP"
/groups/amxmodx/tmp3/text9MygU8.sma(739) : warning 217loose indentation
/groups/amxmodx/tmp3/text9MygU8.sma(746) : warning 209: function "mirror_dmg" should return a value
/groups/amxmodx/tmp3/text9MygU8.sma(747) : error 010invalid function or declaration
/groups/amxmodx/tmp3/text9MygU8.sma(748) : warning 204symbol is assigned a value that is never used"cvar_dmg2stop" 
P.S.by the noob i meant i cannot be good for example as Exolent or fisiks if compared to them im just a litle noob scripter couse i dont know as much as them
drakeris is offline
matsi
Thinkosaur
Join Date: Sep 2006
Old 12-17-2009 , 10:17   Re: please fix code ;(
Reply With Quote #2

There is just too much to fix.


Edit: I started to explain all errors but there are simply too much to explain. I can also see in the coding style that you've copied a lot code. There are some parts in the code that uses semicolon but then in the other part they're missing. also in plugin_init() it seems that you've added something later because they all aren't in order.


You're trying to get float value with get_pcvar_num when you should be using get_cvar_float (tag mismatch):
Code:
fm_set_user_gravity(id, get_pcvar_num(umbrella_gravity)) -> fm_set_user_gravity(id, get_pcvar_float(umbrella_gravity)) //---------------------------------------------------------- fm_set_user_maxspeed(id, get_pcvar_float(umbrella_speed)) -> fm_set_user_maxspeed(id, get_pcvar_float(umbrella_speed))

That fixes only 4 warnings. :/

Last edited by matsi; 12-17-2009 at 11:24.
matsi is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode