RSSy MYGO.pl Opublikowano Luty 9, 2021 o 14:41 RSSy Udostępnij Opublikowano Luty 9, 2021 o 14:41 Hi. I created a plugin and included the vault file. But the data is not saved in the file as I want. What is the solution? PHP Code: // Save Points public SaveData(id) { new AuthID[35] get_user_authid(id,AuthID,34) new vaultkey[64],vaultdata[256] format(vaultkey,63,"%s",AuthID) format(vaultdata,255,"%i#",PlayerPoints[id]) nvault_set(g_vault,vaultkey,vaultdata) } PHP Code: // Load Points public LoadData(id) { new AuthID[35] get_user_authid(id,AuthID,34) new vaultkey[64],vaultdata[256] format(vaultkey,63,"%s",AuthID) format(vaultdata,255,"%i#",PlayerPoints[id]) nvault_get(g_vault,vaultkey,vaultdata,255) replace_all(vaultdata, 255, "#", " ") new playerpoints[32] parse(vaultdata, playerpoints, 31) PlayerPoints[id] = str_to_num(playerpoints) } I would like the data to be saved in the vault file as follows: Code: ("%s-points%i", AuthID, PlayerPoints) Points and Steam IDs are saved, but as follows: Code: ("%s%i", AuthID, PlayerPoints) I cant add "-points" to the file. Thanks Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi