Mysql question
#2

I did it like this

Код:
mysql_format(mysql, query, sizeof(query),"SELECT `name`, `age`, `posX` FROM accounts WHERE `pass` = '%e' ", pInfo[Password]);
mysql_tquery(mysql, query, "getInfo", "i", playerid);


forward getInfo(playerid);
public getInfo(playerid)
{
    pInfo[playerid][name] = cache_get_field_content_int(0, "name");
    pInfo[playerid][age] = cache_get_field_content_int(0, "age");
    pInfo[playerid][posX] = cache_get_field_content_int(0, "posX");
    return 1;
}
Reply


Messages In This Thread
Mysql question - by kamiliuxliuxliux - 09.08.2014, 10:27
Re: Mysql question - by Tommboow - 09.08.2014, 11:33
Re: Mysql question - by kamiliuxliuxliux - 09.08.2014, 11:47
Re: Mysql question - by kamiliuxliuxliux - 09.08.2014, 13:10

Forum Jump:


Users browsing this thread: 1 Guest(s)