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)
+--- Thread: function heading differs from prototype (
/showthread.php?tid=579463)
function heading differs from prototype -
TaylorShade - 27.06.2015
I have i problem, i am using Ravens script and i deleted Car Ownership and made new one but using YINI saving.. and now i have 3 errors:
Код:
C:\Users\stefan\Desktop\Srbija Roleplay v3.5\gamemodes\SGScriptv4.pwn(511) : error 025: function heading differs from prototype
C:\Users\stefan\Desktop\Srbija Roleplay v3.5\gamemodes\SGScriptv4.pwn(10025) : error 035: argument type mismatch (argument 2)
C:\Users\stefan\Desktop\Srbija Roleplay v3.5\gamemodes\SGScriptv4.pwn(28762) : error 025: function heading differs from prototype
Line 511
Код:
forward OnPlayerLogin(playerid,password[]);
Line 10025
Код:
if(dialogid == 1245)
{
if(response)
{
strmid(Typed[playerid], inputtext, 0, strlen(inputtext), 255);
if(!strcmp(Typed[playerid], "None", true))
{
ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_PASSWORD,"Pokusajte ponovno, molimo vas da se pridruzite","Niste upisali password!\nUpisite svoj password iznad kako bi se pridruzili","Pridruzi se","Odustani");
}
else
{
OnPlayerLogin(playerid, inputtext);//10025 LINE
}
}
else
{
Kick(playerid);
}
}
Line 28762
Код:
public OnPlayerLogin(playerid,password[])
Re: function heading differs from prototype -
Vince - 27.06.2015
Looks like you forwarded OnPlayerLogin more than once. A forward declaration IS the prototype, so it doesn't make sense that the error would be thrown on that line.
Re: function heading differs from prototype -
Youssef221 - 27.06.2015
Press on Ctrl + H and look for:
pawn Код:
forward OnPlayerLogin(playerid,password[]);
Delete all of them except 1.
Re: function heading differs from prototype -
TaylorShade - 27.06.2015
No, i have only one forward OnPlayerLogin(playerid,password[]);
EDIT: I thing it has something with yini, becouse all of savings are still in dini, and the new car ownership is in yini saving.. but im not sure
Re: function heading differs from prototype -
TaylorShade - 28.06.2015
BUMP