ok im not quite sure how to attack this
is it possible to get my script to create folders on my host server?
if not are there any other good was to set up an achievements script?
players complete certain tasks and they are rewarded an achievement, specifically when a new player who hasnt been registered to the login system i have made, will have their name and IP logged to a file (no problem here, problem comes up shortly) and then a folder named as the players name will be made in the Players folder i have made (Players folder is in Root part of hosts folder)
then when they complete the certain achievement, a file named as the name of the achievement will be written
but i have noticed that simply trying to write a file to a folder that doesnt exist doesnt create the folder so how do i do it script wise?
how would i get the script to read the file into a var which is then split with : being the delimiter, left is the players name and right is the IP, i have already tried this:
If FileExists('Players/'+idtoname+'.txt') then begin
//if i put writeconsole messages here they show up fine
PStat:= ReadFile('Players/'+idtoname(ID)+'.txt'); //should write something like <playername>:<IP> but without the <>s
if PStat = IDtoname(ID)+':'+GetPlayerStat(ID,'IP') then begin //checks to make sure tht payer details are the same as when first registered
// a few writeconsole messages here, but they wont show up
end;
end;
so it must be that the second if statement isnt launching correctly, so i mustnt have written the player check correctly, what am i missing? currently dont need the string splitter yet but i will need it soon