new VPMilitar[5];
forward VerificarVeiculo(playerid);
public VerificarVeiculo(playerid)
{
for(new c = 0; c <= 4; c++)
{
if(IsPlayerInVehicle(playerid, VPMilitar[c]) && (PlayerInfo[playerid][Profissao] != Policia_Militar) < 1)//545454
{
SendClientMessage(playerid, -0, "Vocк nгo й da Policia Militar");
RemovePlayerFromVehicle(playerid);
return 1;
}
}
return 1;
}
VPMilitar[0] = CreateVehicle(596,1535.9000000,-1678.4000000,13.2000000, 359.5000000, -1, -1, 15); //Veiculo numero 0
VPMilitar[1] = CreateVehicle(596,1535.8000000,-1666.9000000,13.2000000,0.0000000,-1,-1,15); //Veiculo numero 1
VPMilitar[2] = CreateVehicle(596,1573.2000000,-1611.8000000,13.2000000,180.0000000,-1,-1,15); //Veiculo numero 2
VPMilitar[3] = CreateVehicle(596,1568.2000000,-1611.8000000,13.2000000,180.0000000,-1,-1,15); //Veiculo numero 3
#define Policia_Militar 11
enum pInfo {
Profissao
}
enum pInfo {
Profissao
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER) // Player entered a vehicle as a driver
{
VerificarVeiculo(playerid);
}
return 1;
}
C:\Users\alexandre\Desktop\gm\samp037_svr_R1_win32 \gamemodes\BVR.pwn(81) : warning 201: redefinition of constant/macro (symbol "pInfo") C:\Users\alexandre\Desktop\gm\samp037_svr_R1_win32 \gamemodes\BVR.pwn(84) : error 021: symbol already defined: "Profissao" C:\Users\alexandre\Desktop\gm\samp037_svr_R1_win32 \gamemodes\BVR.pwn(103) : error 001: expected token: ")", but found "[" C:\Users\alexandre\Desktop\gm\samp037_svr_R1_win32 \gamemodes\BVR.pwn(103) : error 029: invalid expression, assumed zero C:\Users\alexandre\Desktop\gm\samp037_svr_R1_win32 \gamemodes\BVR.pwn(103) : warning 215: expression has no effect C:\Users\alexandre\Desktop\gm\samp037_svr_R1_win32 \gamemodes\BVR.pwn(103) : error 001: expected token: ";", but found "]" C:\Users\alexandre\Desktop\gm\samp037_svr_R1_win32 \gamemodes\BVR.pwn(103) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors. |
enum pInfo { Profissao } |
if(IsPlayerInVehicle(playerid, VPMilitar[c]) && VPMilitar[playerid][Policia_Militar] < 1) |
enum pInfo { Profissao }
if(IsPlayerInVehicle(playerid, VPMilitar[c]) && (PlayerInfo[playerid][Profissao] != Policia_Militar) < 1) |
C:\Users\alexandre\Desktop\gm\samp037_svr_R1_win32 \gamemodes\BVR.pwn(100) : error 017: undefined symbol "PlayerInfo" C:\Users\alexandre\Desktop\gm\samp037_svr_R1_win32 \gamemodes\BVR.pwn(100) : error 029: invalid expression, assumed zero C:\Users\alexandre\Desktop\gm\samp037_svr_R1_win32 \gamemodes\BVR.pwn(100) : error 029: invalid expression, assumed zero C:\Users\alexandre\Desktop\gm\samp037_svr_R1_win32 \gamemodes\BVR.pwn(100) : fatal error 107: too many error messages on one line |
C:\Users\alexandre\Desktop\gm\samp037_svr_R1_win32 \gamemodes\BVR.pwn(102) : warning 213: tag mismatch C:\Users\alexandre\Desktop\gm\samp037_svr_R1_win32 \gamemodes\BVR.pwn(407) : error 021: symbol already defined: "OnPlayerStateChange" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |