Here is the create event...___________________________________________
ERROR in
action number 1
of Create Event
for object object0:
Error in code at line 7:
sp_point[0,point[PID,PXY]]=import_sp_point("passwords.sp",0,PID,PXY);
^
at position 21: Unknown variable point
sp_name[0]=import_sp_name("passwords.sp",1);
sp_count[0]=import_sp_count("passwords.sp",1);
for (PID=0; PID<sp_count[0]; PID+=1) {
for (PXY=0; PXY<=1; PXY+=1) {
sp_point[0,point[PID,PXY]]=import_sp_point("passwords.sp",0,PID,PXY);
}
}
sp_name[1]=import_sp_name("passwords.sp",10);
sp_count[1]=import_sp_count("passwords.sp",10);
for (PID=0; PID<sp_count[1]; PID+=1) {
for (PXY=0; PXY<=1; PXY+=1) {
sp_point[1,point[PID,PXY]]=import_sp_point("passwords.sp",1,PID,PXY);
}
}and the draw event...draw_text(x,y,sp_name[0]+": "+sp_count[0]+"#");
for (PID=0; PID<sp_count[0]; PID+=1) {
for (PXY=0; PXY<=1; PXY+=1) {
draw_text(x,y,"Point["+PID+","+PXY+"]="+sp_point[0,point[PID,PXY]]+"#");
}
}
draw_text(x,y,sp_name[1]+": "+sp_count[1]+"#");
for (PID=0; PID<sp_count[1]; PID+=1) {
for (PXY=0; PXY<=1; PXY+=1) {
draw_text(x,y,"Point["+PID+","+PXY+"]="+sp_point[1,point[PID,PXY]]+"#");
}
}I'm too sleepy to spot the error, so can someone please help me out here. Also if anyone knows where I can find an array flattening workaround tutorial, because I've had no luck finding one.











