Please some Help? fast.
#1

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);
Reply
#2

bump anyhelp?
Reply
#3

BUMP
Reply
#4

pawn Код:
format(query, sizeof(query), "SELECT * FROM accounts WHERE name = '%s' AND password = '%s'", pName, inputtext);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)