Raised This Month: $ Target: $400
 0% 

Long to Coord


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 02-16-2007 , 14:07   Long to Coord
Reply With Quote #1

How do you covert a numbers from type ARG_LONG to type ARG_COORD?

An example would be in ClCorpse where the origin is in long.
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-16-2007 , 18:36   Re: Long to Coord
Reply With Quote #2

In AMXX scripting you basically only have two major data types: integer and float. Reading or setting an ARG_LONG should be done as an integer, whereas reading or setting an ARG_COORD should be done as a float (except for the default write_coord, it accepts them as integer for some reason). AMXX will convert them to the appropiate data type (long, short, etcetera) when sending to the game DLL.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 02-16-2007 , 19:41   Re: Long to Coord
Reply With Quote #3

Okay. I totally didnt asked the right question. But this is what im trying to do.

I saved the users origin in a global var with pev_origin. And it does not match the origin from ClCorpse event. So like, how do you use this origin if they are in long instead of coord? I was thinking to "convert" them some how.
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-16-2007 , 19:52   Re: Long to Coord
Reply With Quote #4

Quote:
Originally Posted by AMWiki
Note: Coord and Delay is in non-standard unknown format.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 02-16-2007 , 19:55   Re: Long to Coord
Reply With Quote #5

Damn. Thanks for the info.
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
Oskar
BANNED
Join Date: Jan 2007
Location: Slöinge, Falkenberg, Hal
Old 02-17-2007 , 08:39   Re: Long to Coord
Reply With Quote #6

Is it possible to set an entitys position using long?
Becose then you could get that entitys position using pev_origin.
Oskar is offline
Send a message via MSN to Oskar
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 00:39.


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