Strangly Not Looping
#1

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
Reply
#2

Where that idx comes from?
Reply
#3

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

Bump.
Reply
#5

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

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

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

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
Reply
#9

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)