I'm kind of confused since I haven't touched all the natives thing...
I added this 2 blocks to the sp file
PHP Code:
public Native_ForceSaveClientData(Handle:plugin, numParams)
{
/* Save all the data like in OnClientDisconnect, just in case? */
Store_SaveClientData(GetNativeCell(1));
Store_SaveClientInventory(GetNativeCell(1));
Store_SaveClientEquipment(GetNativeCell(1));
return 1;
}
public Native_ReloadClientInventory(Handle:plugin, numParams)
{
/* (Re-)load inventory stuff... */
Store_LoadClientInventory(GetNativeCell(1));
return 1;
}
PHP Code:
CreateNative("Store_ForceSaveClientData", Native_ForceSaveClientData);
CreateNative("Store_ReloadClientInventory", Native_ReloadClientInventory);
and compiled it, and it created smx file which is great.
now I don't understand what to include? in my plugin currently, I'm including the inc file and not the sp file... I need to include the sp file or the smx? (pretty sure it's not possible to include smx file but ima ask anyway xD)
and I have side question, doing this method means that anyone who wants to use my plugin needs to download this store version?
__________________