Raised This Month: $ Target: $400
 0% 

Modifying Entities


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Des12
Senior Member
Join Date: Jan 2005
Old 03-17-2006 , 23:09   Modifying Entities
Reply With Quote #1

Code:
new ent[33] = 0; // . . . public makeEnt(id) {     ent[id] = create_entity("info_target");         set_task(3.0,"delEnt",id);         return PLUGIN_HANDLED; } public delEnt(id) {         new entid = ent[id]; // Error here (index out of bounds)         remove_entitiy(entid);           return PLUGIN_HANDLED; }

I just cannot figure this out...Because entid and ent[id] should both be able to store a number. The index out of bounds error is most likely being cause by the ent[id], I cannot explain why.[/small]
__________________
-Dest Romano

www.JustRP.com
A TSRP Server

Quote:
Originally Posted by Brad
Don't you go be bringing reality into this.
Des12 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 16:36.


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