Doesn't load object[MySQL]
#1

At mysql_log it loads it correctly but i guess i have forgotten something?

mysql_log.txt
PHP код:
 [DEBUGcache_get_field_content row1field_name"TagName"connection25max_len1
 
[DEBUGCMySQLResult::GetRowDataByName row'1'field"TagName"data"testtag"
[DEBUGcache_get_field_content row1field_name"TagOwner"connection25max_len1
[DEBUGCMySQLResult::GetRowDataByName row'1'field"TagOwner"data"vassilis"
[DEBUGcache_get_field_content row1field_name"TagFont"connection20max_len1
[DEBUGCMySQLResult::GetRowDataByName row'1'field"TagFont"data"the unseen"
[DEBUGcache_get_field_content_float row1field_name"TagX"connection1
[DEBUGCMySQLResult::GetRowDataByName row'1'field"TagX"data"1613.17"
[DEBUGcache_get_field_content_float row1field_name"TagY"connection1
[DEBUGCMySQLResult::GetRowDataByName row'1'field"TagY"data"-1843.19"
[DEBUGcache_get_field_content_float row1field_name"TagZ"connection1
[DEBUGCMySQLResult::GetRowDataByName row'1'field"TagZ"data"13.53"
[DEBUGcache_get_field_content_float row1field_name"TagRX"connection1
[DEBUGCMySQLResult::GetRowDataByName row'1'field"TagRX"data"0"
[DEBUGcache_get_field_content_float row1field_name"TagRY"connection1
[DEBUGCMySQLResult::GetRowDataByName row'1'field"TagRY"data"0"
[DEBUGcache_get_field_content_float row1field_name"TagRZ"connection1
[DEBUGCMySQLResult::GetRowDataByName row'1'field"TagRZ"data"88.3"
[DEBUGcache_get_field_content_int row1field_name"TagFontSize"connection1
[DEBUGCMySQLResult::GetRowDataByName row'1'field"TagFontSize"data"17"
[DEBUGcache_get_field_content_int row1field_name"TagFontColor"connection1
[DEBUGCMySQLResult::GetRowDataByName row'1'field"TagFontColor"data"-65536"
[DEBUGcache_get_field_content_int row1field_name"TagBold"connection1
[DEBUGCMySQLResult::GetRowDataByName row'1'field"TagBold"data"0"
[DEBUGCMySQLResult::~CMySQLResult() - deconstructor called 
Loading Function
PHP код:
    function LoadSprayTags(playerid)
                {
                
                    new 
rowsfields;
                    
cache_get_data(rowsfieldsmysql);
                    for(new 
0rowsi++)
                    {
                        
cache_get_field_content(i"TagName"TagInfo[playerid][TagName], 25);
                        
cache_get_field_content(i"TagOwner"TagInfo[playerid][TagOwner], 25);
                        
cache_get_field_content(i"TagFont"TagInfo[playerid][TagFont], 20);
                        
TagInfo[playerid][TagX] = cache_get_field_content_float(i"TagX");
                        
TagInfo[playerid][TagY] = cache_get_field_content_float(i"TagY");
                        
TagInfo[playerid][TagZ] = cache_get_field_content_float(i"TagZ");
                        
TagInfo[playerid][TagRX] = cache_get_field_content_float(i"TagRX");
                        
TagInfo[playerid][TagRY] = cache_get_field_content_float(i"TagRY");
                        
TagInfo[playerid][TagRZ] = cache_get_field_content_float(i"TagRZ");
                        
TagInfo[playerid][TagRZ] = cache_get_field_content_int(i"TagFontSize");
                        
TagInfo[playerid][TagRZ] = cache_get_field_content_int(i"TagFontColor");
                        
TagInfo[playerid][TagRZ] = cache_get_field_content_int(i"TagBold");
                    }
    
                
                    
                    
TagInfo[playerid][TagObject] = CreateDynamicObject(19482TagInfo[playerid][TagX], TagInfo[playerid][TagY], TagInfo[playerid][TagZ], TagInfo[playerid][TagRX], TagInfo[playerid][TagRY], TagInfo[playerid][TagRZ], -1, -1, -1300.0300.0);
                    
SetDynamicObjectMaterialText(TagInfo[playerid][TagObject], 0TagInfo[playerid][TagName], 70TagInfo[playerid][TagFont], TagInfo[playerid][TagFontSize], 1TagInfo[playerid][TagFontColor], 00);
                    return 
1
It doesn't create the object though.. Have i done something wrong on creatingobject? or the materialtext?
Reply


Messages In This Thread
Doesn't load object[MySQL] - by vassilis - 27.10.2016, 11:54
Re: Doesn't load object[MySQL] - by AndySedeyn - 27.10.2016, 11:58
Re: Doesn't load object[MySQL] - by Konstantinos - 27.10.2016, 12:00
Re: Doesn't load object[MySQL] - by vassilis - 27.10.2016, 12:01
Re: Doesn't load object[MySQL] - by AndySedeyn - 27.10.2016, 12:04
Re: Doesn't load object[MySQL] - by vassilis - 27.10.2016, 12:07
Re: Doesn't load object[MySQL] - by AndySedeyn - 27.10.2016, 12:28
Re: Doesn't load object[MySQL] - by vassilis - 27.10.2016, 12:41
Re: Doesn't load object[MySQL] - by AndySedeyn - 27.10.2016, 12:56
Re: Doesn't load object[MySQL] - by vassilis - 27.10.2016, 12:59

Forum Jump:


Users browsing this thread: 3 Guest(s)