function heading differs from prototype
#1

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[])
Reply
#2

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.
Reply
#3

Press on Ctrl + H and look for:
pawn Код:
forward OnPlayerLogin(playerid,password[]);
Delete all of them except 1.
Reply
#4

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

BUMP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)