15.02.2011, 17:04
(
Последний раз редактировалось RenisiL; 16.02.2011 в 07:17.
)
Problem solved
new Info ; switch( Info ) { case 0: { if( playerDB[playerid][PlayerTime] > 0 ){ SendClientMessage( playerid, BLUE, "Yra Vaikutis - 11Metų" ); } case 1: { if( playerDB[playerid][PlayerTime] >= 30 ){ SendClientMessage( playerid, BLUE, "Yra Pauglys - 16Metų" ); } case 2: { if( playerDB[playerid][PlayerTime] >= 68 ){ SendClientMessage( playerid, BLUE, "Yra Vyras - 28Metų" ); } case 3: { if( playerDB[playerid][PlayerTime] >= 150 ){ SendClientMessage( playerid, BLUE, "Esu Jau senukas - 65Metų" ); } }
new
Info
;
switch( Info )
{
case 0: { if(( playerDB[playerid][PlayerTime] > 0 ) && ( playerDB[playerid][PlayerTime] < 30 )){ SendClientMessage( playerid, BLUE, "Yra Vaikutis - 11Metų" ); }
case 1: { if(( playerDB[playerid][PlayerTime] >= 30 ) && ( playerDB[playerid][PlayerTime] < 68)){ SendClientMessage( playerid, BLUE, "Yra Pauglys - 16Metų" ); }
case 2: { if(( playerDB[playerid][PlayerTime] >= 68 ) && ( playerDB[playerid][PlayerTime] < 150)){ SendClientMessage( playerid, BLUE, "Yra Vyras - 28Metų" ); }
case 3: { if( playerDB[playerid][PlayerTime] >= 150 ){ SendClientMessage( playerid, BLUE, "Esu Jau senukas - 65Metų" ); }
}
new Info ; switch( Info ) { case 0: { if( playerDB[playerid][PlayerTime] > 0 && playerDB[playerid][PlayerTime] < 30 ) { SendClientMessage( playerid, BLUE, "Yra Vaikutis - 11Metų" ); } } case 1: { if( playerDB[playerid][PlayerTime] >= 30 && playerDB[playerid][PlayerTime] < 68) { SendClientMessage( playerid, BLUE, "Yra Pauglys - 16Metų" ); } } case 2: { if( playerDB[playerid][PlayerTime] >= 68 && playerDB[playerid][PlayerTime] < 150) { SendClientMessage( playerid, BLUE, "Yra Vyras - 28Metų" ); } } case 3: { if( playerDB[playerid][PlayerTime] >= 150 ) { SendClientMessage( playerid, BLUE, "Esu Jau senukas - 65Metų" ); } } }
if( (playerDB[playerid][PlayerTime] > 0) && (playerDB[playerid][PlayerTime] < 30) )
{
SendClientMessage( playerid, BLUE, "Yra Vaikutis - 11Metu;" );
}
if( (playerDB[playerid][PlayerTime] >= 30) && (playerDB[playerid][PlayerTime] < 68))
{
SendClientMessage( playerid, BLUE, "Yra Pauglys - 16Metu;" );
}
if( (playerDB[playerid][PlayerTime] >= 68) && (playerDB[playerid][PlayerTime] < 150))
{
SendClientMessage( playerid, BLUE, "Yra Vyras - 28Metu;" );
}
if( playerDB[playerid][PlayerTime] >= 150 )
{
SendClientMessage( playerid, BLUE, "Esu Jau senukas - 65Metu;" );
}