Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   hasright() usage (https://forums.graalonline.com/forums/showthread.php?t=63831)

Yen 01-31-2006 06:56 PM

hasright() usage
 
How exactly is hasright() used?
I've been playing around with it, and the only way I got it to return true was hasright("rw",folder);
However, it always returns true, even if I give it an imaginary folder. I don't have */*, */*/*, and so on.

ApothiX 02-02-2006 03:50 PM

Quote:

Originally Posted by Yen
How exactly is hasright() used?
I've been playing around with it, and the only way I got it to return true was hasright("rw",folder);
However, it always returns true, even if I give it an imaginary folder. I don't have */*, */*/*, and so on.

Are you attempting to use it clientside, or serverside?

Yen 02-02-2006 08:07 PM

Serverside

ApothiX 02-03-2006 12:39 AM

Are you escaping the / in */* ?

Rick 02-03-2006 01:01 AM

Why would you need to escape /?

Yen 02-03-2006 01:10 AM

O-o No I'm not.
Maybe I should try player.hasright() :/

ApothiX 02-03-2006 09:24 PM

Quote:

Originally Posted by Rick
Why would you need to escape /?

Not sure about in the new engine, but the old engine always interpreted /* as the start of a comment block when I tried hasright(rw, */*);

Rick 02-03-2006 10:16 PM

...

why are you leaving your strings naked?!

PHP Code:

hasright("rw""*/*"); 

!!!!

ApothiX 02-05-2006 11:10 AM

Quote:

Originally Posted by Rick
...

why are you leaving your strings naked?!

PHP Code:

hasright("rw""*/*"); 

!!!!

Quote:

Originally Posted by ApothiX
Not sure about in the new engine, but the old engine always interpreted /* as the start of a comment block when I tried hasright(rw, */*);

>:P


All times are GMT +2. The time now is 12:20 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.