SA-MP Forums Archive
[Help]Help please i got some errors help me - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help]Help please i got some errors help me (/showthread.php?tid=429766)



[Help]Help please i got some errors help me - joykingstone - 11.04.2013

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



Re: [Help]Help please i got some errors help me - JaKe Elite - 11.04.2013

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




Re: [Help]Help please i got some errors help me - joykingstone - 11.04.2013

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?


Re: [Help]Help please i got some errors help me - Faisal_khan - 11.04.2013

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.


Re: [Help]Help please i got some errors help me - joykingstone - 11.04.2013

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?


Re: [Help]Help please i got some errors help me - joykingstone - 11.04.2013

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


and here is the screen shot




Re: [Help]Help please i got some errors help me - Faisal_khan - 11.04.2013

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


Re: [Help]Help please i got some errors help me - joykingstone - 11.04.2013

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


Re: [Help]Help please i got some errors help me - Faisal_khan - 11.04.2013

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