Error: mysql_fetch_row_format
#1

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);

Reply
#2

Are you sure you've got

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

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
Reply
#4

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]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)