View Single Post
Old 21/07/2008, 10:13 AM   #3
Little Clucker
Join Date: Mar 2008
Posts: 4
Reputation: 0
Default Re: Question on a making my own private message command.

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);
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 (c) 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...
CaptainCaveMan is offline