AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   lol (https://forums.alliedmods.net/showthread.php?t=163771)

BodyBuilder 08-03-2011 04:26

lol
 
lol

jim_yang 08-03-2011 04:36

Re: How pos x y ? not work for this
 
your channel is 29...
pos x y in short format is different from amxxs'
the formula is:
Code:

WRITE_SHORT(FixedSigned16(textparms.x, (1<<13)));

short FixedSigned16(float value, float scale)
{
        int output = (int)(value * scale);

        if (output > 32767)
                output = 32767;
        else if (output < -32768)
                output = -32768;

        return (short)output;
}



All times are GMT -4. The time now is 03:19.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.