CMD:buybizlevel(playerid, params[]) { if (PlayerInfo[playerid][pBusiness] == INVALID_BUSINESS_ID || PlayerInfo[playerid][pBusinessRank] < 5) { return SendClientMessageEx(playerid, COLOR_GREY, "Chu cua hang moi co the su dung lenh nay."); } if (Businesses[PlayerInfo[playerid][pBusiness]][bLevel] >= 5) // Error Here { return SendClientMessageEx(playerid, COLOR_GREY, "Ban khong the mua Level cua hang duoc them nua."); } |
if (Businesses[PlayerInfo[playerid][pBusiness]][bLevel] >= 5) |
Yes, and it says you haven't defined it.
If you have, show where. |
#define MAX_BUSINESSES 200 #define MAX_BUSINESS_NAME 48 #define MAX_BUSINESS_DEALERSHIP_VEHICLES 10 #define MAX_BUSINESS_GAS_PUMPS 2 #define INVALID_BUSINESS_ID -1 #define INVALID_GAS_PUMP -1 #define INVALID_STORE_ITEM -1 #define BUSINESS_BASE_VW 100000 #define BUSINESS_OPEN_COLOR 0x22FF2299 #define BUSINESS_CLOSED_COLOR 0xFF222299 #define BUSINESS_NAME_COLOR 0xFFFFFF99 #define BUSINESS_PRICE_COLOR 0x33CCFF88 #define BUSINESS_TAX_PERCENT 10 #define BUSINESS_TYPE_GASSTATION 1 #define BUSINESS_TYPE_CLOTHING 2 #define BUSINESS_TYPE_RESTAURANT 3 #define BUSINESS_TYPE_GUNSHOP 4 #define BUSINESS_TYPE_NEWCARDEALERSHIP 5 #define BUSINESS_TYPE_OLDCARDEALERSHIP 6 #define BUSINESS_TYPE_MECHANIC 7 #define BUSINESS_TYPE_STORE 8 #define BUSINESS_TYPE_BAR 9 #define BUSINESS_TYPE_CLUB 10 #define BUSINESS_TYPE_SEXSHOP 11 #define BUSINESS_TYPE_GYM 12 #define BUSINESS_ITEMS_COST 1500 |
new Businesses
Something being defined doesn't mean you used #define.
It will most likely look like pawn Код:
|
new Selected[MAX_PLAYERS][MAX_BUSINESSSALES]; new Businesses[MAX_BUSINESSES][eBiz]; |