How can I do "string union"?
Hello :)
I have to write a plugin and I need the following. The task is to modify the admin plugin so that the users have rights from IP+ from nick. For example: my ip (a.b.c.d) has access "ade" my nik (Phreak) has acces "abdie" so when I join the server from my ip and with my nick i should have access: "abdei". A have the both access strings and how should I do the union so that it is correct not : "ade" + "abdie" = "adeabdie", but "ade" + "abdie" = "abdei" Thank u ;) |
Re: How can I do "string union"?
read_flags() both of the strings, "or" the values together, then set_user_flags()
|
Re: How can I do "string union"?
Quote:
set_user_flags(id, g_aAccess[index]) set_user_flags(id, g_aAccess[index2]) Where g_aAccess is array with all the rights (nick + IP) and "index" is index of the nick and "index2" is the index of the IP |
Re: How can I do "string union"?
I think this is what he means:
Code:
new flags1 = read_flags("ade") |
Re: How can I do "string union"?
Quote:
10x very much :) |
| All times are GMT -4. The time now is 21:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.