SA-MP Forums Archive
Bug Canal Ayudantes - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Bug Canal Ayudantes (/showthread.php?tid=627768)



Bug Canal Ayudantes - Eloy - 01.02.2017

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


Respuesta: Bug Canal Ayudantes - Zume - 01.02.2017

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


Respuesta: Bug Canal Ayudantes - Eloy - 01.02.2017

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