Problem
#5

PHP код:
forward HungerThirstCheck(playerid);
public 
HungerThirstCheck(playerid)
{
    foreach (new 
Player)
    {
        if (
PlayerData[i][pHunger] >= 50)
        {
                
GameTextForPlayer(i"You are hungry, get something to eat."16);
            }
            if (
PlayerData[i][pHunger] >= 25)
            {
                
GameTextForPlayer(i"You are starving, get something to eat before you die."88);
            }
               if (
PlayerData[i][pThirst] >= 50)
            {
                
GameTextForPlayer(i"You are thirsty, get something to drink."88);
            }
            if (
PlayerData[i][pHunger] >= 25)
            {
                
GameTextForPlayer(i"You are becoming unstable, get something to drink before you dehydrate."88);
            }
        }
    }
return 
1;

Use this
Reply


Messages In This Thread
Problem - by Scottylad - 14.06.2015, 21:05
Re: Problem - by xamen - 14.06.2015, 21:07
Re: Problem - by Scottylad - 14.06.2015, 21:11
Re: Problem - by Trucido - 14.06.2015, 23:17
Re: Problem - by SoFahim - 15.06.2015, 05:26
Re: Problem - by mamorunl - 15.06.2015, 07:39
Re: Problem - by SoFahim - 15.06.2015, 07:51
Re: Problem - by mamorunl - 15.06.2015, 08:08
Re: Problem - by Threshold - 15.06.2015, 08:59

Forum Jump:


Users browsing this thread: 2 Guest(s)