PDA

View Full Version : Any help?


BoU3A
21/10/2013, 11:07 PM
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\TuNiAdm in.pwn(232) : error 055: start of function body without function header
C:\Users\John\Desktop\Server\filterscripts\TuNiAdm in.pwn(234) : error 021: symbol already defined: "format"
C:\Users\John\Desktop\Server\filterscripts\TuNiAdm in.pwn(236) : error 010: invalid function or declaration
C:\Users\John\Desktop\Server\filterscripts\TuNiAdm in.pwn(238) : error 021: symbol already defined: "fclose"
C:\Users\John\Desktop\Server\filterscripts\TuNiAdm in.pwn(241) : warning 203: symbol is never used: "a_msg"
C:\Users\John\Desktop\Server\filterscripts\TuNiAdm in.pwn(241) : warning 203: symbol is never used: "hFile"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

DanishHaq
21/10/2013, 11:13 PM
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);
}

BoU3A
21/10/2013, 11:52 PM
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);
}

LOL! Thanks but still this error undefined symbol "fwirte"

HardRock
22/10/2013, 12:03 AM
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);

xganyx
22/10/2013, 01:24 AM
You just need to change "fwirte" to "fwrite"