SpiffyTek
/
SMACheck
Archived
1
0
Fork 0

Minor edits on the error/notice boxes

Moved input error into _printError() handle
This commit is contained in:
MadMakz 2013-10-07 15:37:38 +02:00
parent f631ddd2d1
commit df28df5d98
2 changed files with 6 additions and 4 deletions

View File

@ -152,11 +152,13 @@ EndFunc
Func _printError($id = false)
Switch $id
Case "noapi"
MsgBox(16, "ERROR", "API not available.")
MsgBox(16, "SMACheck - ERROR", "API not available.")
Case "update_force"
MsgBox(16, "Required Update available", "Required Update available." & @CRLF & @CRLF & "Please download new Version from smacbans.com.")
MsgBox(16, "SMACheck - Required Update available", "Required Update available." & @CRLF & @CRLF & "Please download new Version from smacbans.com.")
Case "update"
MsgBox(48, "Update available", "New Update available." & @CRLF & @CRLF & "Visit smacbans.com for more Info and Download.")
MsgBox(48, "SMACheck - Update available", "New Update available." & @CRLF & @CRLF & "Visit smacbans.com for more Info and Download.")
Case "wrongid"
MsgBox(16, "SMACheck - ERROR", "Please enter a SteamId or SteamId64.")
Case Else
Return
EndSwitch

View File

@ -99,7 +99,7 @@ Func _main()
GUISwitch($GUi)
Else
GUISetState(@SW_DISABLE, $GUi)
MsgBox(16, "ERROR", "Please enter a SteamId or SteamId64.")
_printError("wrongid")
GUISetState(@SW_ENABLE, $GUi)
WinActivate($GUi)
GUISwitch($GUi)