View Single Post
  #13  
Old 04-03-2006, 04:54 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Link3001
Hmm. I still have a script that works flawlessly offline, but no matter if I do //#CLIENTSIDE or //#SERVERSIDE, it won't work offline!

I am stunned. I tried all sorts of things. :P
There is no such thing as "//#SERVERSIDE".

Here is how the model works.
PHP Code:
function myServersideFunctions()
{
  
// code
}

//#CLIENTSIDE

function myClientsideFunction()
{
  
// code

Everything before the "//#CLIENTSIDE" marker is executed on the serverside. Everything after it is executed on the clientside.
__________________
Skyld
Reply With Quote