Raised This Month: $ Target: $400
 0% 

Origin of an entity?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 03-01-2006 , 21:43  
Reply With Quote #3

My origin cannot be a float, and it keeps giving me errors when I try to use float_to_str.

Code:
public item_c4_detonator() {     new arg[32]     read_argv(1,arg,31)         new id = str_to_num(arg)         for(new i=0;i<4;i++) {         new entid = find_ent_by_owner(id,"info_target",id)                 new Float:origin[3]         entity_get_vector(entid,EV_VEC_origin,origin)         //get_brush_entity_origin(entid,vector)             new norigin[3]         float_to_str(Float:origin,norigin,3)             basic_explosion(norigin)     }     //format(origin,0,"%f",vector[0])     //format(origin,1,"%f",vector[1])     //format(origin,2,"%f",vector[2])         return PLUGIN_HANDLED }
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
 



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 20:17.


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