Bug Canal Ayudantes
#1

Buenas noches, no entiendo porque no me procesa el comando, no le consigo el error.

Este es el comando

PHP код:
YCMD:j(playeridparams[], help)
{
    new 
text[128], name[MAX_PLAYER_NAME];
    if(
PlayerInfo[playerid][Helper] < 1) return SendClientMessage(playerid, -1"No Autorizado!");
    if(
isnull(params)) return SendClientMessage(playerid, -1"Uso: /J [Texto]");
    if(
sscanf(params"s[128]"text))
    {
        
format(textsizeof(text), "Ayudante %s: %s"GetPlayerName(playeridnamesizeof(name)), text);
        
SendClientMessage(playerid, -1text);
    }
    return 
1;

Estoy usando YSI 4.0 y_commands + Sscanf 2.8.2
Reply
#2

Cuando el formato del sscanf se cumple retorna cero (https://github.com/maddinat0r/sscanf...NF_TRUE_RETURN) cambia if(sscanf por if(!sscanf
Reply
#3

Quote:
Originally Posted by Zume
Посмотреть сообщение
Cuando el formato del sscanf se cumple retorna cero (https://github.com/maddinat0r/sscanf...NF_TRUE_RETURN) cambia if(sscanf por if(!sscanf
Mmm no tenia en cuenta ello, gracias por la acotaciуn, +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)