20.04.2012, 05:43
Problem solved. You were setting them to -80000 instead to give them.
EDIT: Xaviour212 was faster
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