21.01.2013, 09:56
How can I load the labels?.. as I save them.
This is my saving.
I made something for start to load..
This is my saving.
Код:
stock AddLabelToFile(LabelInfo[], Float:LX, Float:LY, Float:LZ) { new Query[200]; format(Query, sizeof(Query), "INSERT INTO `labels` (LabelX, LabelY, LabelZ, LabelInfo) VALUES(%f, %f, %f, '%s')", LX, LY, LZ, LabelInfo); mysql_function_query(dbHandle, Query, true, "", ""); return 1; }
Код:
stock AddLabelsFromFile() { mysql_function_query(dbHandle, "SELECT * FROM `labels`", true, "AddLabels", ""); return 1; }