Blockland Forums > Modification Help
Question(s)
<< < (5/6) > >>
Chrono:
Why not just use .bl_id ?

Also %player.tool[%i] = %tool.getID;
to
%player.tool[%i] = %tool.getID();

It's a function.
Placid:

--- Quote from: Chrono on March 24, 2011, 05:20:38 PM ---Why not just use .bl_id ?

Also %player.tool[%i] = %tool.getID;
to
%player.tool[%i] = %tool.getID();

It's a function.

--- End quote ---
thanks for the fix.
.bl_id returns the client's blid?

also i'm a handicap, i used %player in the last function instead of %p :c

but that's not even the issue at hand, right now it's screwing up due to the fact that it won't save.
Red_Guy:

--- Quote from: Placid on March 24, 2011, 05:51:53 PM ---thanks for the fix.
.bl_id returns the client's blid?

--- End quote ---

try it and find out....

in the console enter:
echo( findclientbyname("your name").bl_id );


remember:  echo() is your friend
Placid:

--- Quote from: Red_Guy on March 24, 2011, 08:44:28 PM ---try it and find out....

in the console enter:
echo( findclientbyname("your name").bl_id );


remember:  echo() is your friend


--- End quote ---
already got that...

--- Quote from: Placid on March 24, 2011, 05:51:53 PM ---but that's not even the issue at hand, right now it's screwing up due to the fact that it won't save.

--- End quote ---
lilboarder32:
I like how if the client doesn't exist, you attempt to message it :).

Change:

--- Code: ---$GunMod::Loadout[%c.getBLID] = $GunMod::Loadout[%c.getBLID] + %c.player.tool[%i].getname();
--- End code ---
to

--- Code: ---$GunMod::Loadout[%c.getBLID] = $GunMod::Loadout[%c.getBLID] SPC %c.player.tool[%i].getName();
--- End code ---

And
--- Code: ---%player.tool[%i] = %tool.getID;
--- End code ---
to

--- Code: ---%player.tool[%i] = %tool.getID();
--- End code ---
Navigation
Message Index
Next page
Previous page

Go to full version