Raised This Month: $ Target: $400
 0% 

Argument Mismatch + Invalid Expression


Post New Thread Reply   
 
Thread Tools Display Modes
Cyb3rH4Xter
Senior Member
Join Date: May 2009
Location: Sweden
Old 04-14-2011 , 13:23   Re: Argument Mismatch + Invalid Expression
Reply With Quote #11

Good post. Plugin works now.
Cyb3rH4Xter is offline
Cyb3rH4Xter
Senior Member
Join Date: May 2009
Location: Sweden
Old 04-14-2011 , 17:17   Re: Argument Mismatch + Invalid Expression
Reply With Quote #12

Lol Mr. "I own at programming" you said I needed to use pointer, it should be num. lolololol
Cyb3rH4Xter is offline
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 04-14-2011 , 18:43   Re: Argument Mismatch + Invalid Expression
Reply With Quote #13

I wanted to help and you are just insulting me, OK.
Explain why do you think it should be that way.
SpeeDeeR is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-14-2011 , 19:44   Re: Argument Mismatch + Invalid Expression
Reply With Quote #14

Quote:
Originally Posted by SpeeDeeR View Post
Code:
get_pcvar_float("mp_timelimit")

Code:
get_cvar_pointer("mp_timelimit")
That is so not right. get_cvar_pointer() should NOT be used anywhere in that code as it is.

Quote:
Originally Posted by SpeeDeeR View Post
I wanted to help and you are just insulting me, OK.
Explain why do you think it should be that way.
A cvar pointer is an internal reference to a cvar. It is not the value of the cvar. get_cvar_num() should be used in these cases.
__________________
fysiks is offline
Cyb3rH4Xter
Senior Member
Join Date: May 2009
Location: Sweden
Old 04-15-2011 , 01:28   Re: Argument Mismatch + Invalid Expression
Reply With Quote #15

Thank you for explaining it to him, fysiks
sorry that I insulted you, just giving back since you called me not a C# programmer. But now we're even, and I hope you understand that making a mistake is something everyone can do as you did one yourself too
Cyb3rH4Xter 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 19:53.


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