MySQL tquery
#1

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

Код:
	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);
Reply
#3

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

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

I have editted the reply XD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)