PHP Code:
$File_Lang = FileOpen($Path & "\Air\locale.properties",2)
FileSetAttrib($Path & "\Game\DATA\CFG\game.cfg", "-R")
IniWrite($Path & "\Game\DATA\CFG\game.cfg", "General", "LanguageLocaleRegion", $Lang)
FileSetAttrib($Path & "\Air\locale.properties","-R")
FileWrite($File_Lang,"locale=" & $Lang)
FileClose($File_Lang)
$File_Lang_Read = FileOpen($Path & "\Air\locale.properties")
MsgBox(0,"",FileRead($File_Lang_Read))
If Not (FileRead($File_Lang_Read) = "locale=" & $Lang) Then
MsgBox(0,"",FileRead($File_Lang_Read))
MsgBox(48, "League of Legends Tools", "Unable to save data! Please contact
for more information. (100)")
EndIf
Das eigentliche Problem ist, das er immernoch die Msgbox anzeigt, dass es nichts überschrieben hat, doch die erste Msgbox sgat ja, das er es gemacht hat. Die zweite hingegen zeigt nichts mehr an.
Die If-bedingung wird somit erfüllt.
Nur wieso ist der Output am anfang da und kurz darauf nicht mehr?






