Help Please
#1

Help....
Error :
error 017: undefined symbol "Businesses"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
:fatal error 107: too many error messages on one line




Quote:

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.");
}

Reply
#2

try to put semicolon at >=5)
Reply
#3

Quote:
Originally Posted by ChuckyBabe
Посмотреть сообщение
try to put semicolon at >=5)
If-statements should not have semicolons.
Show where you defined "Businesses".
Reply
#4

But error here
Quote:

if (Businesses[PlayerInfo[playerid][pBusiness]][bLevel] >= 5)

Reply
#5

Yes, and it says you haven't defined it.
If you have, show where.
Reply
#6

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
Yes, and it says you haven't defined it.
If you have, show where.
Huh....


Quote:

#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

i don't have #define business
Reply
#7

Something being defined doesn't mean you used #define.
It will most likely look like
pawn Код:
new Businesses
Use CTRL+H and search for that, if there's none, then that's the problem.
Reply
#8

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
Something being defined doesn't mean you used #define.
It will most likely look like
pawn Код:
new Businesses
Use CTRL+H and search for that, if there's none, then that's the problem.
i have
Quote:

new Selected[MAX_PLAYERS][MAX_BUSINESSSALES];
new Businesses[MAX_BUSINESSES][eBiz];

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)