Anyone can fix this for me?
#17

Code:
format(query), sizeof(query), "SELECT  FROM accounts WHERE name = '%s'", pName;
this is a wrong use change it to this
Code:
format(query, sizeof(query), "SELECT FROM accounts WHERE name = '%s'", pName);
Same to this
Code:
	format(query), sizeof(query), "SELECT  FROM accounts WHERE name = '%s'", pName;
change to this
Code:
format(query, sizeof(query), "SELECT FROM accounts WHERE name = '%s' AND PASSWORD = '%s'", pName, inputtext);
and these lines
Code:
SendClientMessage(playerid, -1, "You have succesfully logged in!",
 		SetSpawnInfo(playerid, 1, 299, 1, 2, 3, 1, 1, 1, 999, 1, 999,
 		SpawnPlayer(playerid),;
to these
Code:
SendClientMessage(playerid, -1, "You have succesfully logged in!");
 		SetSpawnInfo(playerid, 1, 299, 1, 2, 3, 1, 1, 1, 999, 1, 999);
 		SpawnPlayer(playerid);
These
Code:
SendClientMessage(playerid, -1, "Incorrect password!",
			ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, "Login", "Please enter your password to login.", "Login", "Cancel"),
 		,
to those
Code:
SendClientMessage(playerid, -1, "Incorrect password!");
			ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, "Login", "Please enter your password to login.", "Login", "Cancel");
And finally
Code:
GetPlayerName(playerid, pName, sizeof(pName) );
			format (query, sizeof(query), "INSERT INTO accounts VALUES('%s', '%s')", pName, inputtext);
			mysql_query(query),

			SendClientMessage(playerid, -1, "You have succesfully registered your account!",
			
			SetSpawnInfo(playerid, 1, 299, 1, 2, 3, 1, 1, 1, 999, 1, 999,
			SpawnPlayer(playerid),
should be changed to
Code:
GetPlayerName(playerid, pName, sizeof(pName));
			format (query, sizeof(query), "INSERT INTO accounts VALUES('%s', '%s')", pName, inputtext);
			mysql_query(query),

			SendClientMessage(playerid, -1, "You have succesfully registered your account!");
			
			SetSpawnInfo(playerid, 1, 299, 1, 2, 3, 1, 1, 1, 999, 1, 999);
			SpawnPlayer(playerid);
Concentration man
Reply


Messages In This Thread
Anyone can fix this for me? - by Ivor8000 - 05.06.2017, 21:14
Re: Anyone can fix this for me? - by JasonRiggs - 05.06.2017, 21:16
Re: Anyone can fix this for me? - by Ivor8000 - 05.06.2017, 21:17
Re: Anyone can fix this for me? - by TonyII - 05.06.2017, 21:17
Re: Anyone can fix this for me? - by LetsOWN[PL] - 05.06.2017, 21:19
Re: Anyone can fix this for me? - by Ivor8000 - 05.06.2017, 21:21
Re: Anyone can fix this for me? - by JasonRiggs - 05.06.2017, 21:23
Re: Anyone can fix this for me? - by Ivor8000 - 05.06.2017, 21:25
Re: Anyone can fix this for me? - by JasonRiggs - 05.06.2017, 21:27
Re: Anyone can fix this for me? - by Ivor8000 - 05.06.2017, 21:31
Re: Anyone can fix this for me? - by JasonRiggs - 05.06.2017, 21:34
Re: Anyone can fix this for me? - by Ivor8000 - 05.06.2017, 21:48
Re: Anyone can fix this for me? - by JasonRiggs - 05.06.2017, 21:59
Re: Anyone can fix this for me? - by Ivor8000 - 05.06.2017, 22:10
Re: Anyone can fix this for me? - by Ivor8000 - 06.06.2017, 09:34
Re: Anyone can fix this for me? - by Ivor8000 - 06.06.2017, 12:33
Re: Anyone can fix this for me? - by JasonRiggs - 06.06.2017, 12:36
Re: Anyone can fix this for me? - by Ivor8000 - 06.06.2017, 15:11
Re: Anyone can fix this for me? - by JasonRiggs - 06.06.2017, 15:12
Re: Anyone can fix this for me? - by Ivor8000 - 06.06.2017, 15:18
Re: Anyone can fix this for me? - by Ivor8000 - 06.06.2017, 15:20
Re: Anyone can fix this for me? - by JasonRiggs - 06.06.2017, 15:28
Re: Anyone can fix this for me? - by Ivor8000 - 06.06.2017, 16:03
Re: Anyone can fix this for me? - by JasonRiggs - 06.06.2017, 16:09
Re: Anyone can fix this for me? - by Ivor8000 - 06.06.2017, 16:45
Re: Anyone can fix this for me? - by JasonRiggs - 06.06.2017, 17:01
Re: Anyone can fix this for me? - by Ivor8000 - 06.06.2017, 17:35
Re: Anyone can fix this for me? - by Ivor8000 - 06.06.2017, 19:23

Forum Jump:


Users browsing this thread: 3 Guest(s)