Raised This Month: $ Target: $400
 0% 

new bool: in 1 row


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tcPane
Senior Member
Join Date: Sep 2010
Old 09-09-2012 , 02:51   new bool: in 1 row
Reply With Quote #1

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.
tcPane is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 09-09-2012 , 02:53   Re: new bool: in 1 row
Reply With Quote #2

PHP Code:
new bool:g_bAlive[33], bool:g_bConnected[33]; 
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
tcPane
Senior Member
Join Date: Sep 2010
Old 09-09-2012 , 02:58   Re: new bool: in 1 row
Reply With Quote #3

Ok, but I've seen and this more shortcut way

PHP Code:
new bool:g_bAlive[33],
     :
g_bConnected[33]; 
Is it correct too?
tcPane is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 09-09-2012 , 03:37   Re: new bool: in 1 row
Reply With Quote #4

Quote:
Originally Posted by tcPane View Post
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
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-09-2012 , 04:05   Re: new bool: in 1 row
Reply With Quote #5

Quote:
Originally Posted by tcpane View Post
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!!!!!!!
__________________

Last edited by fysiks; 09-09-2012 at 04:06.
fysiks is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 09-09-2012 , 04:08   Re: new bool: in 1 row
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
test it yourself!!!!!!!
Haha

test it yourself!!!!!!!
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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