04.07.2013, 13:12
Not sure what's wrong, the dynamic pickup spawns correctly though.
pawn Code:
enum bizInfo
{
Type,
Price,
Lock,
Pickup,
Money,
Products,
ProductType,
Float:EX,
Float:EY,
Float:EZ,
Float:EA,
Float:IX,
Float:IY,
Float:IZ,
Float:IA,
ExInterior,
ExVirtualWorld,
IntInterior,
IntVirtualWorld,
Text3D: bizText,
Text[64],
Owner[48],
}
new BusinessInfo[MAX_BIZ][bizInfo];
pawn Code:
for(new idx = 1; idx < sizeof(BusinessInfo); idx++)
{
new string[40];
format(string, sizeof(string), BizPath, idx);
INI_ParseFile(string, "LoadBusiness_%s", .bExtra = true, .extra = idx );
new string2[100];
BusinessInfo[idx][Pickup] = CreateDynamicPickup(1272, 1, BusinessInfo[idx][EX], BusinessInfo[idx][EY], BusinessInfo[idx][EZ], BusinessInfo[idx][ExInterior]);
if(!strcmp("The State", BusinessInfo[idx][Owner])) format(string2, sizeof(string2), "[Business]\nID: {FFFFFF}%d\n{3399FF}Type: {FFFFFF}%s\n{3399FF}Status: {FFFFFF}For Sale\n{3399FF}Price: {FFFFFF}$%d", idx, BizType(idx), BusinessInfo[idx][Price]);
else format(string2, sizeof(string2), "[Business]\nID: {FFFFFF}%d\n{3399FF}Type: {FFFFFF}%s\n{3399FF}%s", idx, BizType(idx), BizLock(idx));
BusinessInfo[idx][bizText] = CreateDynamic3DTextLabel(string2, COLOR_DBLUE, BusinessInfo[idx][EX], BusinessInfo[idx][EX], BusinessInfo[idx][EX]+0.3, 15);
}