[AJUDA] Vehicleid - 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] Vehicleid (
/showthread.php?tid=277721)
[AJUDA] Vehicleid -
Lipe_Stronda - 19.08.2011
Mano estou tentando fazer um FS , escolha de cor de veiculo por dialog, mais nao vai dar certo nunca, pq a funзao que estou usando й ChangeVehicleColor , sempre da erro de vehicleid, sabe algum geito ae?
rpt#
Re: [AJUDA] Vehicleid -
ViniBorn - 19.08.2011
Qual erro dб?
Re: [AJUDA] Vehicleid -
Lipe_Stronda - 19.08.2011
PHP код:
C:\Users\Ana e Felipe\Desktop\FSExemplo.pwn(49) : error 017: undefined symbol "vehicleid"
C:\Users\Ana e Felipe\Desktop\FSExemplo.pwn(53) : error 017: undefined symbol "vehicleid"
C:\Users\Ana e Felipe\Desktop\FSExemplo.pwn(57) : error 017: undefined symbol "vehicleid"
C:\Users\Ana e Felipe\Desktop\FSExemplo.pwn(61) : error 017: undefined symbol "vehicleid"
C:\Users\Ana e Felipe\Desktop\FSExemplo.pwn(65) : error 017: undefined symbol "vehicleid"
C:\Users\Ana e Felipe\Desktop\FSExemplo.pwn(69) : error 017: undefined symbol "vehicleid"
C:\Users\Ana e Felipe\Desktop\FSExemplo.pwn(73) : error 017: undefined symbol "vehicleid"
C:\Users\Ana e Felipe\Desktop\FSExemplo.pwn(77) : error 017: undefined symbol "vehicleid"
C:\Users\Ana e Felipe\Desktop\FSExemplo.pwn(81) : error 017: undefined symbol "vehicleid"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
9 Errors.
Linhas sao todas iguais, dps eu iria mudar a cor
PHP код:
ChangeVehicleColor(vehicleid, 0, 1);
Isso ocorre por que й escolha em dialog, e na public dialogresponse nao tem vehicleid la em cima e se eu botar da
PHP код:
C:\Users\Ana e Felipe\Desktop\FSExemplo.pwn(44) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Re: [AJUDA] Vehicleid -
ViniBorn - 19.08.2011
Й sу vocк usar uma variбvel global, que vai armazenar o id do carro escolhido.
Com isso vocк vai poder usб-la em qualquer lugar do GM, inclusive no OnDialogResponse.
Re: [AJUDA] Vehicleid -
Skoll - 19.08.2011
Viniborn ja disse tudo. Se vc nao pode usar vehicleid, cria uma variavel global para substituir, aih o ondialogresponse para de gerar erro.
Re: [AJUDA] Vehicleid -
Lipe_Stronda - 19.08.2011
PHP код:
C:\Users\Ana e Felipe\Desktop\FSExemplo.pwn(43) : error 025: function heading differs from prototype
C:\Users\Ana e Felipe\Desktop\FSExemplo.pwn(45) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Re: [AJUDA] Vehicleid -
ViniBorn - 19.08.2011
Troca vehicleid por outro nome.
Ex: VeiculoDialog
Re: [AJUDA] Vehicleid -
Lipe_Stronda - 19.08.2011
resolvido
Re: [AJUDA] Vehicleid -
ViniBorn - 19.08.2011
Tenta colocar assim.
pawn Код:
if(dialogid == CARROS)
{
if(!response)
return 1;
else
{
switch (listitem)
{
case 0:
{
ChangeVehicleColor(vehicleid,66,66);
}
case 1:
...
}
}
return 1;
}
Re: [AJUDA] Vehicleid -
Lipe_Stronda - 19.08.2011
n funfo ;[