MYSQL PROBLEM - 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 PROBLEM (
/showthread.php?tid=540287)
MYSQL PROBLEM -
Gogeta101 - 03.10.2014
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"
Re: MYSQL PROBLEM -
Su37Erich - 03.10.2014
Verify that you have int the top of the script:
And make sure that you don't have the wrong "include".
Re: MYSQL PROBLEM -
Gogeta101 - 03.10.2014
Already done
Re: MYSQL PROBLEM -
Su37Erich - 03.10.2014
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.
Re: MYSQL PROBLEM -
Gogeta101 - 03.10.2014
I need a download link
Re: MYSQL PROBLEM -
MrCallum - 03.10.2014
Do you have a database stored with all the players information?
Re: MYSQL PROBLEM -
Su37Erich - 04.10.2014
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.
Re: MYSQL PROBLEM -
Raza2013 - 04.10.2014
Quote:
Originally Posted by Su37Erich
|
Use Includes and plugins as above said
Re: MYSQL PROBLEM -
Gogeta101 - 04.10.2014
I can't download all links broken someone upload it on megaupload or mediafire
Re: MYSQL PROBLEM -
biker122 - 04.10.2014
Which version of MySQL are you using?