19.08.2009, 18:52 
	
	
	
		nice one
keep working 
	
	
	
	
keep working
 
	 
	 !
!| 
					Originally Posted by revenngeR  I am just wondering if you could add a system what saves your items.  And make it with menurows Btw Using this on my server as medkits and for more stuff  ! | 
| 
					Originally Posted by oOCharlieOo B  good scriping here | 
if(!strcmp(cmdtext[1],"SaveInv",true,14))
{
new File:inventory = fopen("CRP_Scriptfiles/Inventories/inv.ini", io_write);
new string[MAX_ITEM_NAME+20];
new amount = strval(cmdtext[16]);
GetPlayerName(amount,string,sizeof(string));
for(new index;index<MAX_ITEMS;index++)
{
PlayerInventoryPlayerItemData(playerid,index,string,amount);
format(string,sizeof(string),"%s -- %d",string,amount);
fwrite(inventory, string);
}
fclose(inventory);
}
