10.06.2010, 08:35
i now have this
but i dont know how to make it work for ppls on irc
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); } } } |
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. |