[Ajuda]Basic
#3

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
Dando Aviso Nesse Comando.
pawn Код:
DonSpeed:kit1(playerid, params[])
{
    GetPlayerName(playerid, Name, sizeof(Name));
    if(GivePlayerMoney(playerid) >100)//aviso nessa linha
    {
       SendClientMessage(playerid, VERMELHO,"Voce Nao Tem 100 Reais");
    }
    DarArma(playerid, 24, 999);
    DarArma(playerid, 18, 999);
    DarVida(playerid, 100);
    DarColete(playerid, 100);
    format(don,sizeof(don),"[KIT] O Jogador %s(ID:%d) pegou um Kit-01 (/Kit1)", Name, playerid);
    SendClientMessageToAll(VERMELHO, don);
    return 1;
}
Quote:
Originally Posted by RoacH`
Посмотреть сообщение
pawn Код:
DonSpeed:kit1(playerid, params[])
{
    GetPlayerName(playerid, Name, sizeof(Name));
    if(GetPlayerMoney(playerid) < 100) SendClientMessage(playerid, -1 ,"Voce Nao Tem 100 Reais");
    DarArma(playerid, 24, 999);
    DarArma(playerid, 18, 999);
    DarVida(playerid, 100);
    DarColete(playerid, 100);
    format(don,sizeof(don),"[KIT] O Jogador %s(ID:%d) pegou um Kit-01 (/Kit1)", Name, playerid);
    SendClientMessageToAll(VERMELHO, don);
    return 1;
}
Sem o return nгo adianta nada : )

pawn Код:
if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, -1 ,"Voce Nao Tem 100 Reais");
Reply


Messages In This Thread
[Ajuda]Basic - by Don_Speed - 24.04.2012, 19:53
Re: [Ajuda]Basic - by RoacH` - 24.04.2012, 19:56
Re: [Ajuda]Basic - by ViniBorn - 24.04.2012, 19:58
Re: [Ajuda]Basic - by Don_Speed - 24.04.2012, 20:04
Re: [Ajuda]Basic - by DartakousLien - 24.04.2012, 20:31
Re: [Ajuda]Basic - by Don_Speed - 24.04.2012, 20:33
Re: [Ajuda]Basic - by ViniBorn - 24.04.2012, 20:41
Re: [Ajuda]Basic - by WLSF - 24.04.2012, 20:43
Re: [Ajuda]Basic - by Don_Speed - 24.04.2012, 20:46

Forum Jump:


Users browsing this thread: 1 Guest(s)