Raised This Month: $ Target: $400
 0% 

Show message to dead people


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-16-2007 , 14:21   Re: Show message to dead people
Reply With Quote #1

why to loop trough 32 slots ? o.O pointless... you can make also :
Code:
static Players[32], Num;
get_players(Players, Num);
 
for(new i = 0 ; i < Num ; i++)
{
    if(is_user_alive)
        continue;
 
    //blah blah...your dead.
}
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-16-2007 , 15:04   Re: Show message to dead people
Reply With Quote #2

Does the hudmessage have to be set in the loop ?
ConnorMcLeod is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 11-16-2007 , 19:04   Re: Show message to dead people
Reply With Quote #3

Quote:
Originally Posted by Alka View Post
why to loop trough 32 slots ? o.O pointless... you can make also :
Code:
static Players[32], Num;
get_players(Players, Num);
 
for(new i = 0 ; i < Num ; i++)
{
    if(is_user_alive)
        continue;
 
    //blah blah...your dead.
}
What do you think get_players() do?
If Lee would've added is_user_connected() ( if that ain't allready checked by is_user_alive() (?) ) it would've been better too.
You won't notice the differance anyway.
[ --<-@ ] Black Rose 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 01:18.


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