Problema con comandos basicos :S
#4

pawn Код:
if(strcmp(cmd, "/b", true,2) == 0)//local ooc
    {
        if(IsPlayerConnected(playerid))
        {
            if(!IsPlayerConnected(playerid))
            {
                SendClientMessage(playerid, COLOR_GREY, "   Necesiats logearte antes de usar esto!");
                return 1;
            }
            GetPlayerName(playerid, sendername, sizeof(sendername));
            new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[128];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = cmdtext[idx];
                idx++;
            }
            result[idx - offset] = EOS;
            if(!strlen(result))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "[INFO]: /b [chat OOC]");
                return 1;
            }
            if(PlayerInfo[playerid][pMascara] == 1) // probablemente en tu sv la mascara va a ser differente, fijate si es pMask o como sea.
            {
                format(string, sizeof(string), "(( [FJ] Extraсo dice:  %s ))", result);
            }
            else
            {
                format(string, sizeof(string), "(( [FJ] %s dice: %s ))", NombreEx(playerid), result);
            }
            ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            printf("%s", string);
        }
        return 1;
    }
Este tiene algo diferente que casi ni se nota y por lo tanto si funcionara
Reply


Messages In This Thread
Problema con comandos basicos :S - by alexpramer - 04.03.2012, 12:15
Respuesta: Problema con comandos basicos :S - by ValenRatti - 04.03.2012, 12:55
Respuesta: Problema con comandos basicos :S - by alexpramer - 04.03.2012, 14:19
Respuesta: Problema con comandos basicos :S - by Jovanny - 04.03.2012, 22:31
Respuesta: Problema con comandos basicos :S - by El Bardo - 04.03.2012, 23:20
Respuesta: Problema con comandos basicos :S - by alexpramer - 05.03.2012, 11:45

Forum Jump:


Users browsing this thread: 1 Guest(s)