Switch, cases & returns.
#2

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.
Reply


Messages In This Thread
Switch, cases & returns. - by Carlton - 17.06.2010, 16:18
Re: Switch, cases & returns. - by Mike_Peterson - 17.06.2010, 19:06
Re: Switch, cases & returns. - by NewTorran - 17.06.2010, 19:19
Re: Switch, cases & returns. - by Carlton - 17.06.2010, 22:57

Forum Jump:


Users browsing this thread: 1 Guest(s)