Icons disappearing... -
While creating biz's or houses their icon is disappearing after sometime for some reason, anyone got an idea why this is happening?
I've searched for the problem resolving but I can't understand where the problem is...
Re: Icons disappearing... -
Re: Icons disappearing... -
Код:
CMD:createbusiness(playerid, params[])
{
new string[128];
if(PlayerInfo[playerid][pAdmin] < 5) {
SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use that command!");
return 1;
}
if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
{
SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
return 1;
}
for(new idx=1; idx<MAX_BUSINESS; idx++)
{
if(!BizInfo[idx][bType])
{
// Getting Business Setup
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
// Making Business
BizInfo[idx][bOwned] = 0;
BizInfo[idx][bType] = 1;
BizInfo[idx][bStatus] = 1;
format(BizInfo[idx][bOwner], 128, "Nobody");
BizInfo[idx][bBInteriorWorld] = 0;
BizInfo[idx][bX] = X;
BizInfo[idx][bY] = Y;
BizInfo[idx][bZ] = Z;
BizInfo[idx][bInteriorX] = X;
BizInfo[idx][bInteriorY] = Y;
BizInfo[idx][bInteriorZ] = Z;
BizInfo[idx][bInteriorA] = 0;
BizInfo[idx][bCustomInterior] = 0;
BizInfo[idx][bCustomExterior] = 0;
BizInfo[idx][bProductsPrice0] = 1;
BizInfo[idx][bProductsPrice1] = 1;
BizInfo[idx][bProductsPrice2] = 1;
BizInfo[idx][bProductsPrice3] = 1;
BizInfo[idx][bProductsPrice4] = 1;
BizInfo[idx][bProductsPrice5] = 1;
BizInfo[idx][bProductsPrice6] = 1;
BizInfo[idx][bProductsPrice7] = 1;
BizInfo[idx][bProductsPrice8] = 1;
BizInfo[idx][bProductsPrice9] = 1;
BizInfo[idx][bProductsPrice10] = 1;
BizInfo[idx][bProductsPrice11] = 1;
BizInfo[idx][bProductsPrice12] = 1;
BizInfo[idx][bProductsPrice13] = 1;
BizInfo[idx][bProductsPrice14] = 1;
BizInfo[idx][bBizFee] = 0;
BizInfo[idx][bMoney] = 0;
BizInfo[idx][bSupplies] = 0;
BizInfo[idx][bPickupModel] = 0;
BizInfo[idx][bLevel] = 1;
BizInfo[idx][bPrice] = 99999999;
BizInfo[idx][bNoteditable] = 0;
BizInfo[idx][bPickup] = CreateDynamicPickup(1272, 1, X, Y, Z, 0);
format(string, sizeof(string), "This business its not yet ready\n ID: %d\nPlease change the business type", idx);
BizInfo[idx][bText] = CreateDynamic3DTextLabel(string, COLOR_WHITE, X, Y, Z, 3);
format(string, sizeof(string), "AdmcCmd: %s has created business ID %d.", GetPlayerNameEx(playerid), idx);
ABroadCast(COLOR_LIGHTRED, string, 2);
Log("logs/biz.log", string);
idx = MAX_BUSINESS;
}
}
return 1;
}
Re: Icons disappearing... -