Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Not Working D:
Arvaga Offline
Junior Member

Posts: 8
Threads: 1
Joined: Oct 2010
Reputation: 1
#2
RE: Script Not Working D:

If you check the functions list we have all this for variable management:
void  SetLocalVarInt(string& asName, int alVal);
void  SetLocalVarFloat(string& asName, float afVal);
// asVal has to be constant
void  SetLocalVarString(string& asName, string& asVal);

void  AddLocalVarInt(string& asName, int alVal);
void  AddLocalVarFloat(string& asName, float afVal);
void  AddLocalVarString(string& asName, string& asVal);

int  GetLocalVarInt(string& asName);
float  GetLocalVarFloat(string& asName);
string&  GetLocalVarString(string& asName);

void  SetGlobalVarInt(string& asName, int alVal);
void  SetGlobalVarFloat(string& asName, float afVal);
// asVal has to be constant
void  SetGlobalVarString(string& asName, string& asVal);

void  AddGlobalVarInt(string& asName, int alVal);
void  AddGlobalVarFloat(string& asName, float afVal);
void  AddGlobalVarString(string& asName, string& asVal);

int  GetGlobalVarInt(string& asName);
float  GetGlobalVarFloat(string& asName);
string&  GetGlobalVarString(string& asName);

Maybe you have to set it first with SetLocalVarInt. Or if that doesn't work try using GlobalVars.

Now I see you use AddLocalVarInt to add the values, but you are using GetGlobalVarInt, my guess is that it should be GetLocal and that you have to set the variable with SetLocalVar before using it.

Visit the scripts recollection thread to find scripts for your custom stories.
11-12-2010, 01:31 PM
Find


Messages In This Thread
Script Not Working D: - by Homicide13 - 11-12-2010, 04:29 AM
RE: Script Not Working D: - by Arvaga - 11-12-2010, 01:31 PM
RE: Script Not Working D: - by Homicide13 - 11-12-2010, 04:19 PM



Users browsing this thread: 1 Guest(s)