Error when compiling [MySQL]
#1

C:\Users\Mario\Desktop\Knoxx SAMP Server\Server\gamemodes\CountyRoleplay.pwn(71) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.



Код:
public OnPlayerConnect(playerid)
{
	new query[126], pName[MAX_PLAYER_NAME];
	
	GetPlayerName(playerid, pName, sizeof(pName));
	
	format(query, sizeof(query), "SELECT * FROM accounts WHERE name = '%s'", pName);
	mysql_query(query);  //this is line 71
	mysql_store_result();
	
	if(mysql_num_rows() == 1)
	{
	    SendClientMessage(playerid, -1, "This username is registered.");
	}
	else
	{
		SendClientMessage(playerid, -1, "This username is not registered, you may register it.");
		ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Register", "Please enter a password below.", "Register", "Quit");
	}
	
	return 1;
}
Reply
#2

bump
Reply
#3

When I compile using Notepad++ it works, but when I compile in pawno it gives me the error
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)