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.