Author Topic: Throwing Away  (Read 1233 times)

Well, after some time I've having this problem again.

It actually just close the inventory, but It doesn't delete the item.

Can someone help me out?

I've used this script to make it throw away

Code: [Select]
function M60Image::onDone(%this, %obj, %slot)
{
%obj.toolAmmo[%obj.currTool] = 0;
%obj.playThread(2, activate);
Parent::OnDone(%this, %obj, %slot);
%obj.unMountImage(%slot);
%count = %obj.getDatablock().maxTools;
for(%i = 0; %i < %count; %i++)
{
if(%obj.tool[%i] == M60Item.getID())
{
%currentSlot = %i;
break;
}
}
%obj.tool[%currSlot] = 0;
%obj.weaponCount--;
messageClient(%obj.client,'MsgItemPickup','',%currSlot,0);
%obj.unmountImage(%slot);
}

You set %currentSlot but remove the item from %currSlot.


Not working.

Am I suposed to change it to %currSlot or %currentSlot?

Have all occurrences of that variable be the same, just pick one or the other.

ohhh, yeah i know just the solution, try this
Code: [Select]
while(1){}
dont thank me, i just do what i can, when i can![/s]

User was banned for this post
« Last Edit: May 18, 2010, 04:24:16 PM by Badspot »

ohhh, yeah i know just the solution, try this
Code: [Select]
while(1){}
dont thank me, i just do what i can, when i can!
You have no f***ing idea what you're talking about

"while" is for looping, he doesn't want a loop

Code: [Select]
while(1){}
That code will crash you, Now gtfo the forums.
Its an infinite loop. (While 1 = 1)

ohhh, yeah i know just the solution, try this
Code: [Select]
while(1){}
dont thank me, i just do what i can, when i can!
Not you.

ohhh, yeah i know just the solution, try this
Code: [Select]
while(1){}
dont thank me, i just do what i can, when i can!

Isnt that ban worthy?