27.02.2013, 17:45
pawn Код:
forward This();
public This() {
new rows, fields, tmp[32];
cache_get_data(rows, fields, dbhandle);
Debug("Rows %d, fields %d", rows, fields);
for(new i = 0; i < rows; ++i) {
cache_get_row(i, 0, tmp);
Debug("Id %d i %d", strval(tmp), i);
}
}
//(...)
mysql_function_query(dbhandle, "SELECT * FROM vehicles WHERE uid = 1", true, "This", "");
Quote:
[20:02:33] Rows 2, fields 10 [20:02:33] Id 1 i 0 [20:02:33] Id 0 i 1 |
Mysql plugin version r15. Field type bigint 20, sting is big enough.
I don't know, maybe I'm tired, but I can't understand why this happens. Any ideas?