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=260006)



[AJUDA]ERRO - Lip_Name - 06.06.2011

alguem pode me ajudar nesse erro oh

C:\Documents and Settings\usuario\Desktop\Pastas\Phillipe\Near\Serv idor\gamemodes\Near.pwn(542) : error 017: undefined symbol "cmd"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

o comando й esse
if(strcmp(cmd, "/repararcarro", true) == 0)// No cmd da erro como pode ver em cima /\
{ |
if(IsPlayerConnected(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, 0x000000FF, " Veiculo Reparado");
}
}
return 1;
}


Re: [AJUDA]ERRO - Falcon. - 06.06.2011

pawn Код:
if(!strcmp(cmdtext, "/reparar", true))
{
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFAA, "Vocк nгo estб em um veiculo");
   
    SendClientMessage(playerid, 0xFFFFFFAA, "Veiculo Reparado !!");
    RepairVehicle(GetPlayerVehicleID(playerid));
    return 0x1;
}