Raised This Month: $ Target: $400
 0% 

lol


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BodyBuilder
BANNED
Join Date: Jun 2011
Location: Europa-USA-Moon
Old 08-05-2011 , 09:28   lol
Reply With Quote #1

lol

Last edited by BodyBuilder; 12-23-2012 at 12:37.
BodyBuilder is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 08-05-2011 , 09:35   Re: Invalid player id 0
Reply With Quote #2

you didn't define killer before it's used.
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
Old 08-05-2011, 09:51
BodyBuilder
This message has been deleted by BodyBuilder.
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 #4

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
Old 08-05-2011, 10:05
BodyBuilder
This message has been deleted by BodyBuilder.
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 08-05-2011 , 10:08   Re: Invalid player id 0
Reply With Quote #6

Code:
if(is_player(killer))
{
 // your code... 
}
... ?
It's basic stuff.
__________________
Hunter-Digital is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-05-2011 , 14:48   Re: Invalid player id 0
Reply With Quote #7

Quote:
Originally Posted by BodyBuilder View Post
i am not a scripter
Then why are you scripting? Or even releasing plugins?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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