[Ajuda] Passar zcmd para strcmp
#1

alguem me ajuda ae alguem passa estes 2 cmds para strcmp fazendo favor :

pawn Код:
CMD:setkill(playerid, params[])
{
    new id, kill;
    if(sscanf(params, "di", id, kill)) return SendClientMessage(playerid, -1,"Use /setkill [ID] [Kills]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "Este Player Nгo Esta Logado!");
    Matou[playerid] = kill;
    return 1;
}

CMD:setmortes(playerid, params[])
{
     new id, morreu;
     if(sscanf(params, "di", id, morreu)) return SendClientMessage(playerid, -1,"Use /setmortes [ID] [Mortes]");
     if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "Este Player Nгo Esta Logado!");
     Morreu[playerid] = morreu;
     return 1;
}
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/setkill", cmdtext, true, 10) == 0)
    {
        new id, kill;
        if(sscanf(params, "di", id, kill)) return SendClientMessage(playerid, -1,"Use /setkill [ID] [Kills]");
        if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "Este Player Nгo Esta Logado!");
        Matou[playerid] = kill;
        return 1;
    }
    if (strcmp("/setmortes", cmdtext, true, 10) == 0)
    {
        new id, morreu;
        if(sscanf(params, "di", id, morreu)) return SendClientMessage(playerid, -1,"Use /setmortes [ID] [Mortes]");
        if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "Este Player Nгo Esta Logado!");
        Morreu[playerid] = morreu;
        return 1;
    }
    return 0;
}
Mas strcmp cara? --'
Reply
#3

Edu33
sscanf em strcmp? what the fuck?

-
Topic
Te aconselho,a ficar com o ZCMD, se vocк ta criando um GM,ou editando um gm de poucos comandos,e mais facil.
Reply
#4

puts vey o meu fs ja tem varios comandos em strcmp
Reply
#5

Quote:
Originally Posted by denis15711
Посмотреть сообщение
puts vey o meu fs ja tem varios comandos em strcmp
FS?
Melhor ainda man,vejб esse code ai,e passa os seus comandos para zcmd, +rapido+avanзado de se usar:]
Reply
#6

Quote:
Originally Posted by @Riichard
Посмотреть сообщение
Edu33
sscanf em strcmp? what the fuck?

-
Topic
Te aconselho,a ficar com o ZCMD, se vocк ta criando um GM,ou editando um gm de poucos comandos,e mais facil.
Eu transformei uй kkk'
Ele qui pediu '-'
Reply
#7

kkk vou deixar assim msm vlw por ajudar vey
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)