27.10.2016, 11:54
At mysql_log it loads it correctly but i guess i have forgotten something?
mysql_log.txt
Loading Function
It doesn't create the object though.. Have i done something wrong on creatingobject? or the materialtext?
mysql_log.txt
PHP код:
[DEBUG] cache_get_field_content - row: 1, field_name: "TagName", connection: 25, max_len: 1
[DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "TagName", data: "testtag"
[DEBUG] cache_get_field_content - row: 1, field_name: "TagOwner", connection: 25, max_len: 1
[DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "TagOwner", data: "vassilis"
[DEBUG] cache_get_field_content - row: 1, field_name: "TagFont", connection: 20, max_len: 1
[DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "TagFont", data: "the unseen"
[DEBUG] cache_get_field_content_float - row: 1, field_name: "TagX", connection: 1
[DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "TagX", data: "1613.17"
[DEBUG] cache_get_field_content_float - row: 1, field_name: "TagY", connection: 1
[DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "TagY", data: "-1843.19"
[DEBUG] cache_get_field_content_float - row: 1, field_name: "TagZ", connection: 1
[DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "TagZ", data: "13.53"
[DEBUG] cache_get_field_content_float - row: 1, field_name: "TagRX", connection: 1
[DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "TagRX", data: "0"
[DEBUG] cache_get_field_content_float - row: 1, field_name: "TagRY", connection: 1
[DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "TagRY", data: "0"
[DEBUG] cache_get_field_content_float - row: 1, field_name: "TagRZ", connection: 1
[DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "TagRZ", data: "88.3"
[DEBUG] cache_get_field_content_int - row: 1, field_name: "TagFontSize", connection: 1
[DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "TagFontSize", data: "17"
[DEBUG] cache_get_field_content_int - row: 1, field_name: "TagFontColor", connection: 1
[DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "TagFontColor", data: "-65536"
[DEBUG] cache_get_field_content_int - row: 1, field_name: "TagBold", connection: 1
[DEBUG] CMySQLResult::GetRowDataByName - row: '1', field: "TagBold", data: "0"
[DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
PHP код:
function LoadSprayTags(playerid)
{
new rows, fields;
cache_get_data(rows, fields, mysql);
for(new i = 0; i < rows; i++)
{
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(19482, TagInfo[playerid][TagX], TagInfo[playerid][TagY], TagInfo[playerid][TagZ], TagInfo[playerid][TagRX], TagInfo[playerid][TagRY], TagInfo[playerid][TagRZ], -1, -1, -1, 300.0, 300.0);
SetDynamicObjectMaterialText(TagInfo[playerid][TagObject], 0, TagInfo[playerid][TagName], 70, TagInfo[playerid][TagFont], TagInfo[playerid][TagFontSize], 1, TagInfo[playerid][TagFontColor], 0, 0);
return 1;