[Ajuda] veiculo profissao
#1

como faзo para ver se o player que esta entrando no veiculo de uma profissao й dessa profissao?

eu fiz isso:
PHP Code:
if (GetPlayerVehicleID(playerid) == caminhao[0])
    {
        if(
GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
            {
            if(
Player[playerid][Profissao]!=1)
                {
                
ClearAnimations playerid ) ;
                 
RemovePlayerFromVehicle(playerid);
                 
SendClientMessage(playerid,COR_VERMELHO,"Vocк nгo й um Caminhoneiro");
                }
            }
    } 
PHP Code:
new caminhao[23];
//////////vaiculos
public OnFilterScriptInit()
{
    
caminhao[0] = CreateVehicle(4032778.1956, -2376.827114.105190.000011100);
    
caminhao[1] = CreateVehicle(4032759.2173, -2375.741514.1051, -90.180011100);
    
caminhao[2] = CreateVehicle(4032759.2842, -2372.063014.1051, -90.000011100);
    
caminhao[3] = CreateVehicle(4032759.4177, -2368.599114.1051, -90.060011100);
    
caminhao[4] = CreateVehicle(4032759.2805, -2364.922614.1051, -90.060011100);
    
caminhao[5] = CreateVehicle(4032759.3254, -2361.092814.1051, -90.000011100);
    
caminhao[6] = CreateVehicle(4032759.5269, -2357.420714.1051, -90.000011100);
    
caminhao[7] = CreateVehicle(4032759.5083, -2353.450414.1051, -90.240011100);
    
caminhao[8] = CreateVehicle(4032759.6807, -2349.339614.1051, -90.000011100);
    
caminhao[9] = CreateVehicle(4032759.9221, -2345.439514.1051, -90.000011100);
    
caminhao[10] = CreateVehicle(4032759.8955, -2341.316714.1051, -90.060011100);
    
caminhao[11] = CreateVehicle(4032760.0535, -2337.039614.1051, -90.000011100);
    
caminhao[12] = CreateVehicle(4032759.3333, -2379.268314.1051, -90.000011100);
    
caminhao[13] = CreateVehicle(4032778.0913, -2381.075014.105190.000011100);
    
caminhao[14] = CreateVehicle(4032777.8953, -2387.481214.105190.000011100);
    
caminhao[15] = CreateVehicle(4032777.9941, -2384.305214.105190.000011100);
    
caminhao[16] = CreateVehicle(4032777.5559, -2395.318414.105190.000011100);
    
caminhao[17] = CreateVehicle(4032777.4539, -2398.809314.105190.000011100);
    
caminhao[18] = CreateVehicle(4032777.3525, -2402.245614.105190.000011100);
    
caminhao[19] = CreateVehicle(4032777.6592, -2391.816714.105190.000011100);
    
caminhao[20] = CreateVehicle(4032775.9270, -2418.251214.105190.000011100);
    
caminhao[21] = CreateVehicle(4032774.7324, -2455.206514.105190.000011100);
    
caminhao[22] = CreateVehicle(4032774.7046, -2493.558114.105190.000011100); 
da esses erros
Code:
E:\sampser\gamemodes\rpgm.pwn(500) : error 017: undefined symbol "caminhao"
E:\sampser\gamemodes\rpgm.pwn(500) : warning 215: expression has no effect
E:\sampser\gamemodes\rpgm.pwn(500) : error 001: expected token: ";", but found "]"
E:\sampser\gamemodes\rpgm.pwn(500) : error 029: invalid expression, assumed zero
E:\sampser\gamemodes\rpgm.pwn(500) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
desculpa por estar postando muitos threads no forum й que й a parte que mais tenho dificuldade
Reply


Messages In This Thread
veiculo profissao - by pjfPedro - 27.04.2020, 01:31
Re: veiculo profissao - by pjfPedro - 27.04.2020, 01:41
Re: veiculo profissao - by RayanSanty - 27.04.2020, 01:44
Re: veiculo profissao - by Hatiro - 27.04.2020, 01:45
Re: veiculo profissao - by RayanSanty - 27.04.2020, 01:47
Re: veiculo profissao - by pjfPedro - 27.04.2020, 01:48
Re: veiculo profissao - by pjfPedro - 27.04.2020, 01:54
Re: veiculo profissao - by pjfPedro - 27.04.2020, 02:14
Re: veiculo profissao - by Hatiro - 27.04.2020, 02:52
Re: veiculo profissao - by pjfPedro - 27.04.2020, 11:27

Forum Jump:


Users browsing this thread: 1 Guest(s)