Bet command help
#1

Probably i have being trying this thing yesterday night. And again came up with it today. But i don't think it's working.
The codes are here. The system doesn't work.
Код:
CMD:bet(playerid,params[])
{
    if(IsPlayerInRangeOfPoint(playerid,3.0,1961.3129,1025.3032,992.4688))
    {
        if(pInfo[playerid][pActivity] > 0 || pInfo[playerid][pFCash] > 0)
        {
            new number;
            if(sscanf(params,"d",number)) return SendClientMessage(playerid,colorexit,"[ ! ] /bet number");
            new betnumber = random(1);
            if(number < 0 || number > 1) return SendClientMessage(playerid,colorexit,"[ ! ] Choose number");
            if(number == betnumber)
            {
                SendClientMessage(playerid,colorexit,"[ ! ] You win!");
            }
	   else
	   {
                SendClientMessage(playerid,colorexit,"[ ! ] You lose!");
	   }
	   return 1;
        }
        else SendClientMessage(playerid,colorexit,"[ ! ] Please check your /activity or /fcash for betting your pot!");
    }
    else SendClientMessage(playerid,colorexit,"[ ! ] You must be near the casino table to bet your pot!");
	return 1;
}
Reply


Messages In This Thread
Bet command help - by fuckingcruse - 02.04.2016, 08:42
Re: Bet command help - by SyS - 02.04.2016, 08:44
Re: Bet command help - by fuckingcruse - 02.04.2016, 08:48
Re: Bet command help - by fuckingcruse - 02.04.2016, 14:14
Re: Bet command help - by introzen - 02.04.2016, 14:31
Re: Bet command help - by fuckingcruse - 02.04.2016, 14:49
Re: Bet command help - by SyS - 03.04.2016, 03:44

Forum Jump:


Users browsing this thread: 2 Guest(s)