Problem with small code
#1

Hi all,i've added a log to the /ban command,but i've a problem:

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);
And this are the errors:

Код:
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.
Reply


Messages In This Thread
Problem with small code - by Face9000 - 18.11.2010, 14:20
Re: Problem with small code - by JaTochNietDan - 18.11.2010, 14:24
Re: Problem with small code - by Face9000 - 18.11.2010, 14:32
Re: Problem with small code - by randomkid88 - 18.11.2010, 14:36

Forum Jump:


Users browsing this thread: 1 Guest(s)