30.03.2015, 11:11
Hello.
I need your help with job bus driver + i will need a little explanation.
Here are errors:
This is onplayerstatechange:
++ Ignore RentVehicle functions before bus driver.
Than i've got my vehicles under ongmmodeinit:
Array:
So i put this thread because i need a little explanation the errors are not the biggest problem i need to solve.
You can see this:
Now instead of using ...[pZaposle] != 1 I would like to use "Potvrda" because that is the form in which he saves into the .ini file. And if u use != 1 nothing will happen beacuse it saves "potvrda" not 1 ?
I need your help with job bus driver + i will need a little explanation.
Here are errors:
PHP код:
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1315) : error 001: expected token: "-identifier-", but found "state"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1317) : error 001: expected token: "-identifier-", but found "=="
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1317) : error 036: empty statement
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1321) : error 017: undefined symbol "Potvrda"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(2010) : warning 203: symbol is never used: "INVehicle"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
++ Ignore RentVehicle functions before bus driver.
PHP код:
{
new newcar = GetPlayerVehicleID(playerid);
if(newstate == 2)
{
if(RentVozila(newcar))
{
if(Rentano[playerid] == newcar)
{
ShowPlayerDialog(playerid,DIALOG_RENT,DIALOG_STYLE_LIST,"Iznamjite vozilo","[1] Rent Vrijeme - N/A (500$)","Odaberi","Izlaz");
TogglePlayerControllable(playerid,0);
}
}
return 1;
}
{
new state = GetPlayerState(playerid);
new Vozilo = GetPlayerVehicleID(playerid);
if(state == PLAYER_STATE_DRIVER)
{
if(Autobus[Vozilo])
{
if(PlayerPosao[playerid][pZaposlen] != Potvrda) return SendClientMessage(playerid,-1,""COLOR_CRVENA"Greska:{FFFFFF} Niste zaposleni kao vozac autobusa");
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 код:
//### Posao sistem - vozila - Autobusi ###//
{
Autobus[0] = AddStaticVehicle(431,-2443.7861,2228.0076,4.8438,1.0410,1,3);
Autobus[1] = AddStaticVehicle(431,-2449.7913,2228.0076,4.8438,359.1377,1,3);
Autobus[2] = AddStaticVehicle(431,-2455.7551,2228.0076,4.8438,0.3910,1,3);
Autobus[3] = AddStaticVehicle(431,-2461.6655,2228.0076,4.8438,356.9442,1,3);
Autobus[4] = AddStaticVehicle(431,-2467.5342,2228.0076,4.8438,4.1509,1,3);
}
PHP код:
//### Posao sistem ###/
new Autobus[5];
You can see this:
PHP код:
if(PlayerPosao[playerid][pZaposlen] != Potvrda) return SendClientMessage(playerid,-1,""COLOR_CRVENA"Greska:{FFFFFF} Niste zaposleni kao vozac autobusa");