English CODE - no work!!?

14 replies
Goto Page
To the start Previous 1 Next To the start
11.03.17 04:42:36 pm
Up
AzeKs8
BANNED
Offline Off
hi all

me azeks and i want knau whai this code not work!

i want full hp when shot but i no full hp

Code:
1
2
3
4
functon shot()
if do shoot == enemy hurt then
make player == full.hp
end


I TRY EVERY!
11.03.17 04:46:12 pm
Up
Simonas
Moderator
Offline Off
This looks legit and should work though. Try again.
CS2D 1.0.0.3D
11.03.17 04:54:58 pm
Up
Starkkz
Moderator
Offline Off
I advise you to read & learn the tutorial.
thread cs2d [GUIDE] How to script

After doing that, if you can't figure out why doesn't work, then you shall come back and make this question.
lol
11.03.17 05:19:37 pm
Up
Yates
Reviewer
Offline Off
I just tested the code and it works perfectly. Maybe a little too perfect.
11.03.17 05:58:10 pm
Up
Masea
Super User
Offline Off
user Yates has written:
I just tested the code and it works perfectly. Maybe a little too perfect.
Same here.

What is the actual problem you're getting sir?
12.03.17 08:46:41 pm
Up
AzeKs8
BANNED
Offline Off
pls tell i have prolbem

I need hook add? so shot function is on
how can i hook?
12.03.17 10:18:46 pm
Up
Pehlivan
User
Offline Off
I dont know, why this piece of pure masterwork doesnt work. check it again. this code should work 1000% perfectly.

(no sarcasm intended. srs)
never skip leg day
12.03.17 11:30:47 pm
Up
Zeik
User
Offline Off
Your code doesn't work because is not even a properly written pseudocode. What you're trying to do doesn't even make sense neither, but I did it because is too simple and maybe you realize that it doesn't make sense:

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- alternative 1: hits do 0 damage.
adhook('hit', 'hit')
function hit(id)
  return 1
end

-- alternative 2: you lose health and quickly recover it.
adhook('hit', 'hit')
function hit(id, sc, wp, hp)
  timer(200, 'heal', 'sethealth '..tostring(id)..' '..tostring(player(id, 'health') + hp))
  return 0
end

function heal(arg)
  parse(arg)    
end


Btw, I find it weird that no one here is getting banned for making fun of someone else when you get banned for anything in this forum.
edited 2×, last 13.03.17 12:01:55 am
13.03.17 01:26:06 am
Up
VADemon
User
Offline Off
@user Zeik: This should have gone as a PM but /thread. Because you have earned yourself a giant medal

You did not understand it after 4 clearly sarcastic replies and especially "I TRY EVERY! "
At least you tried to be nice

Again: He was a troll.
Stranded 3 development     |     Looking for volunteers for CS2D-Archive. PM me.
13.03.17 01:29:55 am
Up
Zeik
User
Offline Off
Most people write bad English here so I don't see how that is a hint of it being sarcasm. Sarcastic replies don't mean the OP was being sarcastic neither.
13.03.17 06:35:21 pm
Up
Pehlivan
User
Offline Off
user Zeik has written:
Most people write bad English here so I don't see how that is a hint of it being sarcasm. Sarcastic replies don't mean the OP was being sarcastic neither.


its because the op is a goddamn troll. look at his other questions. so we obviously make fun of him
never skip leg day
14.03.17 04:26:56 am
Up
DemHax
User
Offline Off
@user Pehlivan: so because he is a troll we have the right to make fun out of him albeit it is forbidden for everyone no exeptions?

Srsly, dont do to others what you wouldnt want them to do to you.
14.03.17 09:43:52 am
Up
Yates
Reviewer
Offline Off
user DemHax has written:
Srsly, dont do to others what you wouldnt want them to do to you.

Isn't that what we were doing? Not sure you understand the definition of trolling.

Whatever, the guy is banned anyway. When will this be closed?
14.03.17 10:04:52 am
Up
Ahmad
User
Offline Off
>user DemHax
when people make fun of ur troll account so you make a new one to defend it
14.03.17 12:22:23 pm
Up
Rainoth
Moderator
Offline Off
user Yates has written:
Whatever, the guy is banned anyway. When will this be closed?


Now.
MAL • Carnage • DeviantArt • Quick-LoL You know what's worse than Friday the 13th? Monday the 16th.
To the start Previous 1 Next To the start