As the title says, I'd like to know the meaning of some error messages that I'm getting. Now, normally, I can understand what they are all communicating and fix the error. However, I've been getting some that I can't seem to figure out how to fix. I am a bit leery of posting my code, so I'll do what I can to explain the situations.
main (31, 39) ERR: Expected expression value
if (GetLocalVarInt("Var1") == 1) && (GetLocalVarInt("Var2") == 1)
This one I can't seem to get right. I'm thinking my script is simply incorrect.
main (54, 2) ERR: No Matching Signatures to "AddEntityCollideCallback"
This one throws me off. I've triple checked all of my names in the editor as well as my function names.
main (94, 5) ERR: Timer is not declared.
main (94, 5) ERR: Expression must be of Boolean type
void Function(string &in asTimer)
{
if(timer == "timer_1")
{
//Stuff to happen
}
if (other timers continue)
I can't get this one either. I don't understand, as I've gotten a similarily scripted timer system to work before.
main (102, 11) ERR: No conversion from string @& to int available
This one is just tagged onto my other if(timer == "timer_x") functions
main (118, 13) ERR: Lightname not declared.
void Lightfunc(string &in asParent, string &in asChild, int alState)
{
SetLightVisible(Lightname, true);
}
Self explanatory, I think. But it seems as though it just wants to fight with me. Figured I'd post just in case.
So if any of you could offer some assistance, I'd really appreciate it.