werid error and i can't fix it.
#1

trying to fix this error and i have no clue what the issue is.

both of the codes below giving me this error

: error 025: function heading differs from prototype
: error 035: argument type mismatch (argument 2)

includes.
Код:
#include <a_mysql>
#include <audio>
#include <YSI\y_timers>
#include <dini>
#include <utils>
#include <dutils>
#include <bud>
#include <pbar>
#include <morphinc>
#include <mselection>
#include <RemoveBuilding>
#include <zcmd>
#include <GetVehicleColor>
#include <fuckcleo>
#include <OPVD>
#include <streamer>
#include <sscanf2>
#include <fire2>
Код:
stock OnPlayerLogin(playerid, password[]) // <-- error shows this line
{
	new sqlQuery[300], password2 = num_hash(password);
	format(sqlQuery, sizeof(sqlQuery), "SELECT * FROM samp_users WHERE `Username`='%s' AND `Password`='%d'", GPN(playerid), password2);
	mysql_query(sqlQuery, THREAD_LOGIN, playerid);
	return 1;
}
Код:
	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,"Try Again, Please Log-In","You didn't type a password!\nType your password below to log-in","Log-in","Quit");
			}
			else
			{
				OnPlayerLogin(playerid, inputtext); // <--- error shows this line 
			}
		}
		else
		{
			Kick(playerid);
		}
	}
Reply


Messages In This Thread
werid error and i can't fix it. - by Yves - 11.05.2014, 19:09
Re: werid error and i can't fix it. - by iZN - 11.05.2014, 19:20
Re: werid error and i can't fix it. - by Yves - 11.05.2014, 19:28
Re: werid error and i can't fix it. - by iZN - 11.05.2014, 19:30
Re: werid error and i can't fix it. - by Yves - 11.05.2014, 19:32
Re: werid error and i can't fix it. - by ball - 11.05.2014, 19:41
Re: werid error and i can't fix it. - by Yves - 11.05.2014, 19:46

Forum Jump:


Users browsing this thread: 1 Guest(s)