[AYUDA]Comando
#1

Hola forum samp, bueno mi pregunta es que hice mal en este comando

pawn Код:
if(!strcmp("/skin",cmdtext,true))
    {
        new iString[128], tmp[128];
        tmp = strtok(cmdtext, idx);

        if (!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_ROJO, "[USA]: /skin [ID]");
            return true;
        }

        idx = strval(tmp);

        if (SkinInvalido(idx) || idx < MIN_SKIN_ID || idx > MAX_SKIN_ID)
        {
            SendClientMessage(playerid, COLOR_ROJO, "[ERROR]:ID de skin no valido!");
            return true;
        }
        SetPlayerSkin(playerid, idx);
        JugadorSkin[playerid] = idx;
        format(iString, 128, "[SKIN]: Ha cambiado a Skin (ID:%d)", idx);
        SendClientMessage(playerid, COLOR_VERDE, iString);
        return 1;
    }
cuando pongo /skin sale [USA]: /skin [ID] y cuando pongo /skin 299(o cualquier otro skin) sale que el comando no existe... cual es el error??

espero que me puedan ayudar
Reply


Messages In This Thread
[AYUDA]Comando - by Fluid016 - 21.04.2012, 02:56
Respuesta: [AYUDA]Comando - by OTACON - 21.04.2012, 06:21
Respuesta: [AYUDA]Comando - by Fluid016 - 21.04.2012, 08:12
Respuesta: [AYUDA]Comando - by OTACON - 21.04.2012, 08:54
Respuesta: [AYUDA]Comando - by Fluid016 - 21.04.2012, 17:17
Re: [AYUDA]Comando - by Soi_salva - 21.04.2012, 19:38
Respuesta: [AYUDA]Comando - by Fluid016 - 21.04.2012, 21:00
Respuesta: [AYUDA]Comando - by TiNcH010 - 21.04.2012, 21:37
Respuesta: [AYUDA]Comando - by Fluid016 - 21.04.2012, 22:09
Respuesta: [AYUDA]Comando - by ValenRatti - 21.04.2012, 23:15

Forum Jump:


Users browsing this thread: 1 Guest(s)