Raised This Month: $ Target: $400
 0% 

Check if nVault exists and if not create it?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-08-2006 , 23:17   Check if nVault exists and if not create it?
Reply With Quote #1

How do I do it

Thanks for the help


And a side question:


What is the best way to do something like this?

PHP Code:
if((points[id] > 1) && (points[id] < 10))
      
level[id]=
for like 8 different levels.

Last edited by SweatyBanana; 10-08-2006 at 23:43.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
jopmako
Senior Member
Join Date: Jul 2006
Location: QQ:331537639
Old 10-09-2006 , 01:06   Re: Check if nVault exists and if not create it?
Reply With Quote #2

the sec. i think....???

Quote:
switch (points[id])
{
case 1..10: level[id]=1
case 11..20: level[id]=2
default: //code
}
got some problem with small targe
__________________
QQ31537639

Last edited by jopmako; 10-09-2006 at 01:14.
jopmako is offline
Send a message via MSN to jopmako
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-09-2006 , 01:08   Re: Check if nVault exists and if not create it?
Reply With Quote #3

Umm..

Can you fix ur code?
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 10-09-2006 , 01:59   Re: Check if nVault exists and if not create it?
Reply With Quote #4

http://www.amxmodx.org/funcwiki.php?go=func&id=838

IIRC it will create the nVault file if it not there otherwise it will open it. If it can't do either I think it will return -1.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-09-2006 , 11:08   Re: Check if nVault exists and if not create it?
Reply With Quote #5

What does IIRC mean?
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
stupok
Veteran Member
Join Date: Feb 2006
Old 10-09-2006 , 11:55   Re: Check if nVault exists and if not create it?
Reply With Quote #6

Quote:
Originally Posted by SweatyBanana View Post
What is the best way to do something like this?

PHP Code:
if((points[id] > 1) && (points[id] < 10))
      
level[id]=
for like 8 different levels.
I'd love to help, but I don't get it... maybe this will help? http://forums.alliedmods.net/showthread.php?t=12518
stupok is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 10-09-2006 , 12:51   Re: Check if nVault exists and if not create it?
Reply With Quote #7

IIRC = If I remember correctly
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
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 04:51.


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