public error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: public error (
/showthread.php?tid=159277)
public error -
Jamal' - 12.07.2010
public OnPlayerPrivmsg(playerid, recieverid, text[])
I cant compile GF mode becuase i see one error can someone tell me why ?
C:\Users\hpi\Downloads\samp03asvr_R4_win32\pawno\g j.pwn(26207) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
Re: public error -
Grim_ - 12.07.2010
OnPlayerPrivmsg was removed in 0.3. Remove the callback.
Re: public error -
Jamal' - 12.07.2010
Done! :P
What new i should put for priv?
Re: public error -
oliverrud - 12.07.2010
Theres nothing new? if you want private message then script it, I believe theres the code inside base.pwn
Re: public error -
Grim_ - 12.07.2010
You'll have to create it yourself.
This one is from the wiki:
pawn Код:
if(!strcmp("/pm", cmdtext, true))
{
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid,0xFF0000FF,"USAGE: /PM (id) (message)");
new id = strval(tmp);
gMessage = strrest(cmdtext,idx);
if(!strlen(gMessage)) return SendClientMessage(playerid,0xFF0000FF,"Usage: /pm (id) (message)");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,0xFF0000FF,"/pm :Invalid ID");
GetPlayerName(id,iName,sizeof(iName));
GetPlayerName(playerid,pName,sizeof(pName));
format(Message,sizeof(Message),">> %s(%i): %s",iName,id,gMessage);
SendClientMessage(playerid,0xFFD720FF,Message);
format(Message,sizeof(Message),"** %s(%i): %s",pName,playerid,gMessage);
SendClientMessage(id,0xFFD720FF,Message);
PlayerPlaySound(id,1085,0.0,0.0,0.0);
return 1;
}
Re: public error -
-Rebel Son- - 13.07.2010
Guys what the hell are you thinking!? he just needs to forward that public function!