Please some Help? fast. - 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: Please some Help? fast. (
/showthread.php?tid=452089)
Please some Help? fast. -
Mathiazziscool - 20.07.2013
Hello again.. me with my skiiieeelz xD jk i get theesee errors
C:\Users\Mathiazz\Desktop\s4mp\gamemodes\LSTDM.pwn (418 ) : error 037: invalid string (possibly non-terminated string)
C:\Users\Mathiazz\Desktop\s4mp\gamemodes\LSTDM.pwn (418 ) : error 017: undefined symbol "SELECT"
C:\Users\Mathiazz\Desktop\s4mp\gamemodes\LSTDM.pwn (418 ) : error 017: undefined symbol "accounts"
C:\Users\Mathiazz\Desktop\s4mp\gamemodes\LSTDM.pwn (418 ) : fatal error 107: too many error messages on one line
this is from line 407 to 433
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case 0:
{
if(response)
{
new query[126], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(query, sizeof(query), "SELECT * FROM accounts WHERE name = '%s' AND password = '%s', pName, inputtext);
mysql_query(query);
mysql_store_result();
if(mysql_num_rows() == 1)
{
SendClientMessage(playerid, -1, "You have successfully logged in!");
SpawnPlayer(playerid);
}
else
{
SendClientMessage(playerid, -1, "Incorrect Password!");
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, "Login", "Please log in with the password you made", "Login", "Cancel");
}
}
}
this is line 418
Код:
format(query, sizeof(query), "SELECT * FROM accounts WHERE name = '%s' AND password = '%s', pName, inputtext);
Re: Please some Help? fast. -
Mathiazziscool - 20.07.2013
bump anyhelp?
Re: Please some Help? fast. -
Mathiazziscool - 21.07.2013
BUMP
Re: Please some Help? fast. -
doreto - 21.07.2013
pawn Код:
format(query, sizeof(query), "SELECT * FROM accounts WHERE name = '%s' AND password = '%s'", pName, inputtext);