Discussions about ET modding (sdk code, player/weapon modeling)
Moderators: Forum moderators, developers
-
venay
- Posts: 1
- Joined: Sun Mar 25, 2007 2:29 am
Post
by venay »
hi
I try write savexp mod in lua:
I get players xp:
Code: Select all
local stats = et.gentity_get(cno, "ps.stats", 8 )
variable "stats" return number of xp
then i want set xp:
.....
Code: Select all
stats = tonumber(stats)
et.gentity_set(cno, "ps.stats", 8,stats )
this code dosent work,
ideas?
LukMAN ET Server 82.160.216.130:27960
-
gotenks
- Posts: 3465
- Joined: Fri Nov 15, 2002 4:12 pm
- Location: out of my mind
-
Contact:
Post
by gotenks »
you can't set xp... but you can set rewards
My Website
After a night of binge drinking:
=FF=im2good4u wrote:WTF wanst i on top ?
-
=FF=im2good4u
- Posts: 3821
- Joined: Wed Feb 05, 2003 7:30 am
- Location: The Netherlands, HOLLAND
-
Contact:
Post
by =FF=im2good4u »
i tryed itaswle and its not posable indeed i dont realy know wut what wrong whit it but its all i remeber is that it wa imposable