Please don't make a double posts !
panel = guiCreateWindow ( 0, 0, 0.5, 0.4, "UserPanel -ASG//", true )
Tabpanel = guiCreateTabPanel ( 450, 250, 500, 400, false, panel )
TabDonator = guiCreateTab( "Donator", Tabpanel )
donatebut = guiCreateButton(380, 450, 110, 40, "Donator Store", false, TabDonator)
function outputwnd ( )
if getElementData(getLocalPlayer(), "isDonator") then
guiSetVisible (donator_store_window, true)
else
outputChatBox("[Donator] Sorry, this is only for donators", 255,0,0)
end
end
addEventHandler ( "onClientGUIClick", donatebut, outputwnd, false )
donator_store_window = is not defined any where .