This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menulocal 1 = 76;
Does not work.sometable.1 = 39;
Or:sometable.1 <- 39;
Does not work either. Because index names cannot begin with a number.sometable.rawset(1, 39);
print(sometable.rawget(1));
class CPlayer
{
}
local delegates = {
function _get(idx) {
// If we omit :: it'll call _get("print") on `this` environment
// therefore entering an infinite recursive function
::print(idx);
return null;
}
function _set(idx, val) {
::print(idx + ":" + val);
return idx;
}
};
CPlayer.newmember("Account", {}.setdelegate(delegates));
local p = CPlayer();
p.Account.test = "1";
CPlayer.newmember("Account", {});
Quoteinvoked when the index idx is not present in the object or in its delegate chain. _set must 'throw null' to notify that a key wasn't found but the there were not runtime errors(clean failure). This allows the program to defferentieate between a runtime error and a 'index not found'.
Quoteinvoked when the index idx is not present in the object or in its delegate chain. _get must 'throw null' to notify that a key wasn't found but the there were not runtime errors(clean failure). This allows the program to defferentieate between a runtime error and a 'index not found'.
Quote from: kennedyarz on Feb 26, 2017, 12:27 AMThe truth is that I do not see a necessary use
Quote from: vito on Feb 24, 2017, 06:27 PMnote he is a first in vcmp who attached object to player's skin (in dff) for ctf/bomb
Quote from: EK.IceFlake on Feb 24, 2017, 11:51 AMHuman rights... No (FPS adjusting rule and VPN/Proxy usage rule)
Quote from: KAKAN on Feb 23, 2017, 04:11 PMJust saying, that means the TXD he used has a problem with it...
Quote from: KAKAN on Feb 23, 2017, 04:06 PMhttp://forum.vc-mp.org/?topic=2634.0
That one works fine
Quote from: KAKAN on Feb 21, 2017, 05:55 PMAlso, I don't think START and COMMIT are necessary. Its useful when doing multiple queries at once, but you're doing them one by one, so no use of them at all.