Hi, how can i fix it this warning: warning 213: tag mismatch (at line 53/54/55)
Код:
#include <a_samp>
#include <ZCMD>
stock AddLogLine( field[ ], file[ ], input[ ] )
{
new string[128];
format(string, 128, "%s: %s\r\n", field, input);
new File:fhandle;
if(fexist(file)) {
printf("Creating file '%s' because theres no file created with that name.", file);
}
fhandle = fopen(file,io_append);
fwrite(fhandle,string);
fclose(fhandle);
return 1;
}
stock WriteLog(file[], input[])
{
File:filevar;
if(!fexist(file)) filevar = fopen(file, io_write);
else filevar = fopen(file, io_append);
if(!fexist(file))
{
printf("Failed to load '%s'", file);
return 0;
}
else
{
new str[512];
format(str, sizeof(str), "%s\r\n", input);
fwrite(filevar, input);
fclose(filevar);
return 1;
}
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 181 && response == 1)
{
new string[256];
if(!fexist("DataBase.txt"))
{
new File:create = fopen("DataBase.txt", io_write);
fclose(create);
}
format(string, sizeof(string), "%s\r\n", inputtext);
new Fike:pos=fopen("DataBase.txt", io_append);
fwrite(pos, string);
fclose(pos);
}
return 1;
}
COMMAND:myemail(playerid, params[])
{
ShowPlayerDialog(playerid, 181, DIALOG_STYLE_INPUT, "DataBase Registering", "{CACA11}Insert your mail!\n{108XII}Type your mail and pres Ok", "Ok", "");
return 1;
}