AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help with 2 malfunctions in a plugin (https://forums.alliedmods.net/showthread.php?t=89952)

ehha 04-12-2009 11:48

help with 2 malfunctions in a plugin
 
Problem 1:
Code:

L 04/12/2009 - 18:27:15:  BANNED: HOSTNAME, ID:  , IP: 10.10.1.84 by admin_name ID: STEAM_0:1:001122, Map: de_dust2
Admin bans host :)

Problem 2: From time to time the target's health isn't 123 in the snapshot.

I've checked the log and this 2 problems never happened in the same time.

Thank you.

Arkshine 04-12-2009 12:14

Re: help with 2 malfunctions in a plugin
 
new target = cmd_target(id,arg,15)

You should check after if target is not null. If null it means target was not found.


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

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