What's wrong with this cmd?
#1

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?
Reply
#2

Read it properly.

IRC_GroupSay(groupid, const target[], const message[]);
Reply
#3

Don't work,the correct is

IRC_GroupSay(gGroupID, channel, msg);

But i dont know how to edit.
Reply
#4

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");
Reply
#5

wrong section

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)