MYSQL PROBLEM
#1

pawn Код:
public OnPlayerConnect(playerid)
{
    new query[126], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,sizeof(pName));
    format(query,sizeof(query),"SELECT * FROM account Where name = '%s'",pName);
    mysql_query(query);
    mysql_store_result();
    if(mysql_num_rows() == 1)
    {
        SendClientMessage(playerid,-1,"This username is registred please log-in.");
        ShowPlayerDialog(playerid,0,DIALOG_STYLE_INPUT,"Login","Please enter your password","Login","Cancel");
    }
    else
        return SendClientMessage(playerid,-1,"This username is not registred you may register.");
    return 1;
}

error 017: undefined symbol "mysql_query"
Reply
#2

Verify that you have int the top of the script:
pawn Код:
#include <a_mysql>
And make sure that you don't have the wrong "include".
Reply
#3

Already done
Reply
#4

Make sure that your include have that function: "mysql_query", maybe your include use a different name for send a query, like mysql_tquery
Maybe your problem could be that you are using BlueG include-plugin in a version that doesn't support non-threaded queries.
Reply
#5

I need a download link
Reply
#6

Do you have a database stored with all the players information?
Reply
#7

Do you want a download link?
You can get the download link from this thread:
https://sampforum.blast.hk/showthread.php?tid=56564

Remember download R5 or R6
R7 is only for threaded queries.
Reply
#8

Quote:
Originally Posted by Su37Erich
Посмотреть сообщение
Do you want a download link?
You can get the download link from this thread:
https://sampforum.blast.hk/showthread.php?tid=56564

Remember download R5 or R6
R7 is only for threaded queries.
Use Includes and plugins as above said
Reply
#9

I can't download all links broken someone upload it on megaupload or mediafire
Reply
#10

Which version of MySQL are you using?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)