Biz Error
#1

When I'm compiling it I got this error

Quote:

(86337) : error 017: undefined symbol "bizid"
(86356) : error 017: undefined symbol "bizid"
(86372) : error 017: undefined symbol "bizid"
(8638 : error 017: undefined symbol "bizid"

Код:
	if(dialogid == SHOPMENU)
	{
		if(response)
		{
			if(listitem == 0)
			{
				if (GetPlayerCash(playerid) >= 50)
				{
					GivePlayerCash(playerid, -50);
					BizInfo[bizid][bMoney] += 50;
                	SaveBiz();
					GivePlayerValidWeapon(playerid, 10, 50);
					format(string, sizeof(string), "Purple dildo purchased, you can now pleasure yourself.");
					SendClientMessageEx(playerid, COLOR_GRAD4, string);
				}
				else
				{
					SendClientMessageEx(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
				}
			}
			if(listitem == 1)
			{
				if (GetPlayerCash(playerid) >= 100)
				{
					GivePlayerValidWeapon(playerid, 11, 50);
					format(string, sizeof(string), "Short Vibrator purchased, you can now pleasure yourself.");
					SendClientMessageEx(playerid, COLOR_GRAD4, string);
					GivePlayerCash(playerid, -100);
					BizInfo[bizid][bMoney] += 100;
                	SaveBiz();
				}
				else
				{
					SendClientMessageEx(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
				}
			}
			if(listitem == 2)
			{
				if (GetPlayerCash(playerid) >= 100)
				{
					GivePlayerValidWeapon(playerid, 12, 50);
					format(string, sizeof(string), "Long Vibrator purchased, you can now pleasure yourself.");
					SendClientMessageEx(playerid, COLOR_GRAD4, string);
					GivePlayerCash(playerid, -100);
					BizInfo[bizid][bMoney] += 100;
                	SaveBiz();
				}
				else
				{
					SendClientMessageEx(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
				}
			}
			if(listitem == 3)
			{
				if (GetPlayerCash(playerid) >= 50)
				{
					GivePlayerValidWeapon(playerid, 13, 50);
					format(string, sizeof(string), "White Dildo purchased, you can now pleasure yourself.");
					SendClientMessageEx(playerid, COLOR_GRAD4, string);
					GivePlayerCash(playerid, -50);
					BizInfo[bizid][bMoney] += 50;
                	SaveBiz();
				}
				else
				{
					SendClientMessageEx(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
				}
			}
		}
	}
	if(dialogid == SHOPMENU)
	{
	    new bizid;
		if(response)
		{
			if(listitem == 0)
			{
				if (GetPlayerCash(playerid) >= 50)
				{
					GivePlayerCash(playerid, -50);
					BizInfo[bizid][bMoney] += 50;
                	SaveBiz();
					GivePlayerValidWeapon(playerid, 10, 50);
					format(string, sizeof(string), "Purple dildo purchased, you can now pleasure yourself.");
					SendClientMessageEx(playerid, COLOR_GRAD4, string);
				}
				else
				{
					SendClientMessageEx(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
				}
			}
			if(listitem == 1)
			{
				if (GetPlayerCash(playerid) >= 100)
				{
					GivePlayerValidWeapon(playerid, 11, 50);
					format(string, sizeof(string), "Short Vibrator purchased, you can now pleasure yourself.");
					SendClientMessageEx(playerid, COLOR_GRAD4, string);
					GivePlayerCash(playerid, -100);
					BizInfo[bizid][bMoney] += 100;
                	SaveBiz();
				}
				else
				{
					SendClientMessageEx(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
				}
			}
			if(listitem == 2)
			{
				if (GetPlayerCash(playerid) >= 100)
				{
					GivePlayerValidWeapon(playerid, 12, 99999);
					format(string, sizeof(string), "Long Vibrator purchased, you can now pleasure yourself.");
					SendClientMessageEx(playerid, COLOR_GRAD4, string);
					GivePlayerCash(playerid, -100);
					BizInfo[bizid][bMoney] += 100;
                	SaveBiz();
				}
				else
				{
					SendClientMessageEx(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
				}
			}
			if(listitem == 3)
			{
				if (GetPlayerCash(playerid) >= 50)
				{
					GivePlayerValidWeapon(playerid, 13, 99999);
					format(string, sizeof(string), "White Dildo purchased, you can now pleasure yourself.");
					SendClientMessageEx(playerid, COLOR_GRAD4, string);
					GivePlayerCash(playerid, -50);
					BizInfo[bizid][bMoney] += 50;
                	SaveBiz();
				}
				else
				{
					SendClientMessageEx(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
				}
			}
		}
	}
Reply
#2

Hmmmm? Anyone I will reps who will help me. Thanks in advance!
Reply
#3

Quote:
Originally Posted by ValiLucifer
Посмотреть сообщение
Hmmmm? Anyone I will reps who will help me. Thanks in advance!
Код:
new bizid;
Edit: top of your script fs or gm

Код:
new bizid;[MAX_PLAYERS]
Reply
#4

Quote:
Originally Posted by gotwarzone
Посмотреть сообщение
Код:
new bizid;
Edit: top of your script fs or gm

Код:
new bizid;[MAX_PLAYERS]
Код:
(769) : error 010: invalid function or declaration
(37073) : warning 219: local variable "bizid" shadows a variable at a preceding level
(37227) : warning 219: local variable "bizid" shadows a variable at a preceding level
(84063) : warning 219: local variable "bizid" shadows a variable at a preceding level
(84348) : warning 219: local variable "bizid" shadows a variable at a preceding level
(85427) : warning 219: local variable "bizid" shadows a variable at a preceding level
(85603) : warning 219: local variable "bizid" shadows a variable at a preceding level
(85906) : warning 219: local variable "bizid" shadows a variable at a preceding level
(86332) : warning 219: local variable "bizid" shadows a variable at a preceding level
(86403) : warning 219: local variable "bizid" shadows a variable at a preceding level
(91832) : warning 219: local variable "bizid" shadows a variable at a preceding level
(91846) : warning 219: local variable "bizid" shadows a variable at a preceding level
(94945) : warning 203: symbol is never used: "bizid"
I did it but I got this
Reply
#5

Do you have "enum bizInfo" Code ?

If you have; add "bizid" in there,

For Example,
Код:
enum bizInfo
{
    bizid
}
and Do you have,
Код:
new BizInfo[MAX_BIZ][bizInfo];
Right ?

If you do not have Add it,
Код:
new BizInfo[MAX_BIZ][bizInfo];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)