SA-MP Forums Archive
I hawe this problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: General (https://sampforum.blast.hk/forumdisplay.php?fid=13)
+--- Thread: I hawe this problem (/showthread.php?tid=625040)



I hawe this problem - Alienware95 - 27.12.2016

I em compile the FS
Code..
public OnPlayerPrivatemsg(playerid, recieverid, text[]) {
if(!IsPlayerConnected(playerid)||!IsPlayerConnecte d(recieverid)) return 0;
new string[256], ToName[24], Name[24]; GetPlayerName(playerid,Name,24);
if(Config[ExposePMS]) {
GetPlayerName(recieverid,ToName,24);
format(string,256,"PM: %s [%d] -> %s [%d]: %s",Name,playerid,ToName,recieverid,text);
SendMessageToAdmins(string);
}


End look this
\xadmini.pwn(1217) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivatemsg")


Re: I hawe this problem - Stev - 27.12.2016

Forward the function.

Код:
forward OnPlayerPrivatemsg(playerid, recieverid, text[]);
public OnPlayerPrivatemsg(playerid, recieverid, text[])



Re: I hawe this problem - Alienware95 - 27.12.2016

it`s work tnx :*


Re: I hawe this problem - oMa37 - 27.12.2016

Next time post here please, You're in the wrong section;
http://forum.sa-mp.com/forumdisplay.php?f=12