Raised This Month: $ Target: $400
 0% 

Copy and paste ents


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mateo10
Veteran Member
Join Date: Jan 2006
Old 06-09-2007 , 16:02   Copy and paste ents
Reply With Quote #1

This function:
Code:
public function_paste_ent( id ) {     if( ! get_pcvar_num( p_enable ) )     {         return PLUGIN_HANDLED;     }         if( ! is_user_admin( id ) )     {         return PLUGIN_HANDLED;     }         if( ! g_hascopied )     {         return PLUGIN_HANDLED;     }         new ent = engfunc( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "func_wall" ) );         new Float: xorigin[ 3 ];     get_user_hitpoint( id, xorigin );         engfunc( EngFunc_SetModel, ent, g_model );     engfunc( EngFunc_SetSize, ent, g_mins, g_maxs );         set_pev( ent, pev_mins, g_mins );     set_pev( ent, pev_maxs, g_maxs );     set_pev( ent, pev_absmin, g_mins );     set_pev( ent, pev_absmax, g_maxs );         engfunc( EngFunc_SetOrigin, ent, xorigin );         set_pev( ent, pev_solid, SOLID_BBOX );     set_pev( ent, pev_movetype, MOVETYPE_FLY );     set_pev( ent, pev_takedamage, DAMAGE_NO );         static Float: rvec[ 3 ];     pev( id, pev_v_angle, rvec );         rvec[ 0 ] = 0.0;         set_pev( ent, pev_angles, rvec );         engfunc(EngFunc_DropToFloor, ent );         client_print( id, print_center, "Ent succefully pasted!" );         return PLUGIN_HANDLED; }
gives me this error:
Code:
L 06/09/2007 - 22:12:07: [FAKEMETA] Invalid entity
L 06/09/2007 - 22:12:07: [AMXX] Displaying debug trace (plugin "entmod.amxx")
L 06/09/2007 - 22:12:07: [AMXX] Run time error 10: native error (native "engfunc")
L 06/09/2007 - 22:12:07: [AMXX]    [0] entmod.sma::function_paste_ent (line

Last edited by mateo10; 06-10-2007 at 03:49.
mateo10 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 10:44.


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