Not writing to the file - 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)
+--- Thread: Not writing to the file (
/showthread.php?tid=477708)
Not writing to the file -
Beckett - 25.11.2013
Код:
if(dialogid == DIALOG_NOTE2)
{
if(response)
{
new string[150];
if(strlen(inputtext) < 3) return SendClientMessage(playerid,RED,"You must write atleast 3 characters.");
PlayerInfo[playerid][pNote1] = strval(inputtext);
new INI:File = INI_Open(UserPath(playerid));
INI_WriteString(File, "pNote1",inputtext);
INI_Close(File);
format(string,sizeof(string),"[Note] You have successfully wrote %s in your note.",inputtext);
MSG(playerid,GREEN,string);
}
}
Everything goes OK, but it doesn't write anything to the file, why?
Re: Not writing to the file -
Beckett - 27.11.2013
Bump.
Re: Not writing to the file -
Lynet - 27.11.2013
Do you use SSI?
Re: Not writing to the file -
Beckett - 28.11.2013
Y_INI.