Code: Select all
#SingleInstance Force
Ping = 200
ShowControlBox()
{
gui 2:+AlwaysOnTop +ToolWindow -MinimizeBox -MaximizeBox
gui 2:Add, Text, x+10 y5, In-game Ping:
gui 2:Add, Edit, vPing gPing x+5 y1 w50, %Ping%
gui 2:Show, x858 y0 w300 h23, Control Box
}
ShowControlBox()
Ping:
;will do something here when the edit control is updated
return
Error: a control's variable must be global or static
The error is pointed at this line ----> gui 2:Add, Edit, vPing gPing x+5 y1 w50, %Ping%