20.10.2009, 17:39
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
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