R6 Update R40 - Problem
#1

Hi,how should i update these functions for r40

Код:
Function;
mysql_fetch_field_row
mysql_free_result
Код:
#if defined EV_SQL
	public OnQueryError(errorid, error[], callback[], query[], connectionHandle)
	{
  		print("===================================================================");
		printf("SQL Hatasi Olustu: %d", errorid);
		printf("%s", error);
		printf("Query: %s", query);
		print("===================================================================");
		return 1;
	}
#endif
Код:
if(cache_num_rows() > 0) {
	        new x, string[128], sutun[32];
   			while(cache_get_row_count()) {
			    mysql_fetch_field_row(string, "id"), x = strval(string);
				mysql_fetch_field_row(string, "sahip"), format(HouseInfo[x][ev_sahip], MAX_PLAYER_NAME, "%s", string);
				mysql_fetch_field_row(string, "isim"), format(HouseInfo[x][ev_isim], 32, "%s", string);
				mysql_fetch_field_row(string, "fiyat"), HouseInfo[x][ev_fiyat] = strval(string);
				mysql_fetch_field_row(string, "kilit"), HouseInfo[x][ev_kilit] = strval(string);
				mysql_fetch_field_row(string, "para"), HouseInfo[x][ev_para] = strval(string);
				mysql_fetch_field_row(string, "intid"), HouseInfo[x][ev_interior] = strval(string);
				mysql_fetch_field_row(string, "posinfo"), sscanf(string, "p<,>fff", HouseInfo[x][ev_x], HouseInfo[x][ev_y], HouseInfo[x][ev_z]);
Reply
#2

First post problem is update.
Reply
#3

PHP код:
if(cache_num_rows() > 0) {
            new 
xstring[128], sutun[32];
               for new(
0cache_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"stringput 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]); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)