Writes the data structure to a returned string. This enables the structure to be saved in something like an .ini file for future use.


GML Code Example


Argument Description
id The id of the data structure to check.

Returns: String


This function returns a string which can then be stored or transferred to another data structure using the ds_priority_read function.

NOTE: The returned string is not a human readable string, but rather a dump of the contents of the data-structure


GML Code Example

var str;
 str =ds_priority_write(p_queue);
 ini_write_string("P_Queues", "0", str);

The above code opens an ini file and then writes a string containing the information stored in the ds_priority queue indexed in the variable "p_queue". The priority queue is then cleared and the ini file closed.

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here