Raised This Month: $ Target: $400
 0% 

[HELP] How do I loop set_task for only a few seconds.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GoldNux
Senior Member
Join Date: Mar 2018
Old 04-22-2018 , 10:42   Re: [HELP] How do I loop set_task for only a few seconds.
Reply With Quote #1

Quote:
Originally Posted by Natsheh View Post
PHP Code:
public updatePlayerEconomy()
{
    new 
players[32], playercountplayerplayer2szName[32];
    
get_players(playersplayercount"h");
    for (new 
ijiPTeamiPMoneyplayercounti++)
    {
        
player players[i];
        
        if (
CS_TEAM_T <= (iPTeam=cs_get_user_team(player)) <= CS_TEAM_CT)
        {
            
iPMoney cs_get_user_money(player);
            
get_user_name(playerszNamecharsmax(szName));
            for(
0playercountj++)
            {
                   
player2 players[j];
                   if(
iPTeam != cs_get_user_team(player2)) continue;
                   
client_print(player2print_chat"%s => $%d"szNameiPMoney)
             }
        }

Thanks Natsheh for taking care of that.

I get some issues on these lines:

if (CS_TEAM_T <= (iPTeam=cs_get_user_team(player)) <= CS_TEAM_CT)
if (iPTeam != cs_get_user_team(player2)) continue;

WARNING [36]: tag mismatch
WARNING [36]: tag mismatch
WARNING [36]: tag mismatch
WARNING [43]: tag mismatch

Not sure what is wrong.
__________________
Try my version of de_dust2, I think it's great and you should check it out!
https://gamebanana.com/mods/83731
GoldNux 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 04:39.


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