I made a script which will take a path and store it in a model. This is really useful, as the model can be manipulated many ways. Or it can be drawn - this is just a good way to draw a path, because once it's stored in the model, you can just draw the model. Anyway, here you go:
model = d3d_model_create();
d3d_model_primitive_begin(model,pr_linestrip);
pn = path_get_number(argument0)*path_get_precision(argument0);
for (i = 0; i < pn; i += 1)
d3d_model_vertex_color(model, path_get_x(argument0, i/pn), path_get_y(argument0, i/pn), 0, c_white, 1);
d3d_model_vertex_color(model, path_get_x(argument0, 0), path_get_y(argument0, 0), 0, c_white, 1);
d3d_model_primitive_end(model);
Enjoy!