Raised This Month: $51 Target: $400
 12% 

I need help!


Post New Thread Reply   
 
Thread Tools Display Modes
kww
Senior Member
Join Date: Feb 2021
Location: Russia
Old 04-24-2022 , 14:23   Re: I need help!
Reply With Quote #11

To fix that error you shoud remove line:
Quote:
RegisterHam(Ham_TakeDamage, "player", "player_hurt")
Also, what is it?
Quote:
hook.Add("PlayerHurt", "traitortest", function(victim, attacker)
if (inuse) and IsValid(attacker:GetActiveWeapon()) and attacker:GetActiveWeapon():GetClass() == "weapon_ttt_oneshot" then
if victim:GetRole() == ROLE_TRAITOR then
victim:TakeDamage(200, attacker, self)
elseif victim:GetRole() != ROLE_TRAITOR then
attacker:TakeDamage(200, attacker, self)
end
end
end)
__________________
Now working on: Side Weapons (Very lazy, tbh)
Avatar source: https://bit.ly/3BAk19g
Discord: kww#9951

Last edited by kww; 04-24-2022 at 14:41.
kww is offline
CataFan21
Junior Member
Join Date: Mar 2021
Old 04-25-2022 , 15:21   Re: I need help!
Reply With Quote #12

can u give me corect all code please?

Last edited by CataFan21; 04-25-2022 at 15:22.
CataFan21 is offline
CataFan21
Junior Member
Join Date: Mar 2021
Old 04-25-2022 , 15:27   Re: I need help!
Reply With Quote #13

Quote:
Originally Posted by kww View Post
To fix that error you shoud remove line:


Also, what is it?
//
// C:\Users\Hanibac Alexandru\Desktop\scripting\Goldak.sma(123) : error 010: invalid function or declaration
// C:\Users\Hanibac Alexandru\Desktop\scripting\Goldak.sma(124) : error 010: invalid function or declaration
// C:\Users\Hanibac Alexandru\Desktop\scripting\Goldak.sma(125) : error 010: invalid function or declaration
// C:\Users\Hanibac Alexandru\Desktop\scripting\Goldak.sma(12 : error 010: invalid function or declaration
// C:\Users\Hanibac Alexandru\Desktop\scripting\Goldak.sma(126) : warning 203: symbol is never used: "TakeDamage"
//
// 4 Errors.
// Could not locate output file C:\Users\Hanibac Alexandru\Desktop\scripting\compiled\Goldak.a mx (compile failed).
//
// Compilation Time: 1,42 sec
CataFan21 is offline
kww
Senior Member
Join Date: Feb 2021
Location: Russia
Old 04-25-2022 , 18:01   Re: I need help!
Reply With Quote #14

Quote:
Originally Posted by CataFan21 View Post
can u give me corect all code please?
like this?
Attached Files
File Type: sma Get Plugin or Get Source (yoo.sma - 45 views - 3.6 KB)
__________________
Now working on: Side Weapons (Very lazy, tbh)
Avatar source: https://bit.ly/3BAk19g
Discord: kww#9951
kww is offline
CataFan21
Junior Member
Join Date: Mar 2021
Old 04-26-2022 , 06:26   Re: I need help!
Reply With Quote #15

L 04/26/2022 - 13:25:13: [CSTRIKE] Invalid player 3 (not in-game)
L 04/26/2022 - 13:25:13: [AMXX] Displaying debug trace (plugin "yoo.amxx", version "0.1.0")
L 04/26/2022 - 13:25:13: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 04/26/2022 - 13:25:13: [AMXX] [0] yoo.sma:nSpawn (line 134)
Max Players reached. Can't create bot!
CataFan21 is offline
kww
Senior Member
Join Date: Feb 2021
Location: Russia
Old 04-26-2022 , 08:39   Re: I need help!
Reply With Quote #16

Quote:
Originally Posted by CataFan21 View Post
L 04/26/2022 - 13:25:13: [CSTRIKE] Invalid player 3 (not in-game)
L 04/26/2022 - 13:25:13: [AMXX] Displaying debug trace (plugin "yoo.amxx", version "0.1.0")
L 04/26/2022 - 13:25:13: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 04/26/2022 - 13:25:13: [AMXX] [0] yoo.sma:nSpawn (line 134)
Max Players reached. Can't create bot!
how do you get player 3?
Attached Files
File Type: sma Get Plugin or Get Source (yoo.sma - 44 views - 3.6 KB)
__________________
Now working on: Side Weapons (Very lazy, tbh)
Avatar source: https://bit.ly/3BAk19g
Discord: kww#9951

Last edited by kww; 04-26-2022 at 08:44.
kww is offline
CataFan21
Junior Member
Join Date: Mar 2021
Old 04-27-2022 , 02:03   Re: I need help!
Reply With Quote #17

now is ok thx you bro :*****
CataFan21 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode