09.02.2013, 12:37
(
Последний раз редактировалось batonsa; 09.02.2013 в 15:37.
)
All the brackets are incorrectly placed, just look that the {;} are matching properly
Just use this one and make the others like this aswell
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.
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;
}

