[Help]Help please i got some errors help me
#1

Hello i got some errors please help


This is the Lines
Код:
CMD:bizname(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 4)
	{
		SendClientMessageEx(playerid, COLOR_GRAD2, "You are not authorized to use that command.");
		return 1;
	}

	new string[128], bizid, bizname[128];
	if(sscanf(params, "ds[128]", bizid, bizname)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /bizname [bizid] [name]");

 This is the line what have errors>>>   format(BizInfo[bizid][bDescription], sizeof(string), "%s", bizname);
	format(string, sizeof(string), "You have set the business name to %s", bizname);
	SendClientMessageEx(playerid, COLOR_WHITE, string);
	DestroyPickupEx([BizInfo[bizid][bPickupID]);
	BizInfo[bizid][bPickupID] = CreateDynamicPickup(1274, 23, BizInfo[bizid][bExteriorX], BizInfo[bizid][bExteriorY], BizInfo[bizid][bExteriorZ], 0, -1, -1, 150.0 );
	format(string, sizeof(string), "{0000FF}[Business]{F0CC00}\nOwner: %s\n%s\nEntrance Fee: $%d\nID: %d", BizInfo[bizid][bOwner], BizInfo[bizid][bDescription],BizInfo[bizid][bEnterFee], bizid);
	UpdateDynamic3DTextLabelText(BizInfo[bizid][bTextID], COLOR_GREEN, string);
	SaveBiz(bizid);

	format(string, sizeof(string), "%s has edited BizID %d's Name to %s.", GetPlayerNameEx(playerid), bizid, bizname);
	Log("logs/bedit.log", string);

	return 1;
}

}

This is the errors

Код:
D:\eGrp with Biz system\EGRP.pwn(40) : warning 201: redefinition of constant/macro (symbol "DestroyPickupEx")
D:\eGrp with Biz system\EGRP.pwn(40) : warning 201: redefinition of constant/macro (symbol "DestroyPickupEx")
D:\eGrp with Biz system\EGRP.pwn(44) : warning 201: redefinition of constant/macro (symbol "bInteriorA")
D:\eGrp with Biz system\EGRP.pwn(49702) : warning 213: tag mismatch
D:\eGrp with Biz system\EGRP.pwn(49702) : error 032: array index out of bounds (variable "BizInfo")
D:\eGrp with Biz system\EGRP.pwn(49705) : error 029: invalid expression, assumed zero
D:\eGrp with Biz system\EGRP.pwn(49705) : error 029: invalid expression, assumed zero
D:\eGrp with Biz system\EGRP.pwn(49705) : warning 215: expression has no effect
D:\eGrp with Biz system\EGRP.pwn(49705) : error 001: expected token: ";", but found "]"
D:\eGrp with Biz system\EGRP.pwn(49705) : fatal error 107: too many error messages on one line
Reply
#2

This topic is the same as the previous one.
Why not use the previous one?

Reply
#3

Quote:
Originally Posted by Romel
Посмотреть сообщение
This topic is the same as the previous one.
Why not use the previous one?

Because i added wrong posts -.- and i decide to make new cleaned one

can you help me with my errors please?
Reply
#4

The fixed lines i.e. 49702-49705:
pawn Код:
format(BizInfo[bizid][bDescription], sizeof(string), "%s", bizname);
    format(string, sizeof(string), "You have set the business name to %s", bizname);
    SendClientMessageEx(playerid, COLOR_WHITE, string);
    DestroyPickupEx(BizInfo[bizid][bPickupID]);
For line 49702, show us the array of BizInfo.
Reply
#5

Quote:
Originally Posted by Faisal_khan
Посмотреть сообщение
The fixed lines i.e. 49702-49705:
pawn Код:
format(BizInfo[bizid][bDescription], sizeof(string), "%s", bizname);
    format(string, sizeof(string), "You have set the business name to %s", bizname);
    SendClientMessageEx(playerid, COLOR_WHITE, string);
    DestroyPickupEx(BizInfo[bizid][bPickupID]);
For line 49702, show us the array of BizInfo.
i cant understand what you mean show us the array?
Reply
#6

Okay i got it i will upload for you the Screen shot of the array


and here is the screen shot

Reply
#7

Array is something like this https://sampwiki.blast.hk/wiki/Scripting_Basics#Arrays
Reply
#8

aha okay i show you the Screen shot now you can help me ? or do that by team viewr?
Reply
#9

Man! I said show us the array declaration. And don't expect me to come to TV.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)