![]() |
Access list
I need some help with an npc that lets me set who can have access to a room. like i cna do add "aesquivel" and it will let the account aesquievl in if you can help me im me on aim : Hax0r8669
thanx |
Re: Access list
Quote:
|
Re: Re: Access list
Quote:
NPC Code: okay im stuck now... help plz?? |
thanks to the new string arrays. tokinization is not neccisary.. just do
if(lindex(#a,list) != -1) -1 being the value it returns if your account isn't in the array. |
how do i add ppl to the list??
|
setstring this.stringname,account1,account2,account3,ect;
the list is the string name, in this case this.stringname |
if your list is "this.stringname" then you would substitute "list" with "this.stringname"
be careful when using string array. lists don't need #s() but strings do. :) |
okay now im kinda even more confused well sorta
NPC Code: coudl some one help me out with what i have so far? |
its not lindex, its lindexof( str, list)...
;) |
Could some one fix this plz
NPC Code: |
Quote:
1. NPC Code: and list is your list? I think not. You need to specify your list as this.stringname please don't take things THIS literally. Copy-paste doesn't work when we are just explaining the commands, not giving you a script. Our examples are suppliments to the informations in commands.rtf. Please get scripting background before asking advanced questions. 2. NPC Code: Hate to break it to you but "??" will never start with "Add", not even if you think happy thoughts and get pixie dust. 3. NPC Code: again, copy paste isn't what we want you to do. Figure out the commands. we are litterally saying setstring THE_STRING_NAME_YOU_WANT_PLEASE_PUT_HERE,ACCOUNT #1,ETC. you must interperate that as "Oh. maybe i should substitute this literal things with acual code... so setstring this.accounts,aesquivel,Falcor,Stefan,Man_from_mar s; or whatever the accounts you want to be in the string. |
i know that i was jus puting it there so that i could figure out the problem that i had... and the ?? was for i have no freakin clue what goes next!
|
| All times are GMT +2. The time now is 12:38 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.