Mysql Convert
#1

Since I've just noticed the update from Mysql to R41-2, I'm really struggling with it in pawno, I've read a tutorial on how to convert everything yet I find difficulties to change it succesfully, hence this topic, I'd like to get some help guys.

One example:

PHP код:
cache_get_data(rowsfieldsmysql); 
What'd be the correct way to convert this?
Reply
#2

Sorry not helping but if there's a tutorial on it can you link me to it? I was not able to locate it.
Reply
#3

There's a tutorial already about updating mysql plugin https://sampforum.blast.hk/showthread.php?tid=616103
Reply
#4

Quote:
Originally Posted by saffierr
Посмотреть сообщение
I've read a tutorial on how to convert everything yet I find difficulties to change it succesfully.

What'd be the correct way to convert this?
Quote:
Originally Posted by X337
Посмотреть сообщение
There's a tutorial already about updating mysql plugin https://sampforum.blast.hk/showthread.php?tid=616103
I already tried, though getting a push in the back would help alot.
Reply
#5

I just read the part about the function you mentioned and it is pretty clear to me that the function was completely removed. As the example shown in the tutorial, you'd use:
pawn Код:
new rows;
cache_get_row_count(rows);
to get the rows or:
pawn Код:
new fields;
cache_get_field_count(fields);
to get the number of fields. Something that I'm not sure if it is mentioned in the tutorial is that you can retrieve the number of rows using:
pawn Код:
new rows = cache_num_rows();
as well.
Reply
#6

I see, lol I gave out an easy peace of code. Well, I guess I'll just try it myself, that's the best after all.
Thanks anyways for helping.
Reply
#7

Your thread, informed me that there is tutorial for converting and I already converted my post script so thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)