Help, please.
#5

do something like this:
pawn Код:
if(strcmp(cmd,"/licenses",true)==0)
    {
        if(IsPlayerConnected(playerid))
        {
            new timplic = PlayerInfo[playerid][pCarLicTime];
            new atext[20];
            if(PlayerInfo[playerid][pCarLicTime] == 0) { atext = "Expirata"; }
            new text1[20];
            if(PlayerInfo[playerid][pCarLicense]) { text1 = "{00FF00}Da"; } else { text1 = "{FF0000}Nu"; }
            if(PlayerInfo[playerid][pCarLicTime] != 0)
            {
            format(string, sizeof(string), "{FFFFFF}Permis conducere: %s {FFFFFF} [Expira in %d ore]", text1,timplic);
            ShowPlayerDialog(playerid, 94, DIALOG_STYLE_MSGBOX, "Licente",string, "Iesire", "");
            }
             if(PlayerInfo[playerid][pCarLicTime] == 0 || PlayerInfo[playerid][liscense here] == 0)
             {
              format(string, sizeof(string), "{FFFFFF}Permis conducere: %s", atext,timplic);
            ShowPlayerDialog(playerid, 94, DIALOG_STYLE_MSGBOX, "Licente",string, "Iesire", "");
        }
        return 1;
    }
the || means that if you have one of them with the time 0
Reply


Messages In This Thread
Help, please. - by Edu4rd - 01.06.2014, 16:21
Re: Help, please. - by Edu4rd - 01.06.2014, 16:34
Re: Help, please. - by Eth - 01.06.2014, 16:38
Re: Help, please. - by Edu4rd - 01.06.2014, 16:45
Re: Help, please. - by Eth - 01.06.2014, 16:45
Re: Help, please. - by Edu4rd - 01.06.2014, 16:58

Forum Jump:


Users browsing this thread: 1 Guest(s)