Help me please
#3

so using debugger(print) i found that the bug is on creating label text

PHP код:
format(msizeof(m), "This Vehicle Is For Sell!\nVehicle Name : %s\nPrice : $%i\nDealership : %s"VehicleNames[DSVehicle[id][vehicle_model]-400],DSVehicle[id][vehicle_price],GetDealershipName(DSVehicle[id][vehicle_dealer]));
        
DSVehicle[id][vehicle_text]=CreateDynamic3DTextLabel(,COLOR_ORANGEDSVehicle[id][vehicle_pos][0], DSVehicle[id][vehicle_pos][1], DSVehicle[id][vehicle_pos][2],30.0INVALID_PLAYER_IDINVALID_VEHICLE_ID0, -1, -1, -17.0); 
GetDealershipName
PHP код:
GetDealershipName(sqlid){
    new 
query[128], name[64];
    
mysql_format(dbhandlequerysizeof(query), "SELECT name FROM `dealerships` WHERE ID = '%d'"sqlid);
    new 
Cache:result mysql_query(dbhandlequery);
    
cache_get_field_content(0"name"namedbhandle64);  //or what ever your players name saves as
    
cache_delete(result);
    return 
name;

tried with CreateDynamic3DTextLabel and Create3DTextLabel, it's stopping the code, only printing the first dealer info
Reply


Messages In This Thread
Help me please - by akib - 28.01.2019, 16:56
Re: Help me please - by akib - 29.01.2019, 00:36
Re: Help me please - by akib - 29.01.2019, 00:50
Re: Help me please - by Calisthenics - 29.01.2019, 08:24
Re: Help me please - by fiki574 - 29.01.2019, 10:46

Forum Jump:


Users browsing this thread: 1 Guest(s)