Raised This Month: $ Target: $400
 0% 

lol


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 08-05-2011 , 10:01   Re: Invalid player id 0
Reply With Quote #1

Check if killer is a player, because it can be 0 (world) or a entity... see code below:
Code:
#define is_player(%1) (0 <= %1 <= g_iMaxPlayers)

new g_iMaxPlayers

// plugin_init()
g_iMaxPlayers = get_maxplayers()
__________________
Hunter-Digital 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 03:23.


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