unmatched closing brace ("}")
#2

No'p, there is no missing bracket
PHP код:
public CarCheck()
{
    new 
string[256];
    foreach(
Player,j)
    {
        if(
IsPlayerConnected(j))
        {
            new 
Float:health;
            
GetPlayerHealthEx(jhealth);
            new 
hp GetPlayerHealth(jhealth);
            if(
flymode[j] == || AdminDuty[j] == || hp >= || HelperDuty[j] == 0)
            {
                
SetPlayerHealthEx(jhealth 1.0);
            }
            if(
GetPlayerCash(j) < 0)
            {
                if(
MoneyMessage[j]==0)
                {
                    
format(stringsizeof(string), "You are in debt, you have till next Time Check to get: $%d or you go to jail."GetPlayerCash(j));
                    
SendClientMessage(jCOLOR_LIGHTREDstring);
                    
MoneyMessage[j] = 1;
                }
            }
            else
            {
                
MoneyMessage[j] = 0;
            }
        }
    }
    return 
1;

Edit; new hp = GetPlayerHealth(j, health); should return 1 everytime because GetPlayerHealth return
Код:
Return Values:
1 - success
0 - failure (i.e. player not connected).
The player's health is stored in the specified variable.
Reply


Messages In This Thread
unmatched closing brace ("}") - by AlexuTzVs - 18.05.2017, 21:43
Re: unmatched closing brace ("}") - by Dayrion - 18.05.2017, 21:45

Forum Jump:


Users browsing this thread: 1 Guest(s)