AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   new bool: in 1 row (https://forums.alliedmods.net/showthread.php?t=195569)

tcPane 09-09-2012 02:51

new bool: in 1 row
 
Hello,
there is

PHP Code:

new bool:g_bAlive[33]
new 
bool:g_bConnected[33

How can i put in 1 row?
Is this correct way?

PHP Code:

new bool:g_bAlive[33], g_bConnected[33

If no show me correct way.

Alka 09-09-2012 02:53

Re: new bool: in 1 row
 
PHP Code:

new bool:g_bAlive[33], bool:g_bConnected[33]; 


tcPane 09-09-2012 02:58

Re: new bool: in 1 row
 
Ok, but I've seen and this more shortcut way

PHP Code:

new bool:g_bAlive[33],
     :
g_bConnected[33]; 

Is it correct too?

yokomo 09-09-2012 03:37

Re: new bool: in 1 row
 
Quote:

Originally Posted by tcPane (Post 1794932)
Ok, but I've seen and this more shortcut way

PHP Code:

new bool:g_bAlive[33],
     :
g_bConnected[33]; 

Is it correct too?

Try to compile your code and see what compiler say.

This is enough:
PHP Code:

new bool:a[33], bool:b[33


fysiks 09-09-2012 04:05

Re: new bool: in 1 row
 
Quote:

Originally Posted by tcpane (Post 1794932)
ok, but i've seen and this more shortcut way

PHP Code:

new bool:g_balive[33],
     :
g_bconnected[33]; 

is it correct too?

test it yourself!!!!!!!

yokomo 09-09-2012 04:08

Re: new bool: in 1 row
 
Quote:

Originally Posted by fysiks (Post 1794969)
test it yourself!!!!!!!

Haha

test it yourself!!!!!!!


All times are GMT -4. The time now is 08:16.

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