01.04.2015, 08:04
I need explanation with something. So i have my @OnPlayerStateChange:
Here you can see a line:
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?
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;
}
PHP Code:
if(PlayerPosao[playerid][pZaposlen] != 1) return SendClientMessage(playerid,-1,""COLOR_CRVENA"Greska:{FFFFFF} Niste zaposleni kao vozac autobusa");