SA-MP Forums Archive
Strangly Not Looping - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Strangly Not Looping (/showthread.php?tid=115438)



Strangly Not Looping - Eazy_Efolife - 24.12.2009

Hello everyone, I made a business system. After testing it with other people. I noticed only business id 0 was buyable. Then looking through my code. I noticed that I did loop the businesses. Strangly, I've been working to find out what's wrong. Every-time I goto a business besides business id 0 and do /buybusiness, It wont work and display a message!

http://pastebin.com/m7ff1be20


Re: Strangly Not Looping - MadeMan - 24.12.2009

Where that idx comes from?


Re: Strangly Not Looping - Eazy_Efolife - 24.12.2009

Quote:
Originally Posted by MadeMan
Where that idx comes from?
Yep, there was a mistake I changed all the 'idx' to 'i', But I'm still having this problem.


Re: Strangly Not Looping - Eazy_Efolife - 24.12.2009

Bump.


Re: Strangly Not Looping - dice7 - 24.12.2009

pawn Код:
printf("%d", sizeof(BusinessInfo));
to see if it even works


Re: Strangly Not Looping - Eazy_Efolife - 24.12.2009

Quote:
Originally Posted by dice7
pawn Код:
printf("%d", sizeof(BusinessInfo));
to see if it even works
The Print Message Came up as "500"


Re: Strangly Not Looping - dice7 - 24.12.2009

You mean no client messages are shown if the bussiness id isn't zero ?


Re: Strangly Not Looping - Eazy_Efolife - 24.12.2009

Quote:
Originally Posted by dice7
You mean no client messages are shown if the bussiness id isn't zero ?
When im not ad Business ID 0, and go to like Business id 1 or 2 etc.. It says:
Код:
You are not at a business entrance



Re: Strangly Not Looping - dice7 - 24.12.2009

Are the biz coords right ? Also try switching to IsPlayerInPointOfRange and updating the code in the first post


Re: Strangly Not Looping - Eazy_Efolife - 24.12.2009

Quote:
Originally Posted by dice7
Are the biz coords right ? Also try switching to IsPlayerInPointOfRange and updating the code in the first post
Yes, Because i can see the 3D textdraws. Also i updated the pastebin link