SA-MP Forums Archive
MySQL tquery - 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: MySQL tquery (/showthread.php?tid=618188)



MySQL tquery - Gotham - 02.10.2016

Hi guys I get this error when I make a threaded query

Code
PHP код:
public OnPlayerConnect(playerid

    
TogglePlayerSpectating(playeridtrue); 
    new 
        
query[128], 
        
playername[MAX_PLAYER_NAME]; 
         
    
GetPlayerName(playeridplayernamesizeof(playername)); 
    
mysql_format(mysqlquerysizeof(query), "SELECT `Password`, `ID` FROM `accounts` WHERE `Name` = '%e' LIMIT 1"playername); 
    
mysql_tquery(mysqlquery"OnAccountCheck""i"playerid); 
    return 
true

Error
Код:
(76) : error 035: argument type mismatch (argument 3)



Re: MySQL tquery - CannonBolt - 02.10.2016

Код:
	new query[200],playername[MAX_PLAYER_NAME];
	GetPlayerName(playerid, playername, sizeof(playername));
	mysql_format(mysql, query, sizeof(query), "SELECT `Password`, `ID` FROM `accounts` WHERE `Name` = '%e' LIMIT 1", playername);
	mysql_tquery(mysql, query, "OnAccountCheck", "i", playerid);



Re: MySQL tquery - Gotham - 02.10.2016

Same thing!
EDIT:Works thank you! What have you changed?I don't see any difference!


Re: MySQL tquery - ISmokezU - 02.10.2016

Quote:
Originally Posted by Gotham
Посмотреть сообщение
Same thing!
Exactly,So that isn't the problem.


Re: MySQL tquery - Gotham - 02.10.2016

I have editted the reply XD