SA:MP Need help with Undefined symbol connectionHandle
#5

Quote:
Originally Posted by biker122
Посмотреть сообщение
Because, connectionHandle is declared again inside the callback/command.
Can you show the line 286, or someother which has the warnings?
Here you go.
Код:
stock LoginPlayer(playerid,const password[])
{
	new EscapedText[60], string[256];
	new Query[80];
	new pName[MAX_PLAYER_NAME];
	GetPlayerName(playerid, pName, sizeof(pName));
	mysql_real_escape_string(password, EscapedText);
	format(Query, sizeof(Query),"SELECT * FROM `accounts` WHERE `Name` = '%s' AND `Password` = '%s'",GetPName(playerid),EscapedText);
	mysql_query(Query);
	mysql_store_result();
	if(mysql_num_rows() != 0)
	{
		SendClientMessage(playerid,COLOR_MAXZONE,"[MaxZone]: {FFFFFF}You have been logged in!");
		LoadStats(playerid);
	}
	else
	{
		SendClientMessage(playerid, COLOR_ERROR, "Ai introdus o parola gresita. Va rugam sa incercati din nou.");
		format(string,sizeof(string),"Bun venit %s!\n\nAcest cont este deja inregistrat.\n\nIntrodu parola.",pName);
		ShowPlayerDialog(playerid,0,DIALOG_STYLE_INPUT,"{2788C4}L{A9C4E4}ogin",string,"Login","Cancel");
	}
	mysql_free_result();
	return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)