Raised This Month: $ Target: $400
 0% 

engine.inc problems


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kosmo111
New Member
Join Date: Sep 2004
Old 05-21-2005 , 23:17   engine.inc problems
Reply With Quote #1

Several of the functions located in the engine.inc include file arent recognized when i use them. The .sma file complies without a problem but when it tries to load the plugin in game it says "plugin uses unknown function"

Some of the functions that dont seem to work for me are--
entity_set_origin
entity_get_string
is_valid_ent

I have the file included in the .sma .... and I'm kinda stumped.. any help is appreciated
kosmo111 is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-21-2005 , 23:20  
Reply With Quote #2

And the Engine module IS enabled?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
kosmo111
New Member
Join Date: Sep 2004
Old 05-21-2005 , 23:24  
Reply With Quote #3

wow, um ok thanks.... kinda feel a little stupid now.. that was the problem.....

But on an unrelated note, is there a command to get the origin of an entity? I havent coded since regular amx and couldnt find a replacement for the get_entity_origin command.
kosmo111 is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-21-2005 , 23:29  
Reply With Quote #4

Code:
new Float:origin[3] entity_get_vector(id,EV_VEC_origin,origin)
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 05-21-2005 , 23:31  
Reply With Quote #5

Using Engine Module:
Code:
// Get Origin Vector as Float new Float:fOrigin[3] entity_get_vector( playerID, EV_VEC_origin, fOrigin ) // Convert Origin Vector to Integer (requires engine_stocks.inc) new iOrigin[3] FVecIVec( fOrigin, iOrigin )

Then you can do what you want with either Origin (Float vec or Int vec)

Hope that helps!

Edit:
v3x you posted same time as me!

Edit2:
Haha! We did it again!
xeroblood is offline
Send a message via MSN to xeroblood
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-21-2005 , 23:31  
Reply With Quote #6

Looks like we were posting @ the same time, xero.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
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 07:15.


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