Raised This Month: $ Target: $400
 0% 

Function _get_user_point(id) should return a value?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kz1.0
Senior Member
Join Date: Jan 2013
Location: Vietnam
Old 05-22-2013 , 12:36   Function _get_user_point(id) should return a value?
Reply With Quote #1

I make a native to get some value through another plugin. But the compiler return a warning, how to fix it ?

PHP Code:
public _get_user_point(id)
{
    if (!(
is_user_connected(id)))
        return 
0
        
    
else
        return 
points[id]

Kz1.0 is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 05-22-2013 , 13:26   Re: Function _get_user_point(id) should return a value?
Reply With Quote #2

PHP Code:
public _get_user_point(id

    if (!
is_user_connected(id)) 
        return -

         
    
    
return points[id

__________________

Last edited by Bos93; 05-22-2013 at 13:26.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Kz1.0
Senior Member
Join Date: Jan 2013
Location: Vietnam
Old 05-22-2013 , 14:42   Re: Function _get_user_point(id) should return a value?
Reply With Quote #3

ty! and 1 more question, why the get_players with "ae" flag didn't correct ?

Here is my code:

PHP Code:
    new playersct[32], numct
    get_players
(playersctnumct"ae""CT")
    
    for (new 
i=1i<=numcti++)
    {
            
points[i]++
                        
//
    

And it always add point to both alive players, whatever team he is . I have searched and used ConnorMcLeod fix too, but it still doesn't work.
Kz1.0 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 16:23.


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