SO, im trying to make a account system of Unique ID using the ini parser.
main problem is, that after a kill, im giving the killer +1 score and using SaveAccount ( killer )
function SaveAccount(player)
{
WriteIniInteger( "data/"+player.UniqueID+".ini", "acc", "score", player.Score)
}
There is a error that cannot open file data/ player uid.ini in the server.exe
Screenshot:
http://imgur.com/btRouh9
i dont know how to fix :(
Have you loaded ini plugin? And do you have uid.ini file?
ini plugin is loaded, i dont have uid ini file and idk how to create
ini plugin wont automatic create .ini file, you must create it manually
but how? if i use function file("blabla","w") on onPlayerJoin It will rewite it
No Open notepad add somethig inside it save it as uid.ini
but man, i want make it working for all players, not just me :c its like account system, i dont want everytime create files manually
Wt* you have to create it once Then data willbe automatically inserted in hat with the code
Well you have to create the file manually through scripts
@Kewun through squirrel's very own file functions since ini plugin doesn't create the file if its not there.
OldIni <- WriteIni;
function WriteIni( .../* The params*/ )
{
file(filename,"a+").close();
OldIni( ... );
}
Just to get an idea :)
Quote from: Doom_Kill3R on Jul 15, 2016, 12:38 PMWell you have to create the file manually through scripts @Kewun through squirrel's very own file functions since ini plugin doesn't create the file if its not there.
aaaaaaaaaah
now i know, i have to create a Accounts.ini, then put the player names, stats there right?
ok, done, fixed.
thank you all