Jump to content
  • 0

pomoc Problém s mysql_query()


milous22

Dotaz

čaute, bol som donútený napísať help...

chcem sa naučiť s MySQL, plugin mám tento (http://forum.sa-mp.com/showthread.php?t=56564)

problém je ten, že pawncc mi vypíše undefined symbol "mysql_query" pritom includ mám, dokonca mám nad tým mám aj mysql_connect a ten funguje...

public OnFilterScriptInit()
{
mysql_connect("127.0.0.1", "root", "test", "heslo");

mysql_query("bla");
return 1;
}

ale všimol som si že v include nie je žiadny native mysql_query, iba define:

#define mysql_query(%1,%2,%3,%4) \
mysql_function_query(%4, %1, false, "OnQueryFinish", "siii", %1, %2, %3, %4)

teoreticky cez mysql_function_query by to ísť malo, ale všade v tutoch sa používa iba mysql_query...

fakt neviem ako to vyriešiť, tí čo sa do toho vyznáte, prosím pomôžte :)

Link to comment
Share on other sites

0 odpovědí na tuto otázku

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...