[Ajuda] /darvida [id] [vida]
#4

Quote:
Originally Posted by @Riichard
Посмотреть сообщение
Tente..
pawn Код:
CMD:darvida(playerid, params[])
{
    new
        ID,
        Vida
    ;
   
    if(sscanf(params, "if", ID, Vida))
        return SendClientMessage(playerid, -1, "Use: /darvida [id] [vida]");
       
    if(!IsPlayerConnected(ID))
        return SendClientMessage(playerid, -1, "Este jogador nгo estб conectado");

    SetPlayerHealth(ID, Vida);
   
    return true;
}
kkkkkk players nгo sгo mais "u" e Valor da vida n deveria ser uma Float??

Quote:
Originally Posted by "******"
u = User name/id (bots and players) ******, 0
pawn Код:
new
        ID,
        Float:Vida
    ;
if(sscanf(params, "ud", ID, Vida))
        return SendClientMessage(playerid, -1, "Use: /darvida [id] [vida]");
Reply


Messages In This Thread
/darvida [id] [vida] - by Mateus_. - 10.03.2013, 00:35
Re: /darvida [id] [vida] - by @Riichard - 10.03.2013, 00:40
Re: /darvida [id] [vida] - by Mateus_. - 10.03.2013, 00:53
Re: /darvida [id] [vida] - by Sky™ - 10.03.2013, 01:03
Re: /darvida [id] [vida] - by @Riichard - 10.03.2013, 01:08
Re: /darvida [id] [vida] - by Sky™ - 10.03.2013, 01:09
Re: /darvida [id] [vida] - by @Riichard - 10.03.2013, 01:10
Re: /darvida [id] [vida] - by Abravanel - 10.03.2013, 01:12
Re: /darvida [id] [vida] - by LuxuN - 10.03.2013, 01:22
Re: /darvida [id] [vida] - by feliphemort - 10.03.2013, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)