2806
Off Topic / Re: Drivers: Which gas station?
« on: January 09, 2015, 04:42:57 PM »
They still have full service stations?
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.
I still wont forget how I edgeguarded Waru to death as Game and watch
he kept trying to get up but kept on getting hit in the face with meat.
interested, hit me up
Mittle Lac
can always learn something from this kind of thing
Moriarty is interested

He's trying to add item to the end so he can do /addSword Sword instead of /addSword SwordItem and tried to do
%variable @ Item instead of %variable @ "Item"
if(isObject(%client.player))
{
%weapondatanamei = %weapondataname @ Item;
%player = %client.player;
%player.addItem(%weapondatanamei.getID(),%client);
}
That's not at all what I told you. I told you %argument not %argumentItem as those are two different variables.
Further example
function serverCmdHaxer(%client,%argument) would make it so you can do /Haxer bleh and then %argument will be you variable and it will be "bleh"
function serverCmdAddSword(%client, %argument)
{
if(isObject(%client.player))
{
%player = %client.player;
%player.addItem(%argumentItem.getID(),%client);
}
}
Then add another argument to your function and use the extra argument.
You don't need to turn the "sword" into a variable if that's the only thing your function will add.