CMD content save. +REP
#6

Quote:
Originally Posted by Osamakurdi
View Post
This is code:
Code:
new RequestDiceBetting[MAX_PLAYERS];
 // on top of your script.

CMD:dicep(playerid, params[])
{
	new targetid, str[180], str2[180], bet;
	if(sscanf(params, "ui", targetid, bet)) return SCM(playerid, -1, "/dicep [playerid] [money]");
	if(targetid == INVALID_PLAYER_ID) return SCM(playerid, -1, "Player Isnt Connected.");
	new mymoney = (GetPlayerMoney(playerid));
	new targetmoney = (GetPlayerMoney(targetid));
	if(bet>mymoney) return SCM(playerid, -1, "You Dont Have That Amount Of Money.");
.....
	.........
}
How i can make it?
Uhm... your code already checks everything
Reply


Messages In This Thread
CMD content save. +REP - by Osamakurdi - 03.01.2018, 17:40
Re: CMD content save. +REP - by RogueDrifter - 03.01.2018, 17:52
Re: CMD content save. +REP - by Osamakurdi - 03.01.2018, 17:57
Re: CMD content save. +REP - by Logic_ - 03.01.2018, 18:05
Re: CMD content save. +REP - by Osamakurdi - 03.01.2018, 18:11
Re: CMD content save. +REP - by RogueDrifter - 03.01.2018, 18:16
Re: CMD content save. +REP - by Logic_ - 03.01.2018, 18:16
Re: CMD content save. +REP - by Osamakurdi - 03.01.2018, 18:19
Re: CMD content save. +REP - by Osamakurdi - 03.01.2018, 18:23

Forum Jump:


Users browsing this thread: 3 Guest(s)