017: undefined symbol "bProducts" -
chareen3 - 05.04.2013
Tittle says all
Код:
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;
Error Line
Код:
BizInfo[idx][bProducts] --;
Please help how to fix this?
Thanks
Re: 017: undefined symbol "bProducts" -
Faisal_khan - 05.04.2013
Show us your BizInfo array.
Re: 017: undefined symbol "bProducts" -
chareen3 - 05.04.2013
This?
Код:
{
bOwned,
bDescription[128],
bType,
bStatus,
bOwner[ MAX_PLAYER_NAME ],
bBInteriorWorld,
Float:bX,
Float:bY,
Float:bZ,
Float:bInteriorX,
Float:bInteriorY,
Float:bInteriorZ,
Float:bInteriorA,
bCustomInterior,
bCustomExterior,
bProductsPrice0,
bProductsPrice1,
bProductsPrice2,
bProductsPrice3,
bProductsPrice4,
bProductsPrice5,
bProductsPrice6,
bProductsPrice7,
bProductsPrice8,
bProductsPrice9,
bProductsPrice10,
bProductsPrice11,
bProductsPrice12,
bProductsPrice13,
bProductsPrice14,
bProductsPrice15,
bProductsPrice16,
bBizFee,
bPickup,
bMoney,
bSupplies,
Text3D:bText,
bPickupModel,
bLevel,
bPrice,
bNoteditable
}
new BizInfo[MAX_BIZ][bizInfo];
Re: 017: undefined symbol "bProducts" -
Scrillex - 05.04.2013
pawn Код:
{
bOwned,
bDescription[128],
bType,
bStatus,
bOwner[ MAX_PLAYER_NAME ],
bBInteriorWorld,
Float:bX,
Float:bY,
Float:bZ,
Float:bInteriorX,
Float:bInteriorY,
Float:bInteriorZ,
Float:bInteriorA,
bCustomInterior,
bCustomExterior,
bProductsPrice0,
bProductsPrice1,
bProductsPrice2,
bProductsPrice3,
bProductsPrice4,
bProductsPrice5,
bProductsPrice6,
bProductsPrice7,
bProductsPrice8,
bProductsPrice9,
bProductsPrice10,
bProductsPrice11,
bProductsPrice12,
bProductsPrice13,
bProductsPrice14,
bProductsPrice15,
bProductsPrice16,
BizInfo[idx][bProducts],
bBizFee,
bPickup,
bMoney,
bSupplies,
Text3D:bText,
bPickupModel,
bLevel,
bPrice,
bNoteditable
}
new BizInfo[MAX_BIZ][bizInfo];
Re: 017: undefined symbol "bProducts" -
chareen3 - 05.04.2013
Now i get these Errors
Код:
C:\Users\Thus\Desktop\3xxxHSRP\gamemodes\genx.pwn(3660) : error 017: undefined symbol "idx"
C:\Users\Thus\Desktop\3xxxHSRP\gamemodes\genx.pwn(3670) : error 021: symbol already defined: "BizInfo"
C:\Users\Thus\Desktop\3xxxHSRP\gamemodes\genx.pwn(3675) : error 028: invalid subscript (not an array or too many subscripts): "BizInfo"
C:\Users\Thus\Desktop\3xxxHSRP\gamemodes\genx.pwn(3675) : warning 215: expression has no effect
C:\Users\Thus\Desktop\3xxxHSRP\gamemodes\genx.pwn(3675) : error 001: expected token: ";", but found "]"
C:\Users\Thus\Desktop\3xxxHSRP\gamemodes\genx.pwn(3675) : error 029: invalid expression, assumed zero
C:\Users\Thus\Desktop\3xxxHSRP\gamemodes\genx.pwn(3675) : fatal error 107: too many error messages on one line
Error line 3660
Код:
BizInfo[idx][bProducts],
Error Line 3670
Код:
new BizInfo[MAX_BIZ][bizInfo];
Error Line 3675
Код:
if(!BizInfo[bizid][bType]) format(string, sizeof(string), "None");
But i edited Line 3660 like this
and I compiles it successfully ,But when i try to /buy inside a 24/7 It doesn't appear anything or even /buyclothes
Re: 017: undefined symbol "bProducts" -
Scrillex - 05.04.2013
new BizInfo[MAX_BIZ][bizInfo]; I think it's already defined! some where!
Re: 017: undefined symbol "bProducts" -
chareen3 - 05.04.2013
NOp
Re: 017: undefined symbol "bProducts" -
Scrillex - 05.04.2013
show me please full line of that code.. So I could help you!
Re: 017: undefined symbol "bProducts" -
MP2 - 05.04.2013
Looks like you copied and pasted this. When you copy and paste, make sure you get it all. Or even better; don't copy and paste.