[Tutorial] Pawno Funзхes Basicas
#5

Quote:
Originally Posted by Jonathan_Feitosa
Посмотреть сообщение
pawn Код:
// Isso  ta errado:
    public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmd, "/pegarcolete",true) == 0)  
{
    SetPlayerArmour(playerid, 100);
    SendClientMessage(playerid,0x1229FAFF,"Vocк Pegou Um Colete A Prova De Balas");
}
}
pawn Код:
// certo:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/pegarcolete",true) == 0)  
    {
       SetPlayerArmour(playerid, 100);
       SendClientMessage(playerid,0x1229FAFF,"Vocк Pegou Um Colete A Prova De Balas");
       return true;
    }
    return false;
}
Os Comandos estгo errados.
Mais Eu fiz os comandos no meu servidor sem o return true; e nao mudou nada la
Reply


Messages In This Thread
Pawno Funзхes Basicas - by Luiz98 - 01.08.2011, 00:19
Re: Pawno Funзхes Basicas - by Luiz98 - 01.08.2011, 00:25
Re: Pawno Funзхes Basicas - by Josma_cmd - 01.08.2011, 00:25
Re: Pawno Funзхes Basicas - by JonathanFeitosa - 01.08.2011, 00:28
Re: Pawno Funзхes Basicas - by Luiz98 - 01.08.2011, 00:33
Re: Pawno Funзхes Basicas - by RockFire - 01.08.2011, 00:44
Re: Pawno Funзхes Basicas - by Josma_cmd - 01.08.2011, 01:08
Re: Pawno Funзхes Basicas - by BrunoBSF - 01.08.2011, 01:28
Re: Pawno Funзхes Basicas - by Y_Baby - 07.08.2011, 15:50

Forum Jump:


Users browsing this thread: 4 Guest(s)