Raised This Month: $ Target: $400
 0% 

Global array


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ShufflexDD
Senior Member
Join Date: Apr 2011
Location: :noitaɔo˩
Old 10-19-2012 , 13:04   Global array
Reply With Quote #1

I have to use this code:
Code:
new String:players[SQL_GetRowCount(query)];
as you can see, I set length of array by count of rows in sql.
This code in OnPluginStart, but I need a global array(I can't set it in global area 'cause I don't know how many rows in sql).
Although I can declare an array in global area with fixed length of array, but it's bad.
So how to figure it out?
__________________

⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈
Check this website and find out how many functions
it has working with game server together.
ShufflexDD is offline
Send a message via ICQ to ShufflexDD Send a message via Skype™ to ShufflexDD
 



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 11:41.


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