function heading differs from prototype
#1

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
Reply
#2

The default OnPlayerPrivMsg is removed in 0.3
Reply
#3

so how do u pm or isit there by normal
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)