dice game
#1

Код:
if(dialogid == DIALOG_DICEB && response)
 {
     if(response)
     {
         if(strlen(inputtext))
         {
    new number2 = strval(inputtext);
    //

     new number = 0; 
     while(number == 0)
     {
         number = random(9);
     }

     if(number== strval(inputtext))
     {

         GivePlayerMoney(playerid, (dice_money[playerid]*2));
         new str[128];
      //new string[64];
         format(str,sizeof str,"{FFFFFF}Player %s won the toss Dice %d $ {00FFFF}", Jmeno(playerid),(dice_money[playerid]*2));
      SendClientMessageToAll(-1,str); 
      DICEA[playerid] --;
     }
     else
     {
      SendClientMessage(playerid,-1,"[ HAZARD ] Unfortunately, you lost  again next time!");
      KostkaA[playerid] --;
     }
    }
    else SendClientMessage(playerid, 0xFFFFFFF, "[ HAZARD ] 1 - 9"); 
   }
   else SendClientMessage(playerid, 0xFFFFFFF, "[ HAZARD ] 
You can not enter zero"); 

  }
  else
  {
   SCM(playerid,-1,"You canceled los");
  }
    }
Hi, I need to bear less than 1 and greater than 6 Thank you
Reply
#2

pls help
Reply


Forum Jump:


Users browsing this thread: