25.04.2018, 18:56
PHP код:
if(cache_num_rows() > 0) {
new x, string[128], sutun[32];
for new(i = 0; i < cache_num_rows(); i++) { //while(cache_get_row_count()) {
cache_get_value_int(i, "id", x); //mysql_fetch_field_row(string, "id"), x = strval(string);
cache_get_value(i, "sahip", HouseInfo[x][ev_sahip], MAX_PLAYER_NAME); //mysql_fetch_field_row(string, "sahip"), format(HouseInfo[x][ev_sahip], MAX_PLAYER_NAME, "%s", string);
cache_get_value(i, "isim", HouseInfo[x][ev_isim], 32); //mysql_fetch_field_row(string, "isim"), format(HouseInfo[x][ev_isim], 32, "%s", string);
cache_get_value_int(i, "fiyat", HouseInfo[x][ev_fiyat]); //mysql_fetch_field_row(string, "fiyat"), HouseInfo[x][ev_fiyat] = strval(string);
cache_get_value_int(i, "kilit", HouseInfo[x][ev_kilit]); //mysql_fetch_field_row(string, "kilit"), HouseInfo[x][ev_kilit] = strval(string);
cache_get_value_int(i, "para", HouseInfo[x][ev_para]); //mysql_fetch_field_row(string, "para"), HouseInfo[x][ev_para] = strval(string);
cache_get_value_int(i, "intid", HouseInfo[x][ev_interior]);//mysql_fetch_field_row(string, "intid"), HouseInfo[x][ev_interior] = strval(string);
cache_get_value(i, "posinfo", string, put here sizeof string), sscanf(string, "p<,>fff", HouseInfo[x][ev_x], HouseInfo[x][ev_y], HouseInfo[x][ev_z]); //mysql_fetch_field_row(string, "posinfo"), sscanf(string, "p<,>fff", HouseInfo[x][ev_x], HouseInfo[x][ev_y], HouseInfo[x][ev_z]);