View Single Post
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 10-23-2009 , 19:27   Re: Basic Player Tracker
Reply With Quote #9

I personally don't track player name, but I have ran into this bug before. I fixed this in L4D stats by simply stripping out quote marks. Here is the code you would need to use, feel free to add this to yours:

Code:
    new String:Name[MAX_LINE_WIDTH];
    GetClientName(client, Name, sizeof(Name));
    ReplaceString(Name, sizeof(Name), "\\", "");
    ReplaceString(Name, sizeof(Name), "\"", "");
    ReplaceString(Name, sizeof(Name), "'", "");
    ReplaceString(Name, sizeof(Name), ";", "");
    ReplaceString(Name, sizeof(Name), "´", "");
    ReplaceString(Name, sizeof(Name), "`", "");
You also might want to strip out the PHP open and close tags if you are using some sort of script to look at the player list.
__________________

Last edited by msleeper; 10-23-2009 at 19:31.
msleeper is offline