Switch, cases & returns.
#4

Quote:
Originally Posted by PhonicStudios
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.
Incorrect, read your statement in words not in a coding language.

" If the Business Products is less than 0 ", why would I check if a business's products are not even 0, I never heard of something with a negative amount of products.
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)