10.02.2013, 13:35
Ahem, I know how to do this, if didn't I wouldn't be converting i would be trying to learn it. I'm doing this because i like to TEST functions I haven't used yet before actually making something with it.
just used this:
Still saying 52, I can give a screen shot of my table if needed.
just used this:
pawn Код:
public OnPlayerConnect(playerid)
{
mysql_function_query(Gconnection, "SELECT * FROM users WHERE `username`='thefatshizms'", true, "OnPlayerLogin", "d", "playerid");
return 1;
}
forward OnPlayerLogin(playerid);
public OnPlayerLogin(playerid) {
new rows, fields;
cache_get_data(rows, fields, Gconnection);
if(rows)
{
new temp[12];
cache_get_row(0, 8, temp);
printf("thefatshizms admin level is %d", temp);
cache_get_row(0, 3, temp);
printf("thefatshizms money is %d", temp);
}
return 1;
}