mysql_query
#1

Hee all,

I'm trying to understand the mysql databases, but i encounter an error with even this function:

mysql_query("INSERT INTO `users` (`username`, `password`) VALUES ('%s', MD5('%s'))", PlayerName(playerid), params);

error: Undefined symbol: mysql_query

I did include the a_mysql include, i searched for it already and i noticed people saying it was because of the new R7 update, could anyone tell me how to fix the error now??

Thanks in advance,

Jop9888
Reply
#2

If you are using the latest MySQL plugin which is MySQL R7, mysql_query has been replaced with mysql_function_query, however it is a bit complicated so i suggest you downgrade and use the older version R6-2

https://sampforum.blast.hk/showthread.php?tid=56564
Reply
#3

Thanks for the help, i'll downgrade it and discover the functions first
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)