Loading Objects
#3

pawn Код:
//line before this:
SetDynamicObjectMaterial(FurnitureInfo[houseid][total][fObject], 0, FurnitureInfo[houseid][total][fMode], FurnitureInfo[houseid][total][fTxd], FurnitureInfo[houseid][total][fTexture], 0);
//add this
printf("Object: %d, mode %d, Txd %d, texture %d", FurnitureInfo[houseid][total][fObject], FurnitureInfo[houseid][total][fMode], FurnitureInfo[houseid][total][fTxd], FurnitureInfo[houseid][total][fTexture]);
Then run the server and look at server_log, you'll have all your texture data, maybe you'll see something interesting there.

My wild guess is this:
pawn Код:
FurnitureInfo[houseid][total][fPosRZ] = cache_get_row_float(total, 12);
FurnitureInfo[houseid][total][fMode] = cache_get_row_int(total, 15);
You suddenly jump from 12 to 15 - what about 13 and 14? Check your mysql_log, you might have there a warning about selecting nonexistent field, that would confirm my suspicions.
Reply


Messages In This Thread
Loading Objects - by Dominic123 - 09.09.2016, 21:20
Re: Loading Objects - by Dominic123 - 10.09.2016, 09:23
Re: Loading Objects - by Misiur - 10.09.2016, 09:30
Re: Loading Objects - by thefirestate - 10.09.2016, 09:32
Re: Loading Objects - by Dominic123 - 10.09.2016, 09:38
Re: Loading Objects - by Dominic123 - 10.09.2016, 10:58

Forum Jump:


Users browsing this thread: 1 Guest(s)