11.04.2013, 05:00
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