Raised This Month: $ Target: $400
 0% 

[ENGINE.INC] is_in_viewcone()


  
 
 
Thread Tools Display Modes
Author Message
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 08-30-2005 , 17:15   [ENGINE.INC] is_in_viewcone()
#1

AMXX seems to read this as an unknown function:
Quote:
L 08/30/2005 - 16:072: [AMXX] Plugin "matrixreloaded.amxx" failed to load: Plugin uses an unknown function (name "is_in_viewcone") - check your modules.ini.
This is my simple code:
Code:
for(new player = 1; player <= get_maxplayers(); player++) {     if(is_user_alive(player) && player != id)     {         new Float:fOrigin[3];         entity_get_vector(player, EV_VEC_origin, fOrigin);         if(is_in_viewcone(id, fOrigin))             g_bScared[player] = true;     } }

I have engine loaded in my modules.ini and every other engine func in my plugin seems to work just fine.
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
faluco
Developer
Join Date: Mar 2005
Location: Valencia, Spain
Old 08-30-2005 , 17:27  
#2

i think the include file is wrong, it should be in_view_cone
from engine.cpp
Code:
static cell AMX_NATIVE_CALL in_view_cone(AMX *amx, cell *params)
faluco is offline
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 08-30-2005 , 17:39   correct
#3

right you are, I just changed my include and it works now.
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 08-30-2005 , 19:23  
#4

I've changed to is_in_viewcone in the module. I think it sounds better?
Johnny got his gun is offline
 



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 02:15.


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