[Ajuda] error 035: argument type mismatch (argument 2)
#1

Com este code quero detectar se o motor do carro do player ta ligado.

pawn Код:
new a, b, c, d, e, f, g;
        GetVehicleParamsEx(vehicleid, a, b, c, d, e, f, g);
       
        if(GetVehicleParamsEx(vehicleid, a == 1))
        {
                            // resto
                }
Ta dando o erro nesta linha :
Код:
if(GetVehicleParamsEx(vehicleid, a == 1))
pq ?
Reply
#2

Posso substituir
Код:
if(GetVehicleParamsEx(vehicleid, a == 1))
por
Код:
if(a)
Reply
#3

tentei fazer assim
Код:
if(a != false)
mais deu tag mismatch
Reply
#4

para que triple post man poderia dar so um Edit no seu post e adicionar isto awe
Reply
#5

if(a)

fiz assim e deu certo
resolvido
Reply
#6

pawn Код:
if(a == 1) // motor ligado
Reply
#7

Dolby estava estudando esta mesma funзao que ele estб a utilizar.
Reply
#8

Quote:
Originally Posted by Dolby
Посмотреть сообщение
pawn Код:
if(a == 1) // motor ligado
assim nгo funfa da warning

if(a)
{

}

funciona /\
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)