Konvertierung meiner MMM Folge AGS 2.70 zu 2.72
Verfasst: 22.08.2008, 14:42
Will gerade meine alte MMM Folge wieder mal ausprobieren und es hakt an der aktualisierung von AGS. Da es in MMM ein spezielles Global Script gibt mal hier meine Fehlermeldeung
Error Line 257 Type mismatch cannot convert 'string' to 'int'
im global script ist es dann folgende function:
function RemoveExtension (string location){
//removes the extension of a string
int length = StrLen (location);
if (Extension (location) != 0) StrSetCharAt (location, length - 2, 0);
return location;
}
Kann mir einer weiter helfen. Ich will natürlich daraufhin eine Konvertierung von meiner Folge auf AGS 3.xxx vornehmen. Voraussetzung ist ja AGS 2.72 als Standart
Error Line 257 Type mismatch cannot convert 'string' to 'int'
im global script ist es dann folgende function:
function RemoveExtension (string location){
//removes the extension of a string
int length = StrLen (location);
if (Extension (location) != 0) StrSetCharAt (location, length - 2, 0);
return location;
}
Kann mir einer weiter helfen. Ich will natürlich daraufhin eine Konvertierung von meiner Folge auf AGS 3.xxx vornehmen. Voraussetzung ist ja AGS 2.72 als Standart