Raised This Month: $ Target: $400
 0% 

First[id] still remains


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 11-28-2010 , 12:55   First[id] still remains
Reply With Quote #1

PHP Code:
public round_end(id)
{
    if(!
is_user_alive(id))
       return 
PLUGIN_HANDLED;

    
First[id] = false;
    return 
PLUGIN_HANDLED;

It has to make that First[id] was false at the end of the round.
But it doesn't, if it doesn't I can't use another function next round.
DoviuX is offline
Send a message via Skype™ to DoviuX
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-28-2010 , 12:57   Re: First[id] still remains
Reply With Quote #2

How are you calling round_end?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 11-28-2010 , 13:01   Re: First[id] still remains
Reply With Quote #3

PHP Code:
    register_logevent("round_end"2"1=Round_End"); 
DoviuX is offline
Send a message via Skype™ to DoviuX
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-28-2010 , 13:25   Re: First[id] still remains
Reply With Quote #4

I'll beat him to the punch:

Quote:
Originally Posted by DoviuX
Then how do I set First[id] to false?
You loop through all connected players and set their First[id] variable to false.

EDIT: So close lol.
__________________
fysiks is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-28-2010 , 13:13   Re: First[id] still remains
Reply With Quote #5

id is not passed to that event as it is only called once, not per user.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 11-28-2010 , 13:24   Re: First[id] still remains
Reply With Quote #6

so how do I call it ? or change parameter ?
DoviuX is offline
Send a message via Skype™ to DoviuX
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 11:27.


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