Forum

> > CS2D > Scripts > Some error with a specific script
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Some error with a specific script

6 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Some error with a specific script

Accurator
User Off Offline

Zitieren
FIXED. Apparently victim and killer IDs were reversed? cs2d.com says it's victim and then killer, but i've used parse to msg the ids of both, and they are indeed reversed. Is this because of the new update, perhaps?
1× editiert, zuletzt 02.09.15 12:39:23

alt Re: Some error with a specific script

Accurator
User Off Offline

Zitieren
If you really want the "aim", it's zombie survival. And not that trash where noobs get RPGs and kill millions of zombies for "ammo points". And I don't see how telling you this helps me.

alt Re: Some error with a specific script

Ajmin
User Off Offline

Zitieren
Ofcourse u wont get a solution unless u explain it,
Say whats actually wrong, whats not working,etc.
Also say if it is a private zm script if not send me the link,
I would take a look.

alt Re: Some error with a specific script

Accurator
User Off Offline

Zitieren
user Ajmin hat geschrieben
Ofcourse u wont get a solution unless u explain it,
Say whats actually wrong, whats not working,etc.

I actually did.

user Ajmin hat geschrieben
Also say if it is a private zm script if not send me the link,

It's not.

user Ajmin hat geschrieben
I would take a look.

Hands off.

alt Re: Some error with a specific script

Accurator
User Off Offline

Zitieren
I see.
The problem is pretty much fixed, but there still is an error.
I'm pretty sure it's the function that kills players if their HP stat is 0 or lower.

1
2
3
4
5
6
7
8
9
10
11
if stat == "health" then
	if getStat(id, 'health') <= 0 then
		setStat(id, 'health', getStat(id, 'maxhealth'))
		if not itemtype == nil then
			parse('customkill '..source..' '..itemtype(wpn, 'name')..' '..id)
		else
			parse('customkill 0 "NPC" '..id)
		end
	end
	updateHud(id, stat, 1, 24, 240)
end

This is what I made of it now. Apparently the item type is "no kill message" (value 250)
The problem might not be about the health stat, more like the maxhealth stat? Not sure about that, tho. And the spawn function DOES work if you do the same in it as in the die func... I could try removing the adding of health there.

EDIT: The problem definitely is in the die function. I removed it and theres no error anymore, plus the spawn function has the exact same use. It might very well be possible that the ID is the problem...
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht