Raised This Month: $ Target: $400
 0% 

please fix code ;(


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
matsi
Thinkosaur
Join Date: Sep 2006
Old 12-17-2009 , 10:17   Re: please fix code ;(
Reply With Quote #5

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
 



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