منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   مشكلات السيرفيرات كونكر الشخصيه (https://code.vpscairo.com/forumdisplay.php?f=12)
-   -   اول مشاكل سورس M.H.B بتاع X-Coder (https://code.vpscairo.com/showthread.php?t=1215)

Rider 2019-07-31 12:04 AM

رد: اول مشاكل سورس M.H.B بتاع X-Coder
 
هههههه طب ايه حدد مشكله واحده عشان تتحل

MeGoo 2019-07-31 09:05 AM

رد: اول مشاكل سورس M.H.B بتاع X-Coder
 
اقتباس:

المشاركة الأصلية كتبت بواسطة rider (المشاركة 8668)
هههههه طب ايه حدد مشكله واحده عشان تتحل

انا بعرض المشاكل الى موجودى

و جاى العمل على حل المشاكل
و يارت حد يعمل موضوع و يثبته لحل مشاكل السورس دا
على فكرة دا سورس جميل اوى و فى مميزات حلوة
دي وجه نظرى

Rider 2019-07-31 09:24 AM

رد: اول مشاكل سورس M.H.B بتاع X-Coder
 
اقتباس:

المشاركة الأصلية كتبت بواسطة megoo (المشاركة 8765)
انا بعرض المشاكل الى موجودى

و جاى العمل على حل المشاكل
و يارت حد يعمل موضوع و يثبته لحل مشاكل السورس دا
على فكرة دا سورس جميل اوى و فى مميزات حلوة
دي وجه نظرى

تمام يا غالي ايرور قنصل جي من جيانج حاول تغيره

Rider 2019-07-31 09:26 AM

رد: اول مشاكل سورس M.H.B بتاع X-Coder
 
جرب الاول تغير ملف read الي جايبلك ايرور ده ب ده
كود PHP:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace 
KhaledMohamed.Database
{
    public class 
Read IDisposable
    
{

        private 
string location "";
        private 
StreamReader SR;
        public 
int Count 0;

        private 
string[] items;
        private 
Int32 curent_count = -1;

        public 
Read(string file)
        {
            
location file;
        }
        public 
void Dispose()
        {
            
location string.Empty;
            
SR null;
            
items null;
            
Count 0;

        }
        public 
string[] OutBase() { return items; }
        public 
uint aCount;
        public 
bool UseRead()
        {
            
aCount++;
            return 
items.Length >= aCount;
        }
        public 
bool Reader(bool useinvalid true)
        {
            
string[] data null;
                      
            if (
File.Exists(location))
            {
                try
                {
                    
using (SR File.OpenText(location))
                    {
                        
Count int.Parse(SR.ReadLine().Split('=')[1]);
                        
data = new string[Count];
                        for (
int x 0Countx++)
                        {
                            
data[x] = SR.ReadLine();
                        }
                        if (
Count == 0)
                            return 
false;                       
                    }
                }
                catch (
Exception e)
                {
                    
Console.WriteLine(e.ToString());
                    return 
false;   
                }
            }
            else if (
useinvalid)
            {                
                
data null;
                
Console.WriteLine("Invalid Reader " location " location");
                return 
false;   
            }

            
items = new string[Count];
            for (
int x 0Countx++)
            {
                
items[x] = data[x];
            }
            return 
true;
        }
        public 
UInt32 ReadUInt32(UInt32 add_def)
        {
            
curent_count += 1;
            if (
curent_count Count)
            {
                if (
items[curent_count] == null)
                    return 
add_def;
                else
                    return 
UInt32.Parse(items[curent_count]);
            }
            else
                return 
add_def;
        }
        public 
UInt16 ReadUInt16(UInt16 add_def)
        {
            
curent_count += 1;
            if (
curent_count Count)
            {
                if (
items[curent_count] == null)
                    return 
add_def;
                else
                    return 
UInt16.Parse(items[curent_count]);
            }
            else
                return 
add_def;
        }
        public 
UInt64 ReadUInt64(UInt64 add_def)
        {
            
curent_count += 1;
            if (
curent_count Count)
            {
                if (
items[curent_count] == null)
                    return 
add_def;
                else
                    return 
UInt64.Parse(items[curent_count]);
            }
            else
                return 
add_def;
        }
        public 
Byte ReadByte(Byte add_def)
        {
            
curent_count += 1;
            if (
curent_count Count)
            {
                if (
items[curent_count] == null)
                    return 
add_def;
                else
                    return 
Byte.Parse(items[curent_count]);
            }
            else
                return 
add_def;
        }
        public 
String ReadString(String add_def)
        {
            
curent_count += 1;
            if (
curent_count Count)
            {
                if (
items[curent_count] == null)
                    return 
add_def;
                else
                    return 
items[curent_count];
            }
            else
                return 
add_def;
        }

    }


متنساش تغير اسم البروجيكت

MeGoo 2019-07-31 04:40 PM

رد: اول مشاكل سورس M.H.B بتاع X-Coder
 
اقتباس:

المشاركة الأصلية كتبت بواسطة rider (المشاركة 8777)
جرب الاول تغير ملف read الي جايبلك ايرور ده ب ده
كود PHP:

using system;
using system.collections.generic;
using system.linq;
using system.text;
using system.io;

namespace 
khaledmohamed.database
{
    public class 
read Idisposable
    
{

        private 
string location "";
        private 
streamreader sr;
        public 
int count 0;

        private 
string[] items;
        private 
int32 curent_count = -1;

        public 
read(string file)
        {
            
location file;
        }
        public 
void dispose()
        {
            
location string.empty;
            
sr null;
            
items null;
            
count 0;

        }
        public 
string[] outbase() { return items; }
        public 
uint acount;
        public 
bool useread()
        {
            
acount++;
            return 
items.length >= acount;
        }
        public 
bool reader(bool useinvalid true)
        {
            
string[] data null;
                      
            if (
file.exists(location))
            {
                try
                {
                    
using (sr file.opentext(location))
                    {
                        
count int.parse(sr.readline().split('=')[1]);
                        
data = new string[count];
                        for (
int x 0countx++)
                        {
                            
data[x] = sr.readline();
                        }
                        if (
count == 0)
                            return 
false;                       
                    }
                }
                catch (
exception e)
                {
                    
console.writeline(e.tostring());
                    return 
false;   
                }
            }
            else if (
useinvalid)
            {                
                
data null;
                
console.writeline("invalid reader " location " location");
                return 
false;   
            }

            
items = new string[count];
            for (
int x 0countx++)
            {
                
items[x] = data[x];
            }
            return 
true;
        }
        public 
uint32 readuint32(uint32 add_def)
        {
            
curent_count += 1;
            if (
curent_count count)
            {
                if (
items[curent_count] == null)
                    return 
add_def;
                else
                    return 
uint32.parse(items[curent_count]);
            }
            else
                return 
add_def;
        }
        public 
uint16 readuint16(uint16 add_def)
        {
            
curent_count += 1;
            if (
curent_count count)
            {
                if (
items[curent_count] == null)
                    return 
add_def;
                else
                    return 
uint16.parse(items[curent_count]);
            }
            else
                return 
add_def;
        }
        public 
uint64 readuint64(uint64 add_def)
        {
            
curent_count += 1;
            if (
curent_count count)
            {
                if (
items[curent_count] == null)
                    return 
add_def;
                else
                    return 
uint64.parse(items[curent_count]);
            }
            else
                return 
add_def;
        }
        public 
byte readbyte(byte add_def)
        {
            
curent_count += 1;
            if (
curent_count count)
            {
                if (
items[curent_count] == null)
                    return 
add_def;
                else
                    return 
byte.parse(items[curent_count]);
            }
            else
                return 
add_def;
        }
        public 
string readstring(string add_def)
        {
            
curent_count += 1;
            if (
curent_count count)
            {
                if (
items[curent_count] == null)
                    return 
add_def;
                else
                    return 
items[curent_count];
            }
            else
                return 
add_def;
        }

    }


متنساش تغير اسم البروجيكت

هو الى انا وصلتله ان السورس علية حماية
انا عاوز اعرف الحماية دي بتقف منين عشان هشغلها بس لمه احط السورس على الفي بي اس
يعنى عاوز اشيل الحماية من السورس لمه اكون شغال على الجهاز الخاص
تعرف حماية السورس دا منين

Rider 2019-08-01 12:10 AM

رد: اول مشاكل سورس M.H.B بتاع X-Coder
 
اقتباس:

المشاركة الأصلية كتبت بواسطة MeGoo (المشاركة 8869)
هو الى انا وصلتله ان السورس علية حماية
انا عاوز اعرف الحماية دي بتقف منين عشان هشغلها بس لمه احط السورس على الفي بي اس
يعنى عاوز اشيل الحماية من السورس لمه اكون شغال على الجهاز الخاص
تعرف حماية السورس دا منين

للاسف معرفش السورس بس لو حمايه من لودر هتلاقيها في program

MeGoo 2019-08-01 08:26 PM

رد: اول مشاكل سورس M.H.B بتاع X-Coder
 
يرجا الغلق


الساعة الآن 04:52 PM

مرحبا بكم في منتدي اكواد لتطوير الالعاب