AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   fakedamage (ts) (https://forums.alliedmods.net/showthread.php?t=54569)

Styles 04-29-2007 04:55

fakedamage (ts)
 
hey, im trying to use fake damage in The Specialists and im getting errors that crash people I dont know why.

error:

NET_GetLong: Ignoring duplicated split packet 1 of 2 ( 1391 bytes )
NET_GetLong: Ignoring duplicated split packet 2 of 2 ( 208 bytes

fakedamage(targetid,"Fun Death",20.0, 256);

Thanks.

stupok 04-29-2007 21:56

Re: fakedamage (ts)
 
You have to post more than one line in order to determine how to fix your problem. It seems that the DeathMsg (or some other message) message is being sent two times to the same client.

Styles 04-29-2007 23:40

Re: fakedamage (ts)
 
well its just that if i make a function to do fakedamage it gives that error and boom a crash.

also:
Right now I have to use:
Code:

                if(get_user_health(targetid) <= 10)
                {
                        user_silentkill(targetid)
                        make_deathmsg (id,targetid,0,"Mine")
                }
                else set_user_health(targetid,get_user_health(targetid)-10)



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

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