Hey all, need some maths help
#1

I made this script it removes the ATTRACTORS string and the underscore "_" so i can have the anim name from a extern file, and it works the output is "STEPSIT_IN".

pawn Код:
for(new i; i < 32; i++) // form the anim name
    {
        new formatname[64];
        format(formatname, sizeof(formatname),"ATTRACTORS_STEPSIT_IN");
        if( formatname[i] == '_')
        {
            new animname[32];
            formatname[i] = ' ';
            format(animname, sizeof(animname),"%s", formatname[i]);
            printf("formatname = %s", formatname);
            printf("anim name %s",animname);
            break;
        }
    }



Now i need to make This one Give me only the ATTRACTORS word into libname variable here goes the code too
pawn Код:
for(new i; i < 32; i++)
    {
        new formatname[64];
        format(formatname, sizeof(formatname),"ATTRACTORS_STEPSIT_IN");
        if(formatname[i] == '_')
        {
            // new libname[32];
            break;
        }
    }
Reply


Messages In This Thread
Hey all, need some maths help - by StuffBoy - 01.11.2011, 16:38
Re: Hey all, need some maths help - by Vince - 01.11.2011, 16:58
Re: Hey all, need some maths help - by StuffBoy - 01.11.2011, 17:00

Forum Jump:


Users browsing this thread: 1 Guest(s)