Question on a making my own private message command.
#3

This is what i came up with so far...

}
dcmd_apm(playerid,params[])( {
if(IsPlayerCommandLevel(playerid,"apm")) return false SendClientMessage(playerid,red,"ERROR, You must be admin Level 10 to use this command.");
OnAdminPrivmsg(playerid, recieverid, text[]) {
if(!IsPlayerConnected(playerid)||!IsPlayerConnecte d(recieverid)) return 1;
new string[256], ToName[24], Name[24]; GetPlayerName(playerid,Name,24);
GetPlayerName(recieverid,ToName,24);
format (string,256,"APM: %s [%d] -> %s [%d]: %s",Name,playerid,ToName,recieverid,text);
}

im getting this error report when i try to compile it.

--------------------------------------------------------------------------------------------------------
Admin.pwn(11) : fatal error 100: cannot read from file: "adminprivmsg"

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


1 Error.
--------------------------------------------------------------------------------------------------------

So i tried adding this to a_samp.pwn

forward OnAdminPrivmsg(playerid, recieverid, text[]);

I'm not sure what else i can do...
Reply


Messages In This Thread
Question on a making my own private message command. - by CaptainCaveMan - 20.07.2008, 06:53
Re: Question on a making my own private message command. - by Orpheus - 20.07.2008, 09:38
Re: Question on a making my own private message command. - by CaptainCaveMan - 21.07.2008, 09:13
Re: Question on a making my own private message command. - by ded - 28.08.2009, 15:07

Forum Jump:


Users browsing this thread: 1 Guest(s)