Posts: 4
Threads: 2
Joined: Mar 2008
Reputation:
0
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...
Posts: 543
Threads: 28
Joined: Jun 2009
Reputation:
0
Uhhh, well ... this compile error ... have you included a file called "adminprivmsg" if so, that file is non existent or not in the pawno folder. Also, OnAdminPrivmsg is not a native function so i'm assuming you have created and forwarded it already? If not, do so. If you have, take the forward out of a_samp.inc because it doesn't go there.
Hope this helps.