18.11.2013, 15:02
New stock:
Still dont work
EDIT: Changed
to:
Gives me 3 warnings:
Code:
stock AddLabelsFromFile() { new LabelInfo[128], Float:LX, Float:LY, Float:LZ, lTotal; new Query[150]; format(Query, sizeof(Query), "SELECT * FROM `labels`"); new rows, fields; cache_get_data(rows, fields, conn); if(rows) { cache_get_field_content_float(0, "LabelX", conn); cache_get_field_content_float(0, "LabelY", conn); cache_get_field_content_float(0, "LabelZ", conn); new Field[128]; cache_get_field_content(0, "LabelInfo", Field, conn, sizeof(Field)); CreateDynamic3DTextLabel(LabelInfo, RColors[random(sizeof(RColors))], LX, LY, LZ, 100.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, TEXTLABELDISTANCE); lTotal++; } mysql_free_result(); printf("** %i\t<->\tLabels Loaded From\t<->\tMySQL\t\t **", lTotal); return 1; }
EDIT: Changed
Code:
cache_get_field_content(0, "LabelInfo", Field, conn, sizeof(Field));
Code:
cache_get_field_content(0, "LabelInfo", Field, conn, sizeof(Field), sizeof(Field), "%s", Field);
Code:
warning 202: number of arguments does not match definition x3