cache_get_field_content 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: cache_get_field_content problem (
/showthread.php?tid=449377)
cache_get_field_content problem -
MattSlater - 08.07.2013
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)
Respuesta: cache_get_field_content problem -
Xabi - 08.07.2013
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);
Re: Respuesta: cache_get_field_content problem -
StreetGT - 08.07.2013
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
Re: cache_get_field_content problem -
Kirollos - 08.07.2013
This will help you:
https://sampforum.blast.hk/showthread.php?tid=448784