Script BUG help
#3

Problem solved. You were setting them to -80000 instead to give them.

pawn Код:
stock BuyBusiness(playerid, bizid)
{
  new string2[256];
  new name[24];
  GetPlayerName(playerid, name, sizeof(name));
  #if defined PRINT_HOUSES
    printf("%s Bought Store ID %d", name, bizid);
  #endif
  GivePlayerMoney(playerid, -bInfo[bizid][bCost]);
  format(string2,sizeof(string2), BIZ_FILE, bizid);
  INI_Open(string2);
  INI_WriteString("Name", name);
  INI_WriteInt("Locked", 0);
  INI_Save();
  INI_Close();
  bInfo[bizid][bName] = name;
  bInfo[bizid][bLocked] = 0;
  GivePlayerScore(playerid, - 80000);
  ShowBoughtStoreMessage(playerid);
   
  return 1;
}

EDIT: Xaviour212 was faster
Reply


Messages In This Thread
Script BUG help - by boyan96 - 20.04.2012, 05:38
Re: Script BUG help - by Xaviour212 - 20.04.2012, 05:41
Re: Script BUG help - by Bogdan1992 - 20.04.2012, 05:43
Re: Script BUG help - by boyan96 - 20.04.2012, 05:46
Re: Script BUG help - by Xaviour212 - 20.04.2012, 05:48
Re: Script BUG help - by boyan96 - 20.04.2012, 06:08
Re: Script BUG help - by Bogdan1992 - 20.04.2012, 06:10
Re: Script BUG help - by boyan96 - 20.04.2012, 06:16
Re: Script BUG help - by boyan96 - 20.04.2012, 07:19
Re: Script BUG help - by Marco_Valentine - 20.04.2012, 07:28

Forum Jump:


Users browsing this thread: 2 Guest(s)