AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Cvar error (https://forums.alliedmods.net/showthread.php?t=194418)

Artifact 08-28-2012 08:05

Cvar error
 
PHP Code:

if(get_pcvar_num("cvar_type") == "1"

Code:

Error: Argument type mismatch (argument 1) on line 78

YamiKaitou 08-28-2012 08:23

Re: Cvar error
 
*et_pcvar_* functions expect a cvar handle, not a string

Liverwiz 08-28-2012 10:39

Re: Cvar error
 
"1" is a string. Not a number. (not sure if that makes a difference. but it is misleading.

fysiks 08-28-2012 19:12

Re: Cvar error
 
Quote:

Originally Posted by Liverwiz (Post 1785050)
"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.


All times are GMT -4. The time now is 05:47.

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