hey , i just added auto event ( Guess The number ) that based on Protocol when Proto is 0x00:
and i try make that people can guess only 3 time and after they guess 3 times they can't do it and i can't think on way to do it ;x
hey , i just added auto event ( Guess The number ) that based on Protocol when Proto is 0x00:
and i try make that people can guess only 3 time and after they guess 3 times they can't do it and i can't think on way to do it ;x
just add a counter variable in the objectstruct and make it zero when the event starts
an each time they use the command to guess th number just increaseCode:for(int i = OBJMIN; i =< OBJMAX; i++) { lpObj->Counter=0; }
and an if to chek max tries in the commandCode:if(IsTheAnswer == FALSE) { lpObj->Counter ++; }
or something like thatCode:if(lpObj->Counter >3) { GCServerMsgStringSend(lpObj->Index,"You used your 3 attempts.") // or whatever you want return; }