NPC Code:
//#CLIENTSIDE
if (playerenters || timeout) {
if (onwater(playerx+1.5,playery+2)) {this.wcount += 0.05;}
else {this.wcount = 0;}
showimg 1000,@@c@Water Count #v(this.wcount)/15,screenwidth-75,screenheight-25;
if (this.wcount>15) {playerhearts = 0;}
timeout = 0.05;
}
I ono...lol...what no if clause specified means is that you have an else somewhere, but no original if. To fix that make sure if you don't have curly brackets ({}) around an if phrase than make sure that there is only one command, if you have this:
NPC Code:
// this works:
if (playerenters) message hi;
else message;
//this doesn't, it will give you a no if clause specified error:
if (playerenters) message hi;
setplayerprop #c,hi;
else message;
setplayerprop #c,;
Understand?