17.06.2010, 19:06
I am not totally sure but if(BizData[i][bProducts] < 1) doesnt this mean the shop has products? and the next line is
return SendClientMessage(playerid, COLOR_SYSTEM, "[Error]: This store has no products.");
Im not very experienced but doesnt this mean even if there are items it still says the error?
try doing: if(BizData[i][bProducts] < 0) try this and check if this helps.
If this helps im very glad to help you, coz i learned something then too.
return SendClientMessage(playerid, COLOR_SYSTEM, "[Error]: This store has no products.");
Im not very experienced but doesnt this mean even if there are items it still says the error?
try doing: if(BizData[i][bProducts] < 0) try this and check if this helps.
If this helps im very glad to help you, coz i learned something then too.