Forum

> > CS2D > Scripts > i appriciate every hand<3
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch i appriciate every hand<3

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt i appriciate every hand<3

apex2d
User Off Offline

Zitieren
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

Mehr >
1× editiert, zuletzt 16.06.17 23:39:10

Admin/Mod Kommentar

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

alt Re: i appriciate every hand<3

TimeQuesT
User Off Offline

Zitieren
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

alt Re: i appriciate every hand<3

Dousea
User Off Offline

Zitieren
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.

alt Re: i appriciate every hand<3

Waldin
User Off Offline

Zitieren
Add a spoiler tag and i'll read it.
Edit: I wont read it.
2× editiert, zuletzt 18.06.17 01:52:36

Admin/Mod Kommentar

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

alt Re: i appriciate every hand<3

MikuAuahDark
User Off Offline

Zitieren
user Dousea hat geschrieben
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht