24.10.2013, 13:13
First of all, I just want to point out that one of your braces is facing the wrong way. (Opening brace instead of a closing brace)
This should be working...
EDIT: Somehow, two slippery buggers managed to post before I finished writing this up.
pawn Код:
if(dialogid == 1)
{
if(response)
{
if(strlen(inputtext) > 0)
{
new File[100];
format(File, sizeof(File), PATH, inputtext);
if(!fexist(File))
{
new INI:ACCOUNT = INI_Open(File);
INI_WriteInt(ACCOUNT, "Test", 1);
INI_Close(ACCOUNT);
}
}
}
return 1;
}
EDIT: Somehow, two slippery buggers managed to post before I finished writing this up.