i have a problem
#4

All the brackets are incorrectly placed, just look that the {;} are matching properly
Just use this one and make the others like this aswell
Код:
CMD:buy6(playerid, params[])
{
	new money;
	money = GetPlayerMoney(playerid);
	if(money >= 5000)
	{
		SendClientMessage(playerid, COLOR_GREY, "Ти си купи Pistol за 5000$");
		GivePlayerWeapon(playerid, 22, 1200);
		GivePlayerMoney(playerid, -5000);
	}
	if(money < 5000)
	{
		SendClientMessage(playerid, COLOR_YELLOW, "Нямаш достатъчно пари за да си купиш това оражие!");
	}
	return true;
}
And yes, i suggest people use return false and true instead of 0 and 1 since its less confusing for new scripters, especially if you have scripted many hours in a row, and are tired, since your brain is working on max level, some slips may drop in.
Reply


Messages In This Thread
i have a problem - by kaloqn54 - 09.02.2013, 11:31
Re: i have a problem - by FUNExtreme - 09.02.2013, 11:33
Re: i have a problem - by kaloqn54 - 09.02.2013, 11:36
Re: i have a problem - by batonsa - 09.02.2013, 12:37
Re: i have a problem - by kaloqn54 - 09.02.2013, 18:47

Forum Jump:


Users browsing this thread: 2 Guest(s)