Blockland Forums > Modification Help
findClients( mask ) [RESOURCE]
Port:
Also, small "snippet" script: Probably the smallest system for saving data, although this could probably be optimized a lot and saved files can be modified to do evil things upon loaded.
--- Code: ---function dbsLoad( %file )
{
if ( !strLen( %file ) || !isFile( %file ) )
{
error( "dbsLoad() - no/unexistant file specified" );
return false;
}
exec( %file );
if ( !isObject( %obj = nameToID( "tempDBS" ) ) )
{
error( "dbsLoad() - invalid file specified" );
return false;
}
%obj.setName( "" );
return %obj;
}
function dbsSave( %obj, %file )
{
%name = %obj.getName();
%obj.setName( "tempDBS" );
%obj.save( %file );
%obj.setName( %name );
}
--- End code ---
Nexus:
--- Quote from: Chrono on November 15, 2011, 08:56:16 PM ---What do those have to do with this topic?
--- End quote ---
They find clients.
At which point do those three words differ from this topic in any way?
It is a resource, and he never specified that it needed to be server sided, nor were there any previous examples of client sided methods.