Jump to content

Home

Problem withint Conditiona


sekan

Recommended Posts

I have tried with making a script but i get 1 error all the times. The error is

Required argument missing call to "getglobalnumber"

int StartingConditional()

{

int nResumeTalk = GetGlobalNumber("Shop_Fight",2);

return nResumeTalk;

}/CODE]

Link to comment
Share on other sites

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
}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...