Noneatme Posted October 30, 2011 Share Posted October 30, 2011 Hello guys, I have a problem I have a resource on my root, and if I start it, I get this error: ERROR: File 'client.lua' in resource 'disco' - CRC mismatch. This is my Client script: guivar = 0 function createp() showCursor(true) Fenster = {} Knopf = {} Text = {} local sWidth, sHeight = guiGetScreenSize() local Width,Height = 244,180 local X = (sWidth/2) - (Width/2) local Y = (sHeight/2) - (Height/2) Fenster[1] = guiCreateWindow(X,Y,Width,Height,"Wanna Disco?",false) Knopf[1] = guiCreateButton(9,73,105,42,"Disco",false,Fenster[1]) Text[1] = guiCreateLabel(15,31,111,19,"Press the Buttons:",false,Fenster[1]) Knopf[2] = guiCreateButton(210,24,22,18,"X",false,Fenster[1]) Knopf[3] = guiCreateButton(129,73,105,42,"WTF?",false,Fenster[1]) Knopf[4] = guiCreateButton(9,127,105,42,"-Free-",false,Fenster[1]) Knopf[5] = guiCreateButton(129,126,105,42,"-Free-",false,Fenster[1]) guiSetVisible(Fenster[1], true) guiWindowSetMovable(Fenster[1],false) guiWindowSetSizable(Fenster[1],false) guivar = 1 addEventHandler("onClientGUIClick", Knopf[1], function () guiSetVisible(Fenster[1], false) showCursor(false) guivar = 0 addEvent( "partylol", true ) triggerServerEvent ( "setpartylol",getLocalPlayer(), getRootElement()) end ,false ) addEventHandler("onClientGUIClick", Knopf[3], function () guiSetVisible(Fenster[1], false) showCursor(false) guivar = 0 addEvent( "partylolwtf", true ) triggerServerEvent ( "setpartylolwtf",getLocalPlayer(), getRootElement()) end ,false ) addEventHandler("onClientGUIClick", Knopf[2], function () guiSetVisible(Fenster[1], false) showCursor(false) guivar = 0 end ,false ) end function letsparty() local sound = playSound("pogo.mp3") setSoundVolume(sound, 100) end function letspartywtf() local sound = playSound("wtf.mp3") setSoundVolume(sound, 100) end addCommandHandler( "party", createp) addEvent( "onParty", true ) addEventHandler( "onParty", getRootElement(), letsparty ) addEvent( "onPartywtf", true ) addEventHandler( "onPartywtf", getRootElement(), letspartywtf ) please help me, and sorry for my english mfg Link to comment
BinSlayer1 Posted October 30, 2011 Share Posted October 30, 2011 assuming you run a webserver, the resource in the server resources directory is not the same as the resource in the http webserver Link to comment
Noneatme Posted October 30, 2011 Author Share Posted October 30, 2011 and how can I fix it? /edit: I think I got it, I deleted the disco folder in resource-cache and I get no error Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now