Raised This Month: $ Target: $400
 0% 

compiler error "internal error"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MichielM
Member
Join Date: Aug 2005
Old 09-10-2005 , 12:02   compiler error "internal error"
Reply With Quote #1

when i try to compile it shut down and give the "internal error"
what am i doing wrong? just want to spawn a solid model..

Code:
public model { new ent = create_entity("info_target") entity_set_origin(ent,-576 2045 -320); entity_set_model(ent,"models/xtreme/model.mdl"); entity_set_int(ent,EV_INT_solid, 2) drop_to_floor(ent)     return PLUGIN_HANDLED }
MichielM is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 09-10-2005 , 12:11  
Reply With Quote #2

Code:
public model() {     new Float:origin[3];     origin[0] = -576.0;     origin[1] = 2045.0;     origin[2] = -320.0;     new ent = create_entity("info_target");     entity_set_origin(ent,origin);     entity_set_model(ent,"models/xtreme/model.mdl");     entity_set_int(ent,EV_INT_solid, 2);     drop_to_floor(ent);     return PLUGIN_HANDLED; }
__________________
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
MichielM
Member
Join Date: Aug 2005
Old 09-10-2005 , 13:18  
Reply With Quote #3

tnx, error is gone.. but cant see the model. also there's no space where i cant walk true (if it would be invisible)
are u sure this is the correct way to spawn a model?
MichielM is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 09-10-2005 , 15:33  
Reply With Quote #4

entity_set_model and entity_set_string(ent,EV_SZ_model,...) actually do two different things, try both. Also, if you want it to be solid you'll have to set a bounding box via EV_VEC_mins and EV_VEC_maxs.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
MichielM
Member
Join Date: Aug 2005
Old 09-10-2005 , 16:02  
Reply With Quote #5

Then it should look like this?
also how do these mins and max work? how do i know these values??
please notice me if i'm doing it wrong
Code:
public model() {     new Float:origin[3];     origin[0] = -576.0;     origin[1] = 2045.0;     origin[2] = -320.0;     new ent = create_entity("info_target");     entity_set_origin(ent,origin);     entity_set_string(ent,EV_SZ_classname,"ts_model");     entity_set_model(ent,"models/xtreme/model.mdl");     entity_set_int(ent,EV_INT_solid, 2);     new Float:maxs[3] = {16.0,16.0,36.0}     new Float:mins[3] = {-16.0,-16.0,-36.0}     entity_set_size(ent,mins,maxs)     drop_to_floor(ent);     return PLUGIN_HANDLED; }
MichielM is offline
Reply


Thread Tools
Display Modes

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 14:19.


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