SA-MP Forums Archive
[Ajuda] Cmd nгo executa - 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] Cmd nгo executa (/showthread.php?tid=431557)



[Ajuda] Cmd nгo executa - ZePequeno - 18.04.2013

eu dou /vidatcps e da a vida a os tcp's mas sу que da comando inexistente alguйm ajuda ?
pawn Код:
if(strcmp(cmdtext,"/vidatcps",true) == 0)
{
if(PlayerInfo[playerid][TCP] < 6) return SendClientMessage(playerid,COLOR_RED,"ERRO: Vocк nгo tem permissгo para usar este comando!");
{
 for(new i = 0; i <= MAX_PLAYERS; i++)
  {
  if(PlayerInfo[i][TCP] >= 0)
  {
   SetPlayerHealth(i, 100);
  }
 }
 return 1;
}
return 1;
}



Re: [Ajuda] Cmd nгo executa - steak - 18.04.2013

pawn Код:
if(strcmp(cmdtext,"/vidatcps",true) == 0) {
    if(PlayerInfo[playerid][TCP] < 6) return SendClientMessage(playerid,COLOR_RED,"ERRO: Vocк nгo tem permissгo para usar este comando!");
    for(new i = 0; i <= MAX_PLAYERS; i++) {
        if(PlayerInfo[i][TCP] >= 0) {
            SetPlayerHealth(i, 100);
        }
    }
    return 1;
}



Re: [Ajuda] Cmd nгo executa - ZePequeno - 18.04.2013

Quote:
Originally Posted by steak
Посмотреть сообщение
pawn Код:
if(strcmp(cmdtext,"/vidatcps",true) == 0) {
    if(PlayerInfo[playerid][TCP] < 6) return SendClientMessage(playerid,COLOR_RED,"ERRO: Vocк nгo tem permissгo para usar este comando!");
    for(new i = 0; i <= MAX_PLAYERS; i++) {
        if(PlayerInfo[i][TCP] >= 0) {
            SetPlayerHealth(i, 100);
        }
    }
    return 1;
}
mesma coisa.


Re: [Ajuda] Cmd nгo executa - smiiir - 18.04.2013

Tenta

PHP код:
if ( strcmp cmdtext,"/vidatcps",true) == )
{
    if ( 
PlayerInfo playerid ][ TCP ] < )
        return 
SendClientMessage playeridCOLOR_RED"ERRO: Vocк nгo tem permissгo para usar este comando!" ) ;
        
    for(new 
0<= MAX_PLAYERSi++ )
    {
        if ( 
PlayerInfo ] [ TCP ] >= )
        {
            
SetPlayerHealth i100 ) ;
        }

    }
    return 
1;