Berkley 
Journeyman

Posts: 54
Likes Given: 28
Likes Received: 2 in 2 posts
Joined: Jul 2015
Reputation: 0
![]()
|
RE: always 200 arrows and bolts in backpack
(02-17-2016 06:25 AM)Kanibal Wrote: This will be better
Code:
[function f_restock_ammo]
forcont <uid> 0
if (<rescount.i_arrow> < 200)
serv.newitem = i_arrow, <eval 200 - <rescount.i_arrow>>, <uid>
endif
endfor
timerf 7200, f_restock ammo
it' working, but i still have some error outputs with your script
10:03:ERROR:(sphere_citizens.scp,3203)Non container uid=04000ffe2,id=0f3f
10:03:ERROR:(sphere_citizens.scp,3202)Can't resolve <rescount.i_arrow>
10:03:ERROR:(sphere_citizens.scp,3202)Undefined symbol '' ['< 200)']
3202: if (<rescount.i_arrow> < 200)
3203: serv.newitem = i_arrow, <eval 200 - <rescount.i_arrow>>, <uid>
perhaps, because i'm using the nightly from Dec 1st 2015?
best regards, Lars
|
|
02-17-2016 07:12 PM |
|
|