Raised This Month: $ Target: $400
 0% 

Problem with creating new entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MyPc
Senior Member
Join Date: Sep 2011
Old 12-22-2011 , 13:29   Problem with creating new entity
Reply With Quote #1

PHP Code:
new szLine256 ], szOrigin164 ], szOrigin264 ], szOrigin364 ];
ArrayGetStringiOriginsfile_sizeszFile) - 1szLinesizeof szLine );
parseszLineszOrigin1sizeof szOrigin1 1szOrigin2sizeof szOrigin2 1szOrigin3sizeof szOrigin3 );
new 
Float:flOrigin]
flOrigin] = str_to_floatszOrigin1 );
flOrigin] = str_to_floatszOrigin2 );
flOrigin] = str_to_floatszOrigin3 );

new 
iEnt create_entity"info_target" );

entity_set_stringiEntEV_SZ_classnameszChickenModel );

entity_set_modeliEntszChickenModel ) ;

entity_set_originiEntflOrigin );

entity_set_intiEntEV_INT_solidSOLID_BBOX );

spawniEnt );

return 
PLUGIN_CONTINUE
Why doesn't the chicken spawns at the first line's origin.

Last edited by MyPc; 12-23-2011 at 07:38. Reason: Showing the code after it is fixed
MyPc is offline
MyPc
Senior Member
Join Date: Sep 2011
Old 12-22-2011 , 13:45   Re: Problem with creating new entity
Reply With Quote #2

Never mind fixed !
MyPc is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-23-2011 , 05:54   Re: Problem with creating new entity
Reply With Quote #3

Don't delete your post after your problem was fixed, someone could find it useful.
__________________
xPaw 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 12:09.


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