SA-MP Forums Archive
Error: mysql_fetch_row_format - 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: mysql_fetch_row_format (/showthread.php?tid=470561)



Error: mysql_fetch_row_format - Davman - 18.10.2013

Hello, when i go to compile my pawno file, i receive these errors!
PHP код:
error 017undefined symbol "mysql_fetch_row_format"
error 017undefined symbol "mysql_fetch_field_row"
 
error 017undefined symbol "mysql_fetch_field_row" 
PHP код:
stock LoginPlayer(playerid)
{
    new 
query[126], pName[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpNamesizeof(pName));
    
format(querysizeof(query), "SELECT * FROM accounts WHERE name = '%s'"pName);
    
mysql_query(query);
    
mysql_store_result();
    
    while(
mysql_fetch_row_format(query,"|"))
    {
        
mysql_fetch_field_row(Player[playerid][Name], "Name");
        
mysql_fetch_field_row(Player[playerid][Password], "Password");
        
    }
    
SetSpawnInfo(playerid101958.331343.1215.36269.1526362815000);
    
SpawnPlayer(playerid);




Re: Error: mysql_fetch_row_format - DanishHaq - 18.10.2013

Are you sure you've got

pawn Код:
#include <a_mysql>
At the top, and you're running non-threaded queries?


Re: Error: mysql_fetch_row_format - Davman - 18.10.2013

Quote:
Originally Posted by DanishHaq
Посмотреть сообщение
Are you sure you've got

pawn Код:
#include <a_mysql>
At the top, and you're running non-threaded queries?
I've this:
PHP код:
#include <mysql> 
Because i use this plugin: https://sampforum.blast.hk/showthread.php?tid=122983


Re: Error: mysql_fetch_row_format - -Prodigy- - 18.10.2013

There's no "mysql_fetch_field_row" there. Try this:
pawn Код:
mysql_fetch_field("Name", Player[playerid][Name]);
mysql_fetch_field("Password", Player[playerid][Password]);