Count
#5

Quote:
Originally Posted by Shinja
Посмотреть сообщение
Line? and show code above aswell
correction;


Utils/PlayerFunctions.pwn(110 : error 029: invalid expression, assumed zero
Utils/PlayerFunctions.pwn(110 : warning 215: expression has no effect
Utils/PlayerFunctions.pwn(110 : error 001: expected token: ";", but found "if"

Line 1108:
Код:
else if(pInfo[playerid][pBlood] <= 1000 && gettime() > BloodWarning[playerid] + 600)// 10 minutes
The whole part:
PHP код:
CheckBars(playerid)
{
    if(
pInfo[playerid][pIsPlayerSpawned] == true && pInfo[playerid][pIsPlayerInMenu] == false)
    {
        if(
pInfo[playerid][pHunger] <= 0)
        {
            new 
str[65];
            
format(str,sizeof(str),"* "COL_GREY" %s has starved to death!"pInfo[playerid][pUsername]);
            
SendNearbyMessage(60.0playeridstr, -1);
            
SendClientMessage(playerid,-1,"*"COL_GREY" You starved to death!");
            
SetPlayerHealth(playerid0.0);
        }
        else if(
pInfo[playerid][pThirst] <= 0)
        {
            new 
str[65];
            
format(str,sizeof(str),"* "COL_GREY" %s has died of thirst!"pInfo[playerid][pUsername]);
            
SendNearbyMessage(60.0playeridstr, -1);
            
SendClientMessage(playerid,-1,"*"COL_GREY" You died of thirst!");
            
SetPlayerHealth(playerid0.0);
        }
        else if(
pInfo[playerid][pBlood] <= 0)
        {
            new 
str[65];
            
format(str,sizeof(str),"* "COL_GREY" %s has died of blood loss!"pInfo[playerid][pUsername]);
            
SendNearbyMessage(60.0playeridstr, -1);
            
SendClientMessage(playerid,-1,"*"COL_GREY" You died of blood loss!");
            
SetPlayerHealth(playerid0.0);
        }
        
        else if(
pInfo[playerid][pTemperature] <= 0.0)
        {
            new 
str[65];
            
format(str,sizeof(str),"* "COL_GREY" %s has frozen to death!"pInfo[playerid][pUsername]);
            
SendNearbyMessage(60.0playeridstr, -1);
            
SendClientMessage(playerid,-1,"*"COL_GREY" You froze to death!");
            
SetPlayerHealth(playerid0.0);
        }
        new 
BloodWarning[MAX_PLAYERS]; 
        else if(
pInfo[playerid][pBlood] <= 1000 && gettime() > BloodWarning[playerid] + 600)// 10 minutes 
        

            
SendClientMessage(playerid,-1,"*"COL_RED" You have low amount of blood! Use a blood bag or a medical kit to replenish your health!"); 
            
BloodWarning[playerid]=gettime(); 
        }  
    }
    return 
1;

Reply


Messages In This Thread
Count - by DarkMythHunter - 02.09.2018, 09:25
Re: Count - by Shinja - 02.09.2018, 12:33
Re: Count - by DarkMythHunter - 03.09.2018, 13:25
Re: Count - by Shinja - 03.09.2018, 13:29
Re: Count - by DarkMythHunter - 03.09.2018, 13:35
Re: Count - by Shinja - 03.09.2018, 13:46
Re: Count - by DarkMythHunter - 03.09.2018, 13:51
Re: Count - by Shinja - 03.09.2018, 15:27
Re: Count - by DarkMythHunter - 03.09.2018, 22:56

Forum Jump:


Users browsing this thread: 8 Guest(s)