This not working
#1

This command
Код:
CMD:setlotto(playerid, params[])
{
	new string[256], lottopr;
	if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "[{FF0606}ERROR{FFFFFF}]: You have no authorization to use this command.");
	if(sscanf(params, "d", lottopr)) return SendClientMessage(playerid, -1, ""COL_LIGHTBLUE"<Usage> "COL_WHITE"/setlotto <prize>");
	if(lottopr < 1000 || lottopr > 500000) return SendClientMessage(playerid, -1, "Invalid prize number. Prize must be between $1,000 and $500,000.");
	if(LottoNum != 0) return SendClientMessage(playerid, -1, "There is a lottery already going on.");
	else
	{
	    SendClientMessageToAll(COLOR_LIGHTBLUE, "A lottery has started and will end in 30 seconds! Type "COL_WHITE"/lotto($100) "COL_LIGHTBLUE"to pick your number.");
		format(string, sizeof(string), "Prize: "COL_WHITE"$%d", lottopr);
		SendClientMessageToAll(COLOR_LIGHTBLUE, string);
		LottoNum = 1 + random(80);
		LottoPrize = lottopr;
	    SetTimer("Lottery", 30000, false);
	}
	return 1;
}
Is not working, it keeps telling me <Usage> /lotto prize even if I type a prize example /lotto 1000
Reply


Messages In This Thread
This not working - by AndreiWow - 05.09.2015, 16:17
Re: This not working - by X337 - 05.09.2015, 16:20
Re: This not working - by AndreiWow - 05.09.2015, 17:07
Re: This not working - by IceBilizard - 05.09.2015, 17:10
Re: This not working - by AndreiWow - 05.09.2015, 17:37
Re: This not working - by xXLegendaryXx - 05.09.2015, 18:23
Re: This not working - by AndreiWow - 05.09.2015, 20:10
Re: This not working - by AndreiWow - 06.09.2015, 13:11
Re: This not working - by Variable™ - 06.09.2015, 13:14
Re: This not working - by AndreiWow - 06.09.2015, 17:51

Forum Jump:


Users browsing this thread: 1 Guest(s)