Search the Community
Showing results for tags 'offset'.
-
The script shows the offset from GMT-UTC in standard format through string manipulation. #include <Date.au3> ConsoleWrite (_TimeZoneInfo() & @CRLF) Func _TimeZoneInfo() $aInfo = _Date_Time_GetTimeZoneInformation() ConsoleWrite("bias: " & $aInfo[1] & @CRLF) $hours = $aInfo[1] / 60 If $hours = "0" Then $hours = "+00:00" Else If StringInStr($hours, "-") Then $hours = StringReplace($hours, "-", "+") Else $hours = "-" & $hours EndIf If Not StringInStr($hours, ".") Then $hours = $hours & ":00" $hours = StringReplace($hours, ".5", ":30") $hours = StringReplace($hours, ".75", ":45") If StringLen($hours) = 5 Then $hours = StringLeft($hours, 1) & "0" & StringRight($hours, 4) EndIf Return ($aInfo[2] & " (GMT" & $hours & ")") EndFunc ;==>_TimeZoneInfo
-
Hellow everybody, I tryed to manipulate a game called "Assault Cube" which is a easy beginning in coding. I run the code but the wished value doesn't change, i don't understand why. The Pointers are fine, I checked that the pointers don't change every time while restart the game. My Code: <snip> _____________________________________________________________________________________________________________________________________________________________________________________________ Checklist: The Offsets are 18C & 4 In Cheat Engine: ("ac_client.exe"+0010F418) <- Pointer 4 Bytes = 'dword'
- 4 replies
-
- assaultcube
- script
-
(and 3 more)
Tagged with: