[Ajuda] error 035: argument type mismatch (argument 2) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] error 035: argument type mismatch (argument 2) (
/showthread.php?tid=533293)
error 035: argument type mismatch (argument 2) -
Duun - 23.08.2014
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 ?
Re: error 035: argument type mismatch (argument 2) -
Duun - 23.08.2014
Posso substituir
Код:
if(GetVehicleParamsEx(vehicleid, a == 1))
por
Re: error 035: argument type mismatch (argument 2) -
Duun - 23.08.2014
tentei fazer assim
mais deu tag mismatch
Re: error 035: argument type mismatch (argument 2) -
Patrick141 - 23.08.2014
para que triple post man poderia dar so um Edit no seu post e adicionar isto awe
Re: error 035: argument type mismatch (argument 2) -
Duun - 23.08.2014
if(a)
fiz assim e deu certo
resolvido
Re: error 035: argument type mismatch (argument 2) -
Dolby - 23.08.2014
pawn Код:
if(a == 1) // motor ligado
Re: error 035: argument type mismatch (argument 2) -
Patrick141 - 23.08.2014
Dolby estava estudando esta mesma funзao que ele estб a utilizar.
Re: error 035: argument type mismatch (argument 2) -
Duun - 23.08.2014
Quote:
Originally Posted by Dolby
pawn Код:
if(a == 1) // motor ligado
|
assim nгo funfa da warning
if(a)
{
}
funciona /\