24.07.2017, 09:33
never used dini, but it will look like that i guess
PHP Code:
stock LoadInventory(playerid)
{
new file[50], s[24];
GetPlayerName(playerid,s,24);
format(file,sizeof(file),"Inventory/%s.sav",s);
for(new i; i < 11; i++)format(s,sizeof(s),"Slot%d",i),PlayerInfo[playerid][Slot[i]] = strval(dini_Get(file,s));
return 1;
}