SA-MP Forums Archive
help here! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help here! (/showthread.php?tid=388082)



help here! - shaniyal - 27.10.2012

i got this error, help!
Код:
C:\DOCUME~1\JTECHC~1\Desktop\NEWFOL~1\FILTER~1\IRC.pwn(30) : warning 201: redefinition of constant/macro (symbol "irccmd(%1,%2,%3)")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
the line
Код:
#define irccmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (irccmd_%1(conn,channel,user,"")))||(((%3)[(%2) + 1] == 32) && (irccmd_%1(conn,channel,user,(%3)[(%2) + 2]))))) return 1



Re: help here! - Laure - 27.10.2012

its because you already defined something with the same name given. why dont you change to #define irccmdd(%1.%2,%3)


Re: help here! - shaniyal - 27.10.2012

than it gives me this
Код:
C:\DOCUME~1\JTECHC~1\Desktop\irc.pwn(398) : error 029: invalid expression, assumed zero
C:\DOCUME~1\JTECHC~1\Desktop\irc.pwn(398) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\JTECHC~1\Desktop\irc.pwn(398) : error 029: invalid expression, assumed zero
C:\DOCUME~1\JTECHC~1\Desktop\irc.pwn(398) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: help here! - shaniyal - 27.10.2012

when i do
Код:
 include <irc>
in my script, i get this error but if i don't do,it compiles but it give me this
Код:
Loading filterscript 'IRC.amx'...
[18:36:52]    Error: Function not registered: 'ircConnect'
[18:36:52]    Error: Function not registered: 'ircSendRawData'
[18:36:52]    Error: Function not registered: 'ircPollEvents'
[18:36:52]    Error: Function not registered: 'ircJoinChan'
[18:36:52]    Error: Function not registered: 'ircSay'
[18:36:52]    Error: Function not registered: 'ircGetUserLevel
Код:
 sorry for double post



Re: help here! - Laure - 27.10.2012

IRC is not a include i believe can i see the lines?


Re: help here! - shaniyal - 27.10.2012

Lol it is an btw i have fixed the error's but still getting this
Код:
 Loading filterscript 'IRC.amx'...
[19:24:06]    Error: Function not registered: 'ircConnect'
[19:24:06]    Error: Function not registered: 'ircSendRawData'
[19:24:06]    Error: Function not registered: 'ircPollEvents'
[19:24:06]    Error: Function not registered: 'ircJoinChan'
[19:24:06]    Error: Function not registered: 'ircSay'
[19:24:06]    Error: Function not registered: 'ircGetUserLevel'