cache_get_field_content problem
#1

Okay, I have this:
pawn Код:
cache_get_field_content(0, "password", AccountData[extraid][a_szPassword]);
I am using R27 MYSQL Plugin (latest), found here.

Downgrading the plugin is not an option, so anyone know why it wont work?

It doesn't load anything onto it, it's blank yet the MYSQL field isnt. It used to work but I upgraded the plugin, and no I cannot downgrade again due to server problems in the past with older plugins.

Yet, when I use this:
pawn Код:
cache_get_field_content(0, "name", szResult); strmid(FactionInfo[szRows][fI_Name], szResult, 0, strlen(szResult), 40);
, it loads it fine. Although it prints an error onto the console, but it still loads it.

So, how can I fix the cache_get_field_content?

Thank you.

(anyone who is interested, it prints this error: click here)
Reply
#2

You have to do it in two steps, meaning yo have to store first in a variable and after, format the enum with that variable, for example:
pawn Код:
cache_get_field_content(0, "password", result);
format(AccountData[extraid][a_szPassword], 128, result);
Reply
#3

Quote:
Originally Posted by Xabi
Посмотреть сообщение
You have to do it in two steps, meaning yo have to store first in a variable and after, format the enum with that variable, for example:
pawn Код:
cache_get_field_content(0, "password", result);
format(AccountData[extraid][a_szPassword], 128, result);
No, i just checked thread from AndreT. look


pawn Код:
cache_get_row(0, 0, name); // Store the data from the name field into the name string.
Another example

pawn Код:
cache_get_row(i, 9, HouseData[i][hOwner]);
https://sampforum.blast.hk/showthread.php?tid=337810
Reply
#4

This will help you: https://sampforum.blast.hk/showthread.php?tid=448784
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)