[HELP] NAME SURNAME without _
#8

pawn Код:
if(strcmp(cmd, "/do", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(gPlayerLogged[playerid] == 0)
            {
                SendClientMessage(playerid, COLOR_GREY, "   You havent logged in yet !");
                return 1;
            }
            GetPlayerName(playerid, sendername, sizeof(sendername));
            new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[64];
            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, "USAGE: /do [action]");
                return 1;
            }
            if(PlayerInfo[playerid][pMaskuse] == 1)
            {
                format(string, sizeof(string), "* %s (( Stranger ))", result);
            }
            else
            {
                format(string, sizeof(string), "* %s (( %s ))", result, sendername);
            }
            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            printf("%s", string);
        }
        return 1;
    }
Reply


Messages In This Thread
[HELP] NAME SURNAME without _ - by KaioBourne - 06.05.2012, 21:07
Re: [AJUDA] NOME SOBRENOME sem o _ - by Catalyst- - 06.05.2012, 21:17
Re: [AJUDA] NOME SOBRENOME sem o _ - by SuperViper - 06.05.2012, 22:47
Re: [HELP] NAME SURNAME without _ - by KaioBourne - 06.05.2012, 23:23
Re: [HELP] NAME SURNAME without _ - by blewert - 06.05.2012, 23:33
Re: [HELP] NAME SURNAME without _ - by KaioBourne - 06.05.2012, 23:50
Re: [HELP] NAME SURNAME without _ - by JaTochNietDan - 06.05.2012, 23:53
Re: [HELP] NAME SURNAME without _ - by KaioBourne - 07.05.2012, 00:07
Re: [AJUDA] NOME SOBRENOME sem o _ - by Kudoz - 07.05.2012, 06:25
Re: [HELP] NAME SURNAME without _ - by iggy1 - 07.05.2012, 08:01

Forum Jump:


Users browsing this thread: 1 Guest(s)