Nur ein Teil der Geschäfte werden geladen.
http://prntscr.com/myfmpb ich habe 9 Einträge
Das letzte Biz, was ich eingetragen habe wird nicht erstellt. Aus Vergangenheit weiß ich, dass es nicht das einzige Biz ist.
Woran könnte es liegen?
enum bizinteriors{
Name[35],
Interior,
Welt,
Biztype,
Float:IX,Float:IY,Float:IZ// Exit Position
}
stock const BizInts[][bizinteriors]={
{"dummy",0,0,0,/*InteriorPos*/0.0,0.0,0.0},
{"dummy",0,0,0,/*InteriorPos*/0.0,0.0,0.0},
{"dummy",0,0,0,/*InteriorPos*/0.0,0.0,0.0},
{"dummy",0,0,0,/*InteriorPos*/0.0,0.0,0.0},
{"dummy",0,0,0,/*InteriorPos*/0.0,0.0,0.0},
{"dummy",0,0,0,/*InteriorPos*/0.0,0.0,0.0},
{"dummy",0,0,0,/*InteriorPos*/0.0,0.0,0.0},
{"(Beispiel Biz)",0,0,0,/*InteriorPos*/0.0,0.0,0.0}
};
Alles anzeigen
forward BizLaden();
public BizLaden()
{
new rows;
cache_get_row_count(rows);
if(rows==0) return print("(*)Geschäfte konnten nicht geladen werden.");
for(new bizid = 0; bizid < sizeof(bInfo); bizid++)
{
//-------------------------------------------------
}
UpdateBizInfos();
return 1;
}
Alles anzeigen
stock UpdateBizInfos()
{
new string[228];
for(new b;b<sizeof(bInfo);b++)
{
format(string, sizeof(string), "X",BizType[bInfo[b][biztype]],BizType2[bInfo[b][biztype2]],OpenTime[bInfo[b][bopentime]],bInfo[b][bwaren],bInfo[b][bmaxwaren],bInfo[b][bbesitzer],BizBefehl[bInfo[b][bizbefehl]] );
CreateDynamic3DTextLabel(string,GREEN,bInfo[b][bX],bInfo[b][bY],bInfo[b][bZ],20.0);
CreateDynamicPickup(1318,1,bInfo[b][bX],bInfo[b][bY],bInfo[b][bZ]); // 24/7 Neulingspawn1559
}
return 1;
}
Alles anzeigen