05-25-2013, 10:41 PM
Hello everyone,
this script doesn't work. "icounter" must be declared and expression must be in boolean type.
Here^ "icounter" should be declared
I don't need to declare "icounter". I could be in boolean type but I don't know why it doesn't work this way.
Any suggestions?
this script doesn't work. "icounter" must be declared and expression must be in boolean type.
PHP Code:
void OnStart()
{
int icounter = 1;
}
void counter(string &in asStickyArea, string &in asBodyName)
{
if (icounter < 2) ++icounter;
PHP Code:
else GiveSanityBoostSmall();
}
I don't need to declare "icounter". I could be in boolean type but I don't know why it doesn't work this way.
Any suggestions?