Raised This Month: $ Target: $400
 0% 

Crash on entity creation


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 07-10-2006 , 16:01   Crash on entity creation
Reply With Quote #1

When I create a entity like this it's fine:

Code:
    client_print(id, print_chat, "Created ent")     new ent = create_entity("info_target")     entity_set_string(ent,EV_SZ_classname,"TeleCity")     entity_set_model(ent,"models/player/arctic/arctic.mdl")     entity_set_origin(ent,origin)     entity_set_int(ent, EV_INT_solid, SOLID_BBOX)     entity_set_int(ent, EV_INT_movetype, MOVETYPE_FLY)     new Float:mina[3]     mina[0]=MINUS_ORIGIN     mina[1]=MINUS_ORIGIN     mina[2]=MINUS_ORIGIN     new Float:maxa[3]     maxa[0]=PLUS_ORIGIN     maxa[1]=PLUS_ORIGIN     maxa[2]=PLUS_ORIGIN     entity_set_size(ent,mina,maxa)

But when I comment out the model setting it crashes:

Code:
    client_print(id, print_chat, "Created ent")     new ent = create_entity("info_target")     entity_set_string(ent,EV_SZ_classname,"TeleCity")     //entity_set_model(ent,"models/player/arctic/arctic.mdl")     entity_set_origin(ent,origin)     entity_set_int(ent, EV_INT_solid, SOLID_BBOX)     entity_set_int(ent, EV_INT_movetype, MOVETYPE_FLY)     new Float:mina[3]     mina[0]=MINUS_ORIGIN     mina[1]=MINUS_ORIGIN     mina[2]=MINUS_ORIGIN     new Float:maxa[3]     maxa[0]=PLUS_ORIGIN     maxa[1]=PLUS_ORIGIN     maxa[2]=PLUS_ORIGIN     entity_set_size(ent,mina,maxa)

Why?
__________________
Sig(h)!
Obbin 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 08:08.


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