Script BUG help
#7

pawn Код:
stock BuyBusiness(playerid, bizid)
{
  new string2[256], score = GetPlayerScore(playerid);
  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;
  ShowBoughtStoreMessage(playerid);
  SetPlayerScore(playerid, score - 80000);
   
  return 1;
}
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: 1 Guest(s)