Login to server - 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: Login to server (
/showthread.php?tid=309455)
Login to server -
Larry123 - 07.01.2012
Код:
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;
}
Re: Login to server -
Larry123 - 07.01.2012
BUMP
I need fast help please
Re: Login to server -
Vince - 07.01.2012
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.