Y_ini Help
#1

How can you delete a file in Y_ini. I am using it so when the get kicked from my RP test(if they fail) but it currently saves there player file. I want it so when they get kicked it deletes there account. Please help
Reply
#2

https://sampwiki.blast.hk/wiki/Fremove
Reply
#3

Ok using that function How would do a path. Would this work

pawn Код:
fremove("Users\%s.ini", GetPlayerName(playerid));

//OR

fremove("Users\%s.ini"), GetPlayerName(playerid);
Reply
#4

Bump? Can someone help me...
Reply
#5

pawn Код:
new file[40];format(file,sizeof file,"Users\%s.ini", GetPlayerName(playerid));
fremove(file);
Reply
#6

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
pawn Код:
new file[40];format(file,sizeof file,"Users\%s.ini", GetPlayerName(playerid));
fremove(file);
pawn Код:
hrp.pwn(2260) : warning 202: number of arguments does not match definition
hrp.pwn(2260) : warning 202: number of arguments does not match definition
hrp.pwn(2267) : warning 202: number of arguments does not match definition
hrp.pwn(2267) : warning 202: number of arguments does not match definition
hrp.pwn(2288) : warning 202: number of arguments does not match definition
hrp.pwn(2288) : warning 202: number of arguments does not match definition
hrp.pwn(2299) : warning 202: number of arguments does not match definition
hrp.pwn(2299) : warning 202: number of arguments does not match definition
hrp.pwn(2316) : warning 202: number of arguments does not match definition
hrp.pwn(2316) : warning 202: number of arguments does not match definition
hrp.pwn(2323) : warning 202: number of arguments does not match definition
hrp.pwn(2323) : warning 202: number of arguments does not match definition
hrp.pwn(2348) : warning 202: number of arguments does not match definition
hrp.pwn(2348) : warning 202: number of arguments does not match definition
hrp.pwn(2355) : warning 202: number of arguments does not match definition
hrp.pwn(2355) : warning 202: number of arguments does not match definition
Reply
#7

pawn Код:
new file[40];format(file, sizeof(file),"Users\%s.ini", GetPlayerName(playerid));
fremove(file);
Reply
#8

Quote:
Originally Posted by Stephano
Посмотреть сообщение
pawn Код:
new file[40];format(file, sizeof(file),"Users\%s.ini", GetPlayerName(playerid));
fremove(file);
I get warning.... How do I fix it.
Reply
#9

Well, if you still get the warnings, then you could try using "/" instead of "\". I doubt it will actually fix it.

On my script that I'm working on, I have it as this:

pawn Код:
new string[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string, sizeof(string), "Accounts/%s.ini", name);
fremove(string);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)