Help needed? come here i'll try to fix/make it
#12

Код:
	if(strcmp(cmdtext, "/buybomb", true) == 0)
	{
	  if (PlayerToPoint(1, playerid,-50.4694,-233.4252,6.7646))
	  {
  			if(Bomb[playerid] == 1)
			{
				SendClientMessage(playerid, COLOR_GREY, "[Error] You can only carry 1 bomb");
				return 1;
			}
			if(GetPlayerCash(playerid) >= 30000)
			{
				Bomb[playerid] = 1;
				GivePlayerCash(playerid,-30000);
				SendClientMessage(playerid, COLOR_WHITE, "[Success] You bought a bomb, it does not save so use it quickly");
				PlayerActionMessage(playerid,15.0,"gives the business some money and gets a bomb back in return");
				return 1;
		}
		else
		{
		endClientMessage(playerid, COLOR_GREY, "[Error] You do not have enough money");
		return 1;
		}
	}
This gives me LOTS of errors, could you fix it ?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)