PDA

View Full Version : hasright() usage


Yen
01-31-2006, 06:56 PM
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
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
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?!

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

ApothiX
02-05-2006, 11:10 AM
...

why are you leaving your strings naked?!

hasright("rw", "*/*");!!!!
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