[AJUDA]Erro
#1

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?
Reply
#2

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.
Reply
#3

funcionando, valeu!
Reply
#4

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;

Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)