/unban problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /unban problem (
/showthread.php?tid=171227)
/unban problem -
vection - 25.08.2010
pawn Код:
if (strcmp(cmd, "/unban", true)==0)
{
if (PlayerInfo[playerid][pAdmin] >= 5)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /unban [playername]");
return 1;
}
else
{
new filename[256];
new Float:hFile;
hFile = format(filename,sizeof(filename), "%s.ini", tmp);
dini_IntSet(filename, "Ban", false);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
}
return 1;
}
the problem is i got the file details like this:
pawn Код:
Ban=1Key=1251DriveLicense=1
but .. when i unban user, its change it to:
pawn Код:
Ban=1
Key=1251
DriveLicense=1
then the file not working anymore. how to fix this ?
Re: /unban problem -
vection - 25.08.2010
what do you mean?
Re: /unban problem -
vection - 25.08.2010
its not working well, steal got the problem.
Re: /unban problem -
mrcoolballs - 26.08.2010
make sure its a back slash \ not the regular slash like you use commands so not /
Re: /unban problem -
vection - 26.08.2010
when i put \n.
i need it will stay in txt format but in .ini