MySQL Logging player's Master Account in
#2

The first argument should be integer (rowid) and cache_get_row has the field index not the name. Assuming there'll only be 1 row for each player:
pawn Код:
cache_get_field_content(0, "password", MasterAccount[playerid][mPassword], 20);
cache_get_field_content(0, "email_address", MasterAccount[playerid][mEmailAddress], 30);
cache_get_field_content(0, "ip_address", MasterAccount[playerid][mOld_IP], 20);
cache_get_field_content(0, "super_admin", value, 5); MasterAccount[playerid][mSuperAdmin] = strval(value);
cache_get_field_content(0, "id", value, 15); MasterAccount[playerid][mID] = strval(value);
It'd be recommended to use the latest version of the mysql plugin (R39) and you can use cache_get_field_content_int to retrieve an integer value instead of using strval (plus it's much faster).
Reply


Messages In This Thread
MySQL Logging player's Master Account in - by AMouldyLemon - 17.06.2014, 14:33
Re: MySQL Logging player's Master Account in - by Konstantinos - 17.06.2014, 14:39
Re: MySQL Logging player's Master Account in - by AMouldyLemon - 17.06.2014, 15:12
Re: MySQL Logging player's Master Account in - by Konstantinos - 17.06.2014, 15:16
Re: MySQL Logging player's Master Account in - by AMouldyLemon - 17.06.2014, 15:55
Re: MySQL Logging player's Master Account in - by Konstantinos - 17.06.2014, 15:59
Re: MySQL Logging player's Master Account in - by AMouldyLemon - 17.06.2014, 16:03
Re: MySQL Logging player's Master Account in - by iZN - 17.06.2014, 16:44

Forum Jump:


Users browsing this thread: 3 Guest(s)