Jump to content
Sign in to follow this  
GregRUS

Payers with quotes in nickname breaking some scripts

Recommended Posts

Hello!

I have a problem with some players that have quotes (" or ') in their nicknames.

Some scripts showing errors cause of this quotes and wont exec.

Is there any solution for that?

Share this post


Link to post
Share on other sites

I hope I understand the problem correctly.

Before passing the player name to the script, check it for quotes and replace all " with "". Not sure regarding the single quotes.

Share this post


Link to post
Share on other sites

ban such nicknames from server, problem solved

or try convert the usernames to IDs

or replace the problematic chars via scripting then pass further

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×