SA-MP Forums Archive
function heading differs from prototype - 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: function heading differs from prototype (/showthread.php?tid=103633)



function heading differs from prototype - [HKS]dlegend - 20.10.2009

C:\Users\Desktop\custom.pwn(3684) : error 025: function heading differs from prototype

what does that mean the error is here

public OnPlayerPrivmsg(playerid,recieverid, text[])
{
if(PMBlocked[recieverid] == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "That player is blocking PM's !");
return 0;
}
GameTextForPlayer(recieverid, "PM Recieved!", 3000, 3);
new string[256], p1[MAX_PLAYER_NAME], p2[MAX_PLAYER_NAME];
GetPlayerName(playerid, p1, sizeof(p1));
GetPlayerName(recieverid, p2, sizeof(p2));
format(string, sizeof(string), "PM From %(ID:%d) to %s(ID:%d): %s", playerid, p1, recieverid, p2, text);
SendPMToAdmins(COLOR_LIGHTBLUE, text, 3);
PlaySound(recieverid, 1056);
return 1;
}

it said i need to forward it so i did and i got the error
i forwarded it like this
forward OnPlayerPrivmsg(playerid);

i use samp 3x btw


Re: function heading differs from prototype - Rzzr - 20.10.2009

The default OnPlayerPrivMsg is removed in 0.3


Re: function heading differs from prototype - [HKS]dlegend - 20.10.2009

so how do u pm or isit there by normal


Re: function heading differs from prototype - woot - 20.10.2009

Quote:
Originally Posted by Jakku
Look at your filterscripts folder, there's a file base, it includes /kick, /ban and /pm