SA-MP Forums Archive
Problem while adding filterscript to my gamemode (echo) - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem while adding filterscript to my gamemode (echo) (/showthread.php?tid=226554)



Problem while adding filterscript to my gamemode (echo) - UtkUguR - 15.02.2011

When I compile my irc filterscript, it works great but when I put it on gamemode it gives some errors about include file.

Код:
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(38) : error 010: invalid function or declaration
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(38) : error 001: expected token: ";", but found "["
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(40) : error 010: invalid function or declaration
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(40) : error 001: expected token: ";", but found "["
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(43) : error 010: invalid function or declaration
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(43) : error 001: expected token: ";", but found "["
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(44) : error 010: invalid function or declaration
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(44) : error 001: expected token: ";", but found "["
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(47) : error 010: invalid function or declaration
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(47) : error 001: expected token: ";", but found "["
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(51) : error 010: invalid function or declaration
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(51) : error 001: expected token: ";", but found "["
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(52) : error 010: invalid function or declaration
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(52) : error 001: expected token: ";", but found "["
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(53) : error 010: invalid function or declaration
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(53) : error 001: expected token: ";", but found "["
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(58) : error 010: invalid function or declaration
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(58) : error 001: expected token: ";", but found "["
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(59) : error 010: invalid function or declaration
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(59) : error 001: expected token: ";", but found "["
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(69) : error 010: invalid function or declaration
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(69) : error 001: expected token: ";", but found "["
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(70) : error 010: invalid function or declaration
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(70) : error 001: expected token: ";", but found "["
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(71) : error 010: invalid function or declaration
D:\Depo\Game Files\Grand Theft Auto San Andreas\GTA San Andreas\Server\pawno\include\irc.inc(71) : error 001: expected token: ";", but found "["

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


26 Errors.
Код:
// Natives

37 - native IRC_Connect(const server[], port, const nickname[], const realname[], const username[], bool:ssl = 37 false, localip[] = "");
38 - native IRC_Quit(botid, const message[] = "");
39 - native IRC_JoinChannel(botid, const channel[], const key[] = "");
40 - native IRC_PartChannel(botid, const channel[], const message[] = "");
41 - native IRC_ChangeNick(botid, const nick[]);
42 - native IRC_SetMode(botid, const target[], const mode[]);
43 - native IRC_Say(botid, const target[], const message[]);
44 - native IRC_Notice(botid, const target[], const message[]);
45 - native IRC_IsUserOnChannel(botid, const channel[], const user[]);
46 - native IRC_InviteUser(botid, const channel[], const user[]);
47 - native IRC_KickUser(botid, const channel[], const user[], const message[] = "");
48 - native IRC_GetUserChannelMode(botid, const channel[], const user[], dest[]);
49 - native IRC_GetChannelUserList(botid, const channel[], dest[], maxlength = sizeof dest);
50 - native IRC_SetChannelTopic(botid, const channel[], const topic[]);
51 - native IRC_RequestCTCP(botid, const user[], const message[]);
52 - native IRC_ReplyCTCP(botid, const user[], const message[]);
53 - native IRC_SendRaw(botid, const message[]);
54 - native IRC_CreateGroup();
55 - native IRC_DestroyGroup(groupid);
56 - native IRC_AddToGroup(groupid, botid);
57 - native IRC_RemoveFromGroup(groupid, botid);
58 - native IRC_GroupSay(groupid, const target[], const message[]);
59 - native IRC_GroupNotice(groupid, const target[], const message[]);
60 - native IRC_SetIntData(botid, data, value);
...
Thanks.


Re: Problem while adding filterscript to my gamemode (echo) - SmackThat - 16.02.2011

Any ideas?


Re: Problem while adding filterscript to my gamemode (echo) - UtkUguR - 17.02.2011

I think it's really easy to fix these problems but I cannot find the source of problem. I will be OK if you fix one of them.