error 025: function heading differs from prototype? Need assistance.
#1

error 025: function heading differs from prototype is what it says as the error. It says it for two lines which are 135, 159 and on those lines it says..-

135 line: public OnPlayerDisconnect(playerid, Reason)

159 line: public OnPlayerDeath(playerid, killerid, Reason)

How do I fix this error on these lines?
Thanks for any helpful tips, will grant rep apon the helpful person who helps me fix this error.
Reply
#2

Can you show the code under the lines.
Reply
#3

Quote:
Originally Posted by googamalugafoo
Посмотреть сообщение
Can you show the code under the lines.
Heres the code starting from the first error to the last.

Код:
public OnPlayerDisconnect(playerid, Reason)
{
    new INI:File = INI_Open(UserPath(playerid));
    INI_SetTag(File,"data");
    INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
    INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdminLevel]);
    INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
    INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
    INI_WriteInt(File,"Skin", PlayerInfo[playerid][pSkin]);
    INI_Close(File);
    return 1;
}

forward loz_SetPlayerSkin(playerid, skinid);
public loz_SetPlayerSkin(playerid, skinid) PlayerInfo[playerid][pSkin] = skinid;
#define loz_SetPlayerSkin SetPlayerSkin

public OnPlayerSpawn(playerid)
{
	SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
    return 1;
}


public OnPlayerDeath(playerid, killerid, Reason)
Reply
#4

Thanks, ******.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)