Forum

> > CS2D > Scripts > i appriciate every hand<3
Forums overviewCS2D overview Scripts overviewLog in to reply

English i appriciate every hand<3

7 replies
To the start Previous 1 Next To the start

old i appriciate every hand<3

apex2d
User Off Offline

Quote
69930145708

i need to finish unnecessary problems that are necessary

When i die or someone dies,
The Level and Rank Text in the Screen won't Update. It Updates every Roundstart but i dont find any startround Hook

and also i set the script,
when the XP reaches 0, it will derank or bring you back to the previous rank, well it doesnt seem to be an error but when we die it stays -2 until next round starts and it changes into 25 but in a lower rank
here take alook

sorry that i still cant speak engrish

Also thank you for user TrialAndError that helped me alot today, so im giving him a break

how to make the stat updates whenever we die? because i used die hook and it doesnt work well

More >
edited 1×, last 16.06.17 11:39:10 pm

Admin/mod comment

Don't listen to user Waldin, a more tag fits for your case for obvious reasons. Fixed. /user GeoB99

old Re: i appriciate every hand<3

TimeQuesT
User Off Offline

Quote
According to the script it updates the hud every 100ms, but only for living players.

Change _rms100 to this.
1
2
3
4
5
6
7
8
9
10
11
_rms100 = function()
    for _,id in ipairs(player(0, "table")) do
	--Only living
	if (player(id, "health") > 0) then
		_loseexp(id)
		_checkexp(id)
	end
	--All player
	_statshud(id);
    end
end

old Re: i appriciate every hand<3

Dousea
User Off Offline

Quote
I gave it a glimpse and here're some "problems" I encountered:

Double functions for basically the same purpose:
array
and
initarray
.

You could write
string.char(169)
as only
\169
inside string (e.g.
"\169255255255Yo!
).

Don't concatenate empty strings, it's useless (e.g.
string.char(169)..""..clr..""..txt
to
"\169" .. clr .. txt
)

In your
SaveUser
function, don't use
io.output
. It has no purpose. Also define
file
as local var.

In your
LoadUser
function, although it might be unnoticed, in
io.open(filename:format(UsgnID,"r"))
, the "r" is useless.

For the rest of the code... I'm sorry. I don't want to invest too much time in it.

old Re: i appriciate every hand<3

Waldin
User Off Offline

Quote
Add a spoiler tag and i'll read it.
Edit: I wont read it.
edited 2×, last 18.06.17 01:52:36 am

Admin/mod comment

Looks like somebody doesn't know the difference between a spoiler and more tag, eh? /user GeoB99

old Re: i appriciate every hand<3

MikuAuahDark
User Off Offline

Quote
user Dousea has written
In your
LoadUser
function, although it might be unnoticed, in
io.open(filename:format(UsgnID,"r"))
, the "r" is useless.


Totally disagree. The fact is that you need to specify "rb" so it does consistent across platforms.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview