String in mysql - 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: String in mysql (
/showthread.php?tid=650484)
String in mysql -
Oficer - 28.02.2018
Hello, how I can get string in MySQL BlueG R-41 ?
I know, that I can load int, I use cache_get_value_int, but now I want load string.
Re: String in mysql -
kingmk - 28.02.2018
Код:
cache_get_value_name(0, "name_col", string, sizeof(string));
You can also load int values with
Код:
cache_get_value_name_int(0, "name_col", value_var);
Re: String in mysql -
Oficer - 11.03.2018
@ref
Welcome again, how I can load string to variable in my enum?
enum Player
{
...
Name
}
I tried:
PHP код:
cache_get_value_name(0, "Name", Player[playerid][Name]); < But don't working
Re: String in mysql -
Maximun - 11.03.2018
32 - Is the bytes for Name which is stored into your 'enum'
Example:
Код:
enum Player
{
...
Name[32]
}
Код:
cache_get_value(0, "Name", Player[playerid][Name], 32);