05.04.2013, 04:30
Tittle says all
Error Line
Please help how to fix this?
Thanks
Код:
if(listitem == 10) { if (GetPlayerCash(playerid) >= BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice10]) { if(PlayerInfo[playerid][pSuitcase] == 0) { GivePlayerCash(playerid, -BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice10]); PlayerInfo[playerid][pSuitcase] = 1; format(string, sizeof(string), "~r~-$%d", 1500); BizInfo[idx][bMoney] += BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice10]; BizInfo[idx][bProducts] --; //BizInfo[idx][bSold] ++; GameTextForPlayer(playerid, string, 5000, 1); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); SendClientMessage(playerid, COLOR_GRAD4, "Suitcase purchased."); SendClientMessage(playerid, COLOR_GREY, "HINT: Type /suitcase to check available options."); //SetPlayerAttachedObject( playerid, 0, 1210, 6, 0.259532, -0.043030, -0.009978, 85.185333, 271.380615, 253.650283, 1.000000, 1.000000, 1.000000 ); //HoldingSuitcase[playerid] = 1;
Код:
BizInfo[idx][bProducts] --;
Thanks