09.04.2009, 18:08
pawn Код:
stock mysql_Int(db[],fl[],output,input[])
{
new query[256],Result[256];
format(query,sizeof(query),"SELECT %s FROM %s WHERE %s",fl,db,input);
samp_mysql_query(query);
samp_mysql_store_result();
if(samp_mysql_fetch_row(Result)==1)
{
samp_mysql_fetch_row(Result);
output=strval(Result);
return output;
}
return 0;
}
But if i do this: printf("%d",mysql_Int("users","id",playerinfo[playerid][uid],string)) then i get the Real ID
How to fix it?