error 025: function heading differs from prototype? Need assistance. - 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)
+--- Thread: error 025: function heading differs from prototype? Need assistance. (
/showthread.php?tid=303726)
error 025: function heading differs from prototype? Need assistance. -
|}eath - 15.12.2011
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.
Re: error 025: function heading differs from prototype? Need assistance. -
SnG.Scot_MisCuDI - 15.12.2011
Can you show the code under the lines.
Re: error 025: function heading differs from prototype? Need assistance. -
|}eath - 15.12.2011
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)
Re: error 025: function heading differs from prototype? Need assistance. -
|}eath - 15.12.2011
Thanks, ******.