I just got problem with my business system. I already moved it to the other place and its work properly. But after i am restart the server, the text is gone but the biz is still there (i use /bizstats) for info. After that, i have to do /bizmove again to display the text. please help..
pawn Код:
enum bizzes {
bizid,
bizname[MAX_STRING],
biztype,// 1 = bank,2 = no comps(casino..), 3 = gunshop, 4 = heaven, 5 simple biz // 6 altro tipo interior // 7 = PB // 8 = bar // 9 = clothesshop // 10 = drugshop // 11 = PAY N SPRAY // 12 = bike dealership // 13 = normal car dealership // 14 = luxus car dealership // 15 = foodshop // 16 = drug factory // 17 = noob dealership // 18 = aircraft dealership // 19 = boat dealership // 20 = heavy dealership // 21 = job dealership // 22 = hardware shop // 23 = nitro garage // 24 = wheel mod shop
Float:bizenter_x,
Float:bizenter_y,
Float:bizenter_z,
Float:bizexit_x,
Float:bizexit_y,
Float:bizexit_z,
bizinterior,
vbiz,
compsflag,
Text3D:bLabel,
tmpowner[MAX_STRING],
biztax,
bPickup,
biztext[MAX_STRING],
bizarea,
}
pawn Код:
for(new b=0;b<sizeof(biz);b++)
{
/*if(biz[b][biztype]==5 && biz[b][compsflag]==ALCHOOL || biz[b][biztype]==8) biz[b][bPickup] = CreateDynamicPickup(1314, 1,biz[b][bizenter_x],biz[b][bizenter_y],biz[b][bizenter_z], -1);
else if(biz[b][biztype]==5 && biz[b][compsflag]==STUFFS) biz[b][bPickup] = CreateDynamicPickup(1239, 1,biz[b][bizenter_x],biz[b][bizenter_y],biz[b][bizenter_z],-1);
else if(biz[b][biztype]==3 || biz[b][biztype]==10) biz[b][bPickup] = CreateDynamicPickup(1254, 1,biz[b][bizenter_x],biz[b][bizenter_y],biz[b][bizenter_z],-1);
else if(biz[b][biztype]==2) biz[b][bPickup] = CreateDynamicPickup(1274, 1,biz[b][bizenter_x],biz[b][bizenter_y],biz[b][bizenter_z],-1);
else biz[b][bPickup] = CreateDynamicPickup(1239, 1,biz[b][bizenter_x],biz[b][bizenter_y],biz[b][bizenter_z],-1);*/
format(nomefile,sizeof(nomefile),"%s.txt",biz[b][bizname]);
new bizcommands[ 250 ];
switch(biz[b][biztype])
{
case 1: myStrcpy(bizcommands, "/deposit /withdraw /balance");
case 3,5,6,10,12..21: myStrcpy(bizcommands, "/buy");
case 11: myStrcpy(bizcommands, "/car respray");
case 8: myStrcpy(bizcommands, "/drink");
case 9: myStrcpy(bizcommands, "/clothes");
case 24: myStrcpy(bizcommands, "/car wheels");
default: myStrcpy(bizcommands, "N/A");
}
// CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
format(tmps, 128, "{0358d8}[ {ffffff}%s{0358d8} ]\n{0358d8}Owner: {ffffff}%s\n{0358d8}Commands: {ffffff}%s", NoUnderscore(biz[b][biztext]), NoUnderscore(dini_Get(nomefile,"owner")), bizcommands);
biz[b][bLabel] = CreateDynamic3DTextLabel(tmps, COLOR_PLAYER_SPECIALBLUE, biz[b][bizenter_x],biz[b][bizenter_y],biz[b][bizenter_z]+0.3, 20.0);
biz[b][biztax] = dini_Int(nomefile, "taxrate");
biz[b][vbiz] = b+1;
biz[b][bizarea] = CreateDynamicCircle(biz[b][bizenter_x],biz[b][bizenter_y], 0.9);
}