Danke, habs!
Ich mache nichts anders als bei dem anderen Array, trotzdem gibt er mir Array index out of bounds waurm?
http://prntscr.com/nzih3w
Der Fehler tritt auf seitdem ich das mit BizTextFarben drin habe.
Vorher ging es ohne, aber ich habe ja nichts anders gemacht.
C
stock UpdateBizInfos()
{
new string[228];
for(new b;b<sizeof(bInfo);b++)
{
format(string, sizeof(string), "%s, %s",BizTextFarbe[bInfo[b][biztextfarbe]],BizType[bInfo[b][biztype]] );
CreateDynamic3DTextLabel(string,GREEN,bInfo[b][bX],bInfo[b][bY],bInfo[b][bZ],20.0);
}
return 1;
}
C
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++)
{
cache_get_value_name_int(bizid,"biztype",bInfo[bizid][biztype]);
cache_get_value_name_int(bizid,"bizcolor",bInfo[bizid][biztextfarbe]);