Blockland Forums > General Discussion

Dionysus's CityRPG [joshua moon amirite]

Pages: << < (41/93) > >>

¥ola:


--- Quote from: Blocki on November 07, 2012, 04:04:33 PM ---Did you post it somewhere?

--- End quote ---
I have it on the google drive.

Cnaibedoge:


--- Quote from: ¥ola on November 07, 2012, 04:04:04 PM ---What the forget do you mean?
There's a saving function, there's a loading function, what the forget else does a data saver do?

--- End quote ---

#1, you didn't even define the path to save stuff to,
#2, you didn't even define a format for it to go by, so it knows what it's loading.


--- Code: ---// ============================================================
// Project            :  CityRPG
// Created on         :  Saturday, November 03, 2012 9:36 PM
// Description        :  Stat saving file
// Author             :  JazZ
// ============================================================

package Anna
{
function DataHolder::savePlayer(%this, %client)
{
%this.data[%client.BL_ID, "VARNAME"] = %client.variable;
%this.data[%client.BL_ID, "Money"] = %client.money;
%this.data[%client.BL_ID, "Bank"] = %client.bank;
%this.save("filepath"); //filepath needs to be defined... Do it quick so I can work
}

function DataHolder::loadPlayerData(%this, %client)
{
%client.variable = %this.data[%client.BL_ID, "VARNAME"];
%client.money = %this.data[%client.BL_ID, "Money"];
%client.bank = %this.data[%client.BL_ID, "Bank"];
}

function loadPlayerData()
{
while(isObject(MyDataHolder))
MyDataHolder.delete();
exec("config/My_Addon/PlayerData.cs"); //dafuq? why are you executing it? running code? If it is not code just open the file to read.
}
};
ActivatePackage(Anna);


--- End code ---

best saving system 2012

amirite?

Kalphiter:

Wtf, are you trying to copy Iban?

Crøwn:

For a Jail bailing system make a brick to put in the police station to bail people for a price. The more times they've been in jail the higher the price.

Swat 3:

Guys, forget scripting and use VCE.

Pages: << < (41/93) > >>

Go to full version