18.11.2010, 14:20
Hi all,i've added a log to the /ban command,but i've a problem:
First,here is the code i've added:
And this are the errors:
First,here is the code i've added:
Код:
new File:log = fopen("bans.log", io_write); fwrite(log), "%s banned for %s", giveplayername, reason); fclose(log);
Код:
C:\Documents and Settings\Symone\Desktop\COD5.pwn(7170) : warning 202: number of arguments does not match definition C:\Documents and Settings\k\Desktop\COD5.pwn(7170) : warning 215: expression has no effect C:\Documents and Settings\k\Desktop\COD5.pwn(7170) : warning 215: expression has no effect C:\Documents and Settings\k\Desktop\COD5.pwn(7170) : warning 215: expression has no effect C:\Documents and Settings\k\Desktop\COD5.pwn(7170) : error 001: expected token: ";", but found ")" C:\Documents and Settings\k\Desktop\COD5.pwn(7170) : error 029: invalid expression, assumed zero C:\Documents and Settings\k\Desktop\COD5.pwn(7170) : warning 215: expression has no effect Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.