AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Check if nVault exists and if not create it? (https://forums.alliedmods.net/showthread.php?t=45684)

SweatyBanana 10-08-2006 23:17

Check if nVault exists and if not create it?
 
How do I do it :D

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.

jopmako 10-09-2006 01:06

Re: Check if nVault exists and if not create it?
 
the sec. i think....???

Quote:

switch (points[id])
{
case 1..10: level[id]=1
case 11..20: level[id]=2
default: //code
}

:cry: got some problem with small targe

SweatyBanana 10-09-2006 01:08

Re: Check if nVault exists and if not create it?
 
Umm..

Can you fix ur code?

teame06 10-09-2006 01:59

Re: Check if nVault exists and if not create it?
 
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.

SweatyBanana 10-09-2006 11:08

Re: Check if nVault exists and if not create it?
 
What does IIRC mean?

stupok 10-09-2006 11:55

Re: Check if nVault exists and if not create it?
 
Quote:

Originally Posted by SweatyBanana (Post 389083)
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

teame06 10-09-2006 12:51

Re: Check if nVault exists and if not create it?
 
IIRC = If I remember correctly


All times are GMT -4. The time now is 04:51.

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