Raised This Month: $ Target: $400
 0% 

[Solved] Saving entities


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 05-31-2009 , 12:34   Re: Saving entities
Reply With Quote #4

Something like this then..

PHP Code:
   new szData[128];
   new 
sz1[16], sz2[16], sz3[16];
   new 
Float:vOrigin[3];
   new 
file fopen(g_File"rt");
 
   while (!
feof(file))
   {
       
fgets(fileszData128);
       
parse(szDatasz116sz216sz316);
 
       
vOrigin[0] = str_to_float(sz1);
       
vOrigin[1] = str_to_float(sz2);
       
vOrigin[2] = str_to_float(sz3);
   } 
Correct? Thanks a bunch, ark and digital.

EDIT:

How can I remove an entity? Could I use get_user_aiming and get the classname of the ent and remove it?
__________________
Achievements API - a simple way for you to create your OWN custom achievements!

Last edited by Xellath; 05-31-2009 at 12:38.
Xellath 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 13:51.


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