21.07.2008, 09:13
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...
}
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...