Raised This Month: $ Target: $400
 0% 

Cvar error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Artifact
Veteran Member
Join Date: Jul 2010
Old 08-28-2012 , 08:05   Cvar error
Reply With Quote #1

PHP Code:
if(get_pcvar_num("cvar_type") == "1"
Code:
Error: Argument type mismatch (argument 1) on line 78
__________________
Artifact is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-28-2012 , 08:23   Re: Cvar error
Reply With Quote #2

*et_pcvar_* functions expect a cvar handle, not a string
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 08-28-2012 , 10:39   Re: Cvar error
Reply With Quote #3

"1" is a string. Not a number. (not sure if that makes a difference. but it is misleading.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-28-2012 , 19:12   Re: Cvar error
Reply With Quote #4

Quote:
Originally Posted by Liverwiz View Post
"1" is a string. Not a number. (not sure if that makes a difference. but it is misleading.
Yes, it makes a difference. He is comparing a scalar to an array.
__________________
fysiks 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 05:47.


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