AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [solved thx](1<<1) numbers how to set em? (https://forums.alliedmods.net/showthread.php?t=117020)

Owyn 01-28-2010 11:53

[solved thx](1<<1) numbers how to set em?
 
i tried
PHP Code:

new msg[64],num,finalnum;
num 1;
formatexmsg63"(1<<%d)"num);
finalnum str_to_num(msg); 

but it doesn't work =\

YamiKaitou 01-28-2010 11:54

Re: (1<<1) numbers how to set em?
 
Tried this yet?
PHP Code:

finalnum = (1<<num


Owyn 01-28-2010 11:57

Re: (1<<1) numbers how to set em?
 
thx ^^

Bugsy 01-28-2010 12:06

Re: (1<<1) numbers how to set em?
 
for your example
PHP Code:

new msg[64],num,finalnum;
num 1;
formatexmsg63"%d" , ( << num ) );
finalnum str_to_num(msg); 



All times are GMT -4. The time now is 07:18.

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