27.03.2015, 00:42
In a script, there is a string that holds ids. For example, it may look like this: |4|32|64|35|
If a player's database id is located in that string, they will have access to a certain feature. But what I can't quite think of, is what to do if I want to remove, say id 32 from that string. I couldn't use strdel, because there is no way (That I know of) to see where |32| starts and ends in the string. What i'm looking for, is something like strfind, to delete what it finds.
If a player's database id is located in that string, they will have access to a certain feature. But what I can't quite think of, is what to do if I want to remove, say id 32 from that string. I couldn't use strdel, because there is no way (That I know of) to see where |32| starts and ends in the string. What i'm looking for, is something like strfind, to delete what it finds.