SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 15/02/2020, 08:06 PM   #1
JoaoGhost
Big Clucker
 
JoaoGhost's Avatar
 
Join Date: Sep 2018
Location: Brazil
Posts: 58
Reputation: 3
Default Problemas com timer

Queria saber se á algo de errado com esse Timer:

PHP Code:
SetTimer("MoneyCheck"1000true);

forward MoneyCheck();
public 
MoneyCheck()
{
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            if(
GetPlayerMoney(i) > playermoney[i])
            {
                
ResetPlayerMoney(i);
                
GivePlayerMoney(iplayermoney[i]);
            }
        }
    }
    return 
1;

Quando o jogador recebe algum dinheiro, o valor não atualiza no HUD, só se o jogador relogar.

Obs: resolvi kk
JoaoGhost is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Performance Question , Per Player Timer vs Timer that loops through all players BiosMarcel Scripting Help 14 12/12/2016 09:50 AM
Which is better Per Player Timer or Global timer? (issue with timer) Dokins Scripting Help 4 07/06/2016 09:50 AM
Slice's Timer Fix include --> timer public function isn't getting called Riwerry Scripting Help 0 02/01/2016 03:50 PM
Problemas com Timer PawninG Português/Portuguese 2 05/10/2010 11:53 AM


All times are GMT. The time now is 11:26 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.