Raised This Month: $ Target: $400
 0% 

Save bool with map changing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zeus
Senior Member
Join Date: Jul 2008
Old 07-31-2011 , 16:56   Re: Save bool with map changing
Reply With Quote #1

file,nvault,sql
zeus is offline
eXtrem
Member
Join Date: Jul 2011
Old 07-31-2011 , 16:58   Re: Save bool with map changing
Reply With Quote #2

Ok thanks
eXtrem is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-31-2011 , 17:11   Re: Save bool with map changing
Reply With Quote #3

local info will work too. [s|g]et_localinfo().
__________________
fysiks is offline
eXtrem
Member
Join Date: Jul 2011
Old 07-31-2011 , 17:18   Re: Save bool with map changing
Reply With Quote #4

Thanks

EDIT : How can I do if I have this :

Code:
#define WEAPONS CSW_P90 new bool:bWeapon[ WEAPONS ] function( ) {      .....      new weaponid = get_weaponid( szWeapon )      // my bool : bWeapon[ weaponid ] }

Last edited by eXtrem; 07-31-2011 at 17:30.
eXtrem is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-31-2011 , 17:52   Re: Save bool with map changing
Reply With Quote #5

What exacly do you need to check after mapchange ?
Because if you want an array, either you use a bitsum to store the weapon IDs or make 29 different localinfos, each having it's weapon ... which isn't verry pretty... so, answer the above question.
__________________
Hunter-Digital is offline
eXtrem
Member
Join Date: Jul 2011
Old 07-31-2011 , 19:15   Re: Save bool with map changing
Reply With Quote #6

I want to save my boolean with each array. (bool[ 1 ] = true; bool[ 2 ] = false; bool[ 3 ] = false etc...)

I have a command which modify this boolean and I would like to load it at each changemap.

Last edited by eXtrem; 07-31-2011 at 19:20.
eXtrem is offline
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 03:22.


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