30.01.2011, 01:18
This shouldn't be difficult:
pawn Код:
//
if(listitem == 15) - THIS
{
This if(GetPlayerMoney(playerid) >= 500)
{
GivePlayerMoney(playerid,-500);
GiveBizMoney(playerid, 500);
HasBoughtMask[playerid] = 1;
GameTextForPlayer(playerid,"~w~You purchased a mask for ~r~ $500", 5000, 1);
SendClientMessage(playerid, COLOR_WHITE, "Use /mask to take on/off your mask");
return 1;
//<==== Add here a bracket
}
if(listitem == 16) - This
{
if(GetPlayerMoney(playerid) >=50)
{
GivePlayerMoney(playerid, -500);
GiveBizMoney(playerid, 500);
gotbandage[playerid] = 1;
GameTextForPlayer(playerid,"~w~You purchased bandage for ~r~ $50", 5000, 1);
SendClientMessage(playerid, COLOR_WHITE, "Use /bandage to use it");
return 1;
}//<=====This bracket should be removed
}
}