forward AdminLogs(string[]); public AdminLogs(string[]); { new a_msg[200]; format(a_msg,sizeof (a_msg),"%s",string); new File:hFile; hFile = fopen("/S_logs/Admin_Logs", io_append); fwirte(hFile, a_msg); fclose(hFile); }
C:\Users\John\Desktop\Server\filterscripts\TuNiAdmin.pwn(232) : error 055: start of function body without function header
C:\Users\John\Desktop\Server\filterscripts\TuNiAdmin.pwn(234) : error 021: symbol already defined: "format"
C:\Users\John\Desktop\Server\filterscripts\TuNiAdmin.pwn(236) : error 010: invalid function or declaration
C:\Users\John\Desktop\Server\filterscripts\TuNiAdmin.pwn(238) : error 021: symbol already defined: "fclose"
C:\Users\John\Desktop\Server\filterscripts\TuNiAdmin.pwn(241) : warning 203: symbol is never used: "a_msg"
C:\Users\John\Desktop\Server\filterscripts\TuNiAdmin.pwn(241) : warning 203: symbol is never used: "hFile"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
forward AdminLogs(string[]); // have this at the top of your script after #include <a_samp>
public AdminLogs(string[])
{
new a_msg[200];
format(a_msg,sizeof (a_msg),"%s",string);
new File:hFile;
hFile = fopen("/S_logs/Admin_Logs", io_append);
fwirte(hFile, a_msg);
fclose(hFile);
}
pawn Код:
|
undefined symbol "fwirte"
forward AdminLogs(string[]); // have this at the top of your script after #include <a_samp>
public AdminLogs(string[])
{
new a_msg[200];
format(a_msg,sizeof (a_msg),"%s",string);
new File:hFile;
hFile = fopen("/S_logs/Admin_Logs", io_append);
fwrite(hFile, a_msg);
fclose(hFile);
}
fwirte(hFile, a_msg);
to
fwrite(hFile, a_msg);