Results 1 to 6 of 6

Thread: [CoD2] [MySQL] [libcod] Special characters

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    ATM there is no such function, but you could either add that function yourself or test first with getAscii() of libcod:

    PHP Code:
    getAscii(str) { return closer(902str); } 
    Example from ClientCommand:
    PHP Code:

    fixChatArgs
    (args)
    {
        if (
    isDefined(args[1])) { // engine is adding identifier infront of the chat message
            
    if (std\utils::getAscii(args[1][0]) >= 20 && std\utils::getAscii(args[1][0]) <= 22) {
                
    //std\io::print("delete bad ascii code: " + std\utils::getAscii(args[1][0]) + "\n");
                
    args[1] = getSubStr(args[1], 1);
                
                
    newArgs strTok(args[1], " ");
                for (
    i=0i<newArgs.sizei++)
                    
    args[1+i] = newArgs[i];
            }
        }
        return 
    args;

    Then step over any char, print the ascii-numbers, check whats wrong, search for solution.
    timescale 0.01

  2. The Following User Says Thank You to kung foo man For This Useful Post:

    BlancO (22nd November 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •