!pm for irc
#1

i now have this
Quote:

IRCCMDm (botid, channel[], user[], host[], params[])
{
new cmd[256];
new Message[256];
new gMessage[256];
new pName[MAX_PLAYER_NAME+1];
new iName[MAX_PLAYER_NAME+1];

// PM Command
if(strcmp("!pm", cmd, true) == 0)

// Check if the user has at least voice in the channel
if (IRC_IsVoice(botid, channel, user))
{
// check if the user entered any text
if (!isnull(params))
{
// Echo the formatted message
format(Message,sizeof(Message),">> %s(%d): %s",iName,id,gMessage);
SendClientMessage(playerid,PM_OUTGOING_COLOR,Messa ge);
format(Message,sizeof(Message),"** %s(%d): %s",pName,playerid,gMessage);
SendClientMessage(id,PM_INCOMING_COLOR,Message);
printf("PM: %s",Message);
}
}
}

but i dont know how to make it work for ppls on irc
Quote:

C:\Users\Fam Selten\Documents\Mark\sa mp server\filterscripts\irc.pwn(634) : error 017: undefined symbol "id"
C:\Users\Fam Selten\Documents\Mark\sa mp server\filterscripts\irc.pwn(635) : error 017: undefined symbol "playerid"
C:\Users\Fam Selten\Documents\Mark\sa mp server\filterscripts\irc.pwn(636) : error 017: undefined symbol "playerid"
C:\Users\Fam Selten\Documents\Mark\sa mp server\filterscripts\irc.pwn(637) : error 017: undefined symbol "id"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.


Reply
#2

you need to define what playerid and id is. look how it's done in the kick or ban irccmd

Код:
		if (sscanf(params, "dz", playerid, message))
		{
			return 1;
		}
Reply
#3

i dont have that kind of stuff in my kick or ban irccmd
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)