Raised This Month: $ Target: $400
 0% 

Help with get_distance


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 02-05-2005 , 00:59   Help with get_distance
Reply With Quote #1

Code:
new eatdistburger = 40.0;     if(get_distance(origin,eatburgerregister) <= eatdistburger) {         client_print(id, print_chat, "* [BUY] You have successfully bought a burger and now can eat WacArnolds and Burgerking.");         return PLUGIN_HANDLED     }

Any help here? anyone can buy food at ANYWHERE they want, I have no idea why. Help?
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 02-05-2005 , 10:05  
Reply With Quote #2

ANY HELP PLEASE+! I been trying to fix for HOURS
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 02-05-2005 , 10:58  
Reply With Quote #3

get_distance doesnt take floats. so you will have to convert origin to a regular # and change
new eatdistburger = 40.0;
to
new eatdistburger = 40;
Freecode is offline
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 02-05-2005 , 13:34  
Reply With Quote #4

Quote:
Originally Posted by Freecode
get_distance doesnt take floats. so you will have to convert origin to a regular # and change
new eatdistburger = 40.0;
to
new eatdistburger = 40;
I found out the problem earlier today, thanks anyway though.
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode