18.02.2018, 02:47
Hello all, I have a mysql script to load players data and and of course save players data. My problem is i cant get varchar fields to load. I have a weapon ownership with a license and i have to register who owns the weapon*. It registers. I can save it when i leave them in cars, houses or leave them on player themselves**. But when it comes to load it just loads a clear string with nothing in it.
*owner is decided by who purchased the gun or if it was shipped illegally. If its illegal it writes unknown.
**I have "weapon1 owner" "weapon2 owner" etc in my mysql as i said it gets updated the way i want but i cant get them back to game.
MySql version(R33):
All of these return as an empty string.
*owner is decided by who purchased the gun or if it was shipped illegally. If its illegal it writes unknown.
**I have "weapon1 owner" "weapon2 owner" etc in my mysql as i said it gets updated the way i want but i cant get them back to game.
MySql version(R33):
Код:
cache_get_field_content(0,"GUN1OWNER",USER[playerid][GUN1OWNER]); cache_get_field_content(0,"GUN2OWNER",USER[playerid][GUN2OWNER]); cache_get_field_content(0,"GUN3OWNER",USER[playerid][GUN3OWNER]); cache_get_field_content(0,"SGUNOWNER",USER[playerid][SGUNOWNER]); cache_get_field_content(0,"EMAIL",USER[playerid][EMAIL]);