guild members peoblem

04/11/2014 00:51 girgismena#1
hello everybody there !
i have problem with guild members
i cant kick any member have emotions in his name
like that
»Thê|End«¦ or any else name
i change guild encoding to UTF8 and try and i change it again to UTF7
what i have to do ?
or witch encoding i have to use
thanks
04/12/2014 14:03 girgismena#2
any1 have any aide ?
04/12/2014 14:06 InsomniacPro#3
Filter the characters that can be used when creating your character name.
04/12/2014 14:23 abdoumatrix#4
try using default encoding when writingstring in packet

PHP Code:
public static void WriteString(string argint offsetbyte[] buffer)
        {
            if (
buffer == null)
                return;
            if (
offset buffer.Length 1)
                return;
            
byte[] argEncoded Program.Encoding.GetBytes(arg);
            if (
buffer.Length >= offset arg.Length)
                Array.
Copy(argEncoded0bufferoffsetarg.Length);
        } 
and use default instead of utf7
04/12/2014 16:03 girgismena#5
Quote:
Originally Posted by abdoumatrix View Post
try using default encoding when writingstring in packet

PHP Code:
public static void WriteString(string argint offsetbyte[] buffer)
        {
            if (
buffer == null)
                return;
            if (
offset buffer.Length 1)
                return;
            
byte[] argEncoded Program.Encoding.GetBytes(arg);
            if (
buffer.Length >= offset arg.Length)
                Array.
Copy(argEncoded0bufferoffsetarg.Length);
        } 
and use default instead of utf7
1st of all thanks for ur answer
2nd i have to replay that void ?
my void like that
PHP Code:
public static void WriteString(string argint offsetbyte[] buffer)
        {
            if (
buffer == null)
            {
                return;
            }
            if (
offset buffer.Length 1)
            {
                return;
            }
            if (
buffer.Length >= offset arg.Length)
            {
                
unsafe
                
{
#if UNSAFE
                    
fixed (byteBuffer buffer)
                    {
                        
ushort i 0;
                        while (
arg.Length)
                        {
                            *((
byte*)(Buffer offset i)) = (byte)arg[i];
                            
i++;
                        }
                    }
#else
                    
ushort i 0;
                    while (
arg.Length)
                    {
                        
buffer[(ushort)(offset)] = (byte)arg[i];
                        
= (ushort)(1);
                    }
#endif
                
}
            }
        } 
i have to replace it b4 i try with with default encoding ?
04/14/2014 16:59 turk55#6
Quote:
Originally Posted by girgismena View Post
1st of all thanks for ur answer
2nd i have to replay that void ?
my void like that
PHP Code:
public static void WriteString(string argint offsetbyte[] buffer)
        {
            if (
buffer == null)
            {
                return;
            }
            if (
offset buffer.Length 1)
            {
                return;
            }
            if (
buffer.Length >= offset arg.Length)
            {
                
unsafe
                
{
#if UNSAFE
                    
fixed (byteBuffer buffer)
                    {
                        
ushort i 0;
                        while (
arg.Length)
                        {
                            *((
byte*)(Buffer offset i)) = (byte)arg[i];
                            
i++;
                        }
                    }
#else
                    
ushort i 0;
                    while (
arg.Length)
                    {
                        
buffer[(ushort)(offset)] = (byte)arg[i];
                        
= (ushort)(1);
                    }
#endif
                
}
            }
        } 
i have to replace it b4 i try with with default encoding ?

[Only registered and activated users can see links. Click Here To Register...]
04/14/2014 22:52 girgismena#7
Quote:
Originally Posted by turk55 View Post
[Only registered and activated users can see links. Click Here To Register...]
what that shit mean ?
abdou help ppl all the time
and ppl like u come to our post to make jokes
that really stupid
04/14/2014 23:18 abdoumatrix#8
Quote:
Originally Posted by girgismena View Post
what that shit mean ?
abdou help ppl all the time
and ppl like u come to our post to make jokes
that really stupid

i think he mean the codes not u :D
04/15/2014 13:51 girgismena#9
Quote:
Originally Posted by abdoumatrix View Post
i think he mean the codes not u :D
so he can say that not just post pic
thanks Mr. Abdou