Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
For example, if someone says '$$$' I want to replace that with '$1234' - their money.
I need this to be easily implemented into any string, so i can use it for OnPlayerText, /pm etc.
Any and all help is much appreciated
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Could you also make it work if they said '$$$ $$$'?
Posts: 1,426
Threads: 56
Joined: Dec 2010
Reputation:
0
Try editing every '$$$' to '$$$ $$$"
Posts: 780
Threads: 58
Joined: Jan 2011
Reputation:
0
Do you mean if player say $$$ it should show his money to all?
I mean sendclientmessagetoall?
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Never mind I think his will work.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
It doesn't work. Can anyone else help please? I want '$$$' to be replaced with $1234 no matter how many times it appears in a string, so if someone says '$$$ $$$ $$$' it will change to '$1234 $1234 $1234'
Thanks
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Is there not a way to use this in OnPlayerText without creating a new 128 string?