SA-MP Forums Archive
!pm for irc - 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: !pm for irc (/showthread.php?tid=153683)



!pm for irc - selten98 - 10.06.2010

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.





Re: !pm for irc - cessil - 10.06.2010

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;
		}



Re: !pm for irc - selten98 - 10.06.2010

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