Thread: Need help
View Single Post
01-13-13, 09:54 AM   #3
laukond
A Black Drake
Join Date: Dec 2011
Posts: 87
Originally Posted by Dridzt View Post
I'm saying this from memory so take it with a grain of salt but I believe the cvars are string type not number.

So try setting them to "1" and "0" respectively.
You also do not need to test explicitly for true.
Code:
If IsResting() then
should be sufficient
Didn't fix it.

Getting this error:

Usage: SetCVar("cvar", value [, "scriptCvar")
<in C code>
Edit: I believe it's something with the "else" maybe it should be another word?

Last edited by laukond : 01-13-13 at 09:58 AM.
  Reply With Quote