Little Explanation
#1

I need explanation with something. So i have my @OnPlayerStateChange:

PHP Code:
    {
        new 
Vozilo GetPlayerVehicleID(playerid);
        if(
GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            if(
Vozilo == Autobus[0] || Vozilo == Autobus[1] || Vozilo == Autobus[2] || Vozilo == Autobus[3] || Vozilo == Autobus[4])
            {
                if(
PlayerPosao[playerid][pZaposlen] != 1) return SendClientMessage(playerid,-1,""COLOR_CRVENA"Greska:{FFFFFF} Niste zaposleni kao vozac autobusa"); // This line
                 
else if(PlayerPosao[playerid][pID] != 1) return SendClientMessage(playerid,-1,""COLOR_CRVENA"Greska:{FFFFFF} Niste zaposleni kao vozac autobusa") && RemovePlayerFromVehicle(playerid);
                   {
                     
SendClientMessage(playerid,-1,""COLOR_WG"WG:{FFFFFF} Zapocnite posao:"COLOR_LAGANA" /ruta");
                    
SendClientMessage(playerid,-1,""COLOR_WG"WG:{FFFFFF} Prekinite posao:"COLOR_LAGANA" /prekiniposao");
                }
            }
        }
        return 
1;
    } 
Here you can see a line:

PHP Code:
 if(PlayerPosao[playerid][pZaposlen] != 1) return SendClientMessage(playerid,-1,""COLOR_CRVENA"Greska:{FFFFFF} Niste zaposleni kao vozac autobusa"); 
I need an explanation how could I make this: ...[pZaposlen] != "Potvrda" instead of != 1. I want do to that because when i get job it saves into the ini file "Employed: True" not "Employed: 1"... Any ideas?
Reply


Messages In This Thread
Little Explanation - by NoDi522 - 01.04.2015, 08:04
Re: Little Explanation - by CalvinC - 01.04.2015, 08:37
Re: Little Explanation - by NoDi522 - 01.04.2015, 09:00
Re: Little Explanation - by BroZeus - 01.04.2015, 09:32

Forum Jump:


Users browsing this thread: 2 Guest(s)