SA-MP Forums Archive
What's wrong with this cmd? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: What's wrong with this cmd? (/showthread.php?tid=198607)



What's wrong with this cmd? - Face9000 - 12.12.2010

Hi there,i've this IRC CMD

Код:
IRCCMD:cmds(botid, channel[], user[], host[], params[])
{
	IRC_GroupSay(gGroupID,"IRC COMMANDS");
    IRC_GroupSay(gGroupID,"Available commands: !preports !kicks !say !lastkick !lastban !lastreport / !pm / !hp / !car / !irc / !loc / !time / !name / !money / !score / !getid");
	IRC_GroupSay(gGroupID"Moderator commands: !kick / !slap / !kill / ! / !eject / !disarm");
	IRC_GroupSay(gGroupID,"Admin commands: !ban / !banip / !ip / !unbanip / !giveweapon / !getweps / !xyz / !banaccount / !unbanaccount");
    IRC_GroupSay(gGroupID,"S-Admin commands: / !echo / !join / !part / !mmipp / !blacklist / !blacklistadd");
	IRC_GroupSay(gGroupID,"Owner commands: !ircraw / !raw / !isbanned / !stats / !mmip / !blacklisttotal / !blacklistremove");
    IRC_GroupSay(gGroupID,user,"<==========================================================>");
	return 1;
}
And it return me some errors:

Код:
C:\Documents and Settings\Symone\Desktop\irc.pwn(1114) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Symone\Desktop\irc.pwn(1115) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Symone\Desktop\irc.pwn(1116) : error 001: expected token: ",", but found "-string-"
C:\Documents and Settings\Symone\Desktop\irc.pwn(1116) : warning 215: expression has no effect
C:\Documents and Settings\Symone\Desktop\irc.pwn(1116) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Symone\Desktop\irc.pwn(1116) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Symone\Desktop\irc.pwn(1116) : fatal error 107: too many error messages on one line

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


4 Errors.
WTF?


Re: What's wrong with this cmd? - _Necro_ - 12.12.2010

Read it properly.

IRC_GroupSay(groupid, const target[], const message[]);


Re: What's wrong with this cmd? - Face9000 - 12.12.2010

Don't work,the correct is

IRC_GroupSay(gGroupID, channel, msg);

But i dont know how to edit.


Re: What's wrong with this cmd? - _Necro_ - 12.12.2010

Well look at your lines... only the last one is correct.

Example of a wrong line:

pawn Код:
IRC_GroupSay(gGroupID,"IRC COMMANDS");
Example of how it should look:

pawn Код:
IRC_GroupSay(gGroupID, user, "IRC COMMANDS");



Re: What's wrong with this cmd? - marinov - 12.12.2010

wrong section

http://forum.sa-mp.com/forumdisplay.php?f=12


Re: What's wrong with this cmd? - _Necro_ - 12.12.2010

Quote:
Originally Posted by marinov
Посмотреть сообщение
Yes, fantastic.. that's going to help him? No.. he already created the topic here. Next time use the report to moderator function to notify them it needs moving.