SA-MP Forums Archive
[AJUDA]Erro - 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]Erro (/showthread.php?tid=260236)



[AJUDA]Erro - FreeGellsTSSA - 07.06.2011

C:\Users\Renan\Desktop\pawno\gamemodes\CGU123.pwn( 204) : error 017: undefined symbol "vehicleid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Comando:

pawn Код:
if(strcmp("/e", cmdtext, true, 10) == 0)
{
SetVehicleHealth(vehicleid, 0.0);
SendClientMessage(playerid, BRANCO,"  »  {30DDE7}BUM BUM{FFFFFF} e {30DDE7}BUM!{FFFFFF}");
return 1;
}
linha 204:
GetVehicleHealth(vehicleid, 0.0);

o que fazer?


Re: [AJUDA]Erro - JonathanFeitosa - 07.06.2011

pawn Код:
if(strcmp("/e", cmdtext, true, 10) == 0)
{
     new vehicleid = GetPlayerVehicleID(playerid);
     SetVehicleHealth(vehicleid, 0.0);
     SendClientMessage(playerid, BRANCO,"  »  {30DDE7}BUM BUM{FFFFFF} e {30DDE7}BUM!{FFFFFF}");
     return true;
}
tente.


Re: [AJUDA]Erro - FreeGellsTSSA - 07.06.2011

funcionando, valeu!


Re: [AJUDA]Erro - Shadoww5 - 07.06.2011

Vocк tambйm poderia colocar desta forma:

PHP код:
if(strcmp("/e"cmdtexttrue10) == 0)
{
     
SetVehicleHealth(GetPlayerVehicleID(playerid), 0.0);
     
SendClientMessage(playeridBRANCO,"  »  {30DDE7}BUM BUM{FFFFFF} e {30DDE7}BUM!{FFFFFF}");
     return 
true;