Any help?
#1

Код:
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);
}
PHP код:
C:\Users\John\Desktop\Server\filterscripts\TuNiAdmin.pwn(232) : error 055start of function body without function header
C
:\Users\John\Desktop\Server\filterscripts\TuNiAdmin.pwn(234) : error 021symbol already defined"format"
C:\Users\John\Desktop\Server\filterscripts\TuNiAdmin.pwn(236) : error 010invalid function or declaration
C
:\Users\John\Desktop\Server\filterscripts\TuNiAdmin.pwn(238) : error 021symbol already defined"fclose"
C:\Users\John\Desktop\Server\filterscripts\TuNiAdmin.pwn(241) : warning 203symbol is never used"a_msg"
C:\Users\John\Desktop\Server\filterscripts\TuNiAdmin.pwn(241) : warning 203symbol is never used"hFile"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Reply
#2

pawn Код:
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);
}
Reply
#3

Quote:
Originally Posted by DanishHaq
Посмотреть сообщение
pawn Код:
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
PHP код:
undefined symbol "fwirte" 
Reply
#4

PHP код:
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(hFilea_msg);
  
fclose(hFile);

PHP код:
fwirte(hFilea_msg);
to 
fwrite
(hFilea_msg); 
Reply
#5

You just need to change "fwirte" to "fwrite"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)