AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with get_distance (https://forums.alliedmods.net/showthread.php?t=9961)

Smokey485 02-05-2005 00:59

Help with get_distance
 
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 02-05-2005 10:05

ANY HELP PLEASE+! I been trying to fix for HOURS

Freecode 02-05-2005 10:58

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;

Smokey485 02-05-2005 13:34

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.


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

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