Raised This Month: $ Target: $400
 0% 

3d Array using map name


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-10-2013 , 19:25   Re: 3d Array using map name
Reply With Quote #1

You can only play one map at a time so there is no real need to store the info for more than just that map. So, having said that, why are you needing to have any info about a different map?
__________________
fysiks is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 08-10-2013 , 23:00   Re: 3d Array using map name
Reply With Quote #2

Quote:
Originally Posted by fysiks View Post
You can only play one map at a time so there is no real need to store the info for more than just that map. So, having said that, why are you needing to have any info about a different map?
Yes, i need to upload to mysql the results of this map when client connect or disconnect from server

__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-11-2013 , 02:21   Re: 3d Array using map name
Reply With Quote #3

Quote:
Originally Posted by ^SmileY View Post
Yes, i need to upload to mysql the results of this map when client connect or disconnect from server

Then you don't need to index anything by the mapname nor do you need to know anything about other maps. When you send your query to the SQL server, you simply also provide the current map name in the query.
__________________
fysiks is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 08-11-2013 , 17:57   Re: 3d Array using map name
Reply With Quote #4

The problem is solved.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-11-2013 , 18:06   Re: 3d Array using map name
Reply With Quote #5

Quote:
Originally Posted by ^SmileY View Post
The problem is solved.
And what was your solution?
__________________
fysiks is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 08-11-2013 , 21:17   Re: 3d Array using map name
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
Then you don't need to index anything by the mapname nor do you need to know anything about other maps. When you send your query to the SQL server, you simply also provide the current map name in the query.

__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Reply



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 15:52.


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