AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved New teams (https://forums.alliedmods.net/showthread.php?t=307770)

edon1337 06-24-2018 09:31

Re: New teams
 
Quote:

Originally Posted by Kushfield (Post 2598983)
Perhaps because the rest of the code is different?
I tried the exact code you posted with a simple command added to change players' teams and it worked just fine for me as well, aside from
Code:

L 06/24/2018 - 01:39:19: [HAMSANDWICH] Wrong data type (data is of type entity)
L 06/24/2018 - 01:39:19: [AMXX] Run time error 10 (plugin "customteamsthing.amxx") (native "SetHamParamFloat") - debug not enabled!


My apologies, I didn't know I only provided part of the code, I edited main post.

Quote:

Originally Posted by HamletEagle (Post 2599040)
SetHamParamFloat in TraceAttack and Killed are wrong.

What exactly is wrong? In TraceAttack damage is 3rd parameter and its already 3 in SetHamParamFloat, in Ham_Killed I believe it's not really needed.

EDIT: Thanks for the efforts guys, I managed to fix it.

HamletEagle 06-24-2018 13:19

Re: New teams
 
It's 4 in the code you posted.


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

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