Forum

> > CS2D > Scripts > Function
Forums overviewCS2D overview Scripts overviewLog in to reply

English Function

5 replies
To the start Previous 1 Next To the start

old Function

xSkyLordx
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
function additem(id,number)
parse("equip "..id.." number")
end

addhook("say","gfg")
 function gfg(id,t)
   if t=="laser" then
     additem(id,45)
  end
end

DO NOT WORK

Error
1
ITEM 0 DOESNT EXİSTS

old Re: Function

Yates
Reviewer Off Offline

Quote
1
parse("equip "..id.." "..WeaponID)

old Re: Function

Yates
Reviewer Off Offline

Quote
Me neither.

But you used
1
parse("equip "..id.." number")
When it should be
1
parse("equip "..id.." "..WeaponID)

old Re: Function

EngiN33R
Moderator Off Offline

Quote
As Yates said,
1
parse("equip "..id.." number")
Should be
1
parse("equip "..id.." "..number)

old Re: Function

Surplus
User Off Offline

Quote
Fixed for idiots.

1
2
3
4
5
6
7
8
9
10
function additem(id,number)
parse("equip "..id.." "..number)
end

addhook("say","gfg")
 function gfg(id,t)
   if t=="laser" then
     additem(id,45)
  end
end

Script fixed by Yates
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview