PDA

View Full Version : Problem withint Conditiona


sekan
07-17-2007, 08:44 PM
I have tried with making a script but i get 1 error all the times. The error is
Required argument missing call to "getglobalnumber"
[CODE]int StartingConditional()
{
int nResumeTalk = GetGlobalNumber("Shop_Fight",2);
return nResumeTalk;
}/CODE]

tk102
07-17-2007, 09:19 PM
Don't know what that 2 is doing there...
int StartingConditional() {
int nResumeTalk=GetGlobalNumber("Shop_Fight");
return nResumeTalk != 0; // return TRUE on non-zero value
}

or
int StartingConditional() {
int nResumeTalk=GetGlobalNumber("Shop_Fight");
return nResumeTalk == 2; // return TRUE on value of 2 only
}