Error when compiling [MySQL] - 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: Error when compiling [MySQL] (
/showthread.php?tid=551888)
Error when compiling [MySQL] -
Ejected - 21.12.2014
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;
}
Re: Error when compiling [MySQL] -
Ejected - 21.12.2014
bump
Re: Error when compiling [MySQL] -
Ejected - 21.12.2014
When I compile using Notepad++ it works, but when I compile in pawno it gives me the error