Login to server
#1

Код:
				format(Query, sizeof(Query), "SELECT `Parool` FROM `kasutajad` WHERE `Name` = '%s'",Nimi(playerid));
				if(strlen(inputtext) == mysql_query(Query))
				{
					 SendClientMessage(playerid, -1, "right password");
					LaadiKasutaja(playerid);
					return 1;
				}
				else
				{
                                        SendClientmessage(playerid, -1, "Wrong password");
				}
And my Nimi(playerid) is defined:

Код:
stock Nimi(playerid)
{
    new
		KasutajaNimi[MAX_PLAYER_NAME]
	;
    if(IsPlayerConnected(playerid)) GetPlayerName(playerid, KasutajaNimi, sizeof(KasutajaNimi));
	else KasutajaNimi = "Unknown";
	return KasutajaNimi;
}
Reply
#2

BUMP

I need fast help please
Reply
#3

Let me start by saying that I hate it when people name functions in their own language. Foreigners can't understand anything. Second, I suggest you read a tutorial on how to fetch data from MySQL because you're doing it totally wrong.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)