[JX] Source code - Hàm Say version 2 - Trang 2
Hello & Welcome to our community. Is this your first visit? Đăng Ký
Follow us on
Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube My Space Blogger
 
Trang 2 của 5 Đầu tiênĐầu tiên 1 2 3 4 ... CuốiCuối
Kết quả 11 đến 20 của 50
  1. #11
    Moderator
    Ngày tham gia
    May 2009
    Đang ở
    Nơi rất xa
    Bài viết
    2,479
    Thanks
    572
    Thanked 1,847 Times in 502 Posts

    Ðề: Source code - Hàm Say version 2.

    mình làm theo bạn hd rồi
    build core ok, nhưng tới khi build s3client thì bị lỗi này


    chả hiểu sao up ảnh toàn hình nhỏ xíu ko à
    bạn chịu khó vô đây coi hình nha [Only registered and activated users can see links. ]

    :\Source JX Full\JX\swrod3\SwordOnline\Sources\S3Client\Ui\UiC ase\UiMsgSelNew.h(21) : error C2061: syntax error : identifier 'KUiNpcSpr'
    E:\Source JX Full\JX\swrod3\SwordOnline\Sources\S3Client\Ui\UiC ase\UiMsgSelNew.cpp(27) : error C2511: 'OpenWindow' : overloaded member function 'class KUiMsgSelNew *(struct KUiQuestionAndAnswer *,struct KUiNpcSpr *)' not found in 'KUiMsgSelNew'
    E:\Source JX Full\JX\swrod3\SwordOnline\Sources\S3Client\Ui\UiC ase\UiMsgSelNew.h(17) : see declaration of 'KUiMsgSelNew'
    Error executing cl.exe.
    Khách viếng thăm hãy cùng jxvietnam xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  2. #12
    Thành Viên thienthanden2's Avatar
    Ngày tham gia
    Jun 2007
    Đang ở
    Thiên đường đã lỡ...
    Bài viết
    217
    Thanks
    14
    Thanked 183 Times in 73 Posts

    Ðề: Source code - Hàm Say version 2.

    Trích dẫn Gửi bởi jxvietnam [Only registered and activated users can see links. ]
    mình làm theo bạn hd rồi
    build core ok, nhưng tới khi build s3client thì bị lỗi này


    chả hiểu sao up ảnh toàn hình nhỏ xíu ko à
    bạn chịu khó vô đây coi hình nha [Only registered and activated users can see links. ]

    :\Source JX Full\JX\swrod3\SwordOnline\Sources\S3Client\Ui\UiC ase\UiMsgSelNew.h(21) : error C2061: syntax error : identifier 'KUiNpcSpr'
    E:\Source JX Full\JX\swrod3\SwordOnline\Sources\S3Client\Ui\UiC ase\UiMsgSelNew.cpp(27) : error C2511: 'OpenWindow' : overloaded member function 'class KUiMsgSelNew *(struct KUiQuestionAndAnswer *,struct KUiNpcSpr *)' not found in 'KUiMsgSelNew'
    E:\Source JX Full\JX\swrod3\SwordOnline\Sources\S3Client\Ui\UiC ase\UiMsgSelNew.h(17) : see declaration of 'KUiMsgSelNew'
    Error executing cl.exe.
    Bạn chưa khai báo struct KUiNpcSpr trong cái file .h đó. Cụ thể là vầy :
    PHP Code:
    #include "../Elem/WndMessageListBox.h"
    #include "../Elem/WndShowAnimate.h"
    #include "../Elem/WndScrollBar.h"
    #include "../Elem/WndText.h"
    #include "../Elem/WndImage.h"
    #include "../Elem/UiImage.h"

    struct KUiQuestionAndAnswer;
    struct KUiNpcSpr//khai báo đây nè
    class KUiMsgSel2 : protected KWndShowAnimate
    {
    public:
        
    //----界面面板统一的接口函数----
        
    static KUiMsgSel2*    OpenWindow(KUiQuestionAndAnswerpContentKUiNpcSprpImage);        //打开窗口,返回唯一的一个类对象实例
        
    static KUiMsgSel2*    GetIfVisible();
        static 
    void            LoadScheme(const charpScheme);    //载入界面方案
        
    static void            CloseWindow(bool bDestroy);        //关闭窗口 
    Khách viếng thăm hãy cùng thienthanden2 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  3. The Following 3 Users Say Thank You to thienthanden2 For This Useful Post:

    jxvietnam (10-02-13), satthupro95 (16-02-13), yukite26 (26-03-13)

  4. #13
    Thành Viên Tâm Huyết danghai1993's Avatar
    Ngày tham gia
    Jun 2012
    Bài viết
    1,096
    Thanks
    210
    Thanked 302 Times in 201 Posts

    Ðề: Source code - Hàm Say version 2.

    Mình xd core tốt ngưng tới s3client thì bị cái này:

    Code:
    UiSoundSetting.cpp
    GameSpaceChangedNotify.cpp
    D:\sourceJX\swrod3\SwordOnline\Sources\S3Client\Ui\GameSpaceChangedNotify.cpp(258) : error C2653: 'KUiMsgSel2' : is not a class or namespace name
    D:\sourceJX\swrod3\SwordOnline\Sources\S3Client\Ui\GameSpaceChangedNotify.cpp(258) : error C2065: 'OpenWindow' : undeclared identifier
    ShortcutKey.cpp
    UiBase.cpp
    UiShell.cpp
    ChatFilter.cpp
    FilterTextLib.cpp
    S3Client.cpp
    NetConnectAgent.cpp
    Login.cpp
    TextCtrlCmd.cpp
    ErrorCode.cpp
    Generating Code...
    Error executing cl.exe.
    
    Game.exe - 2 error(s), 0 warning(s)
    Mong mọi người vào giúp
    Khách viếng thăm hãy cùng danghai1993 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  5. #14
    Bựa Nhân ngaunachay's Avatar
    Ngày tham gia
    May 2012
    Đang ở
    TP.HCM
    Bài viết
    584
    Thanks
    220
    Thanked 162 Times in 73 Posts

    Ðề: Source code - Hàm Say version 2.

    Trích dẫn Gửi bởi danghai1993 [Only registered and activated users can see links. ]
    Mình xd core tốt ngưng tới s3client thì bị cái này:

    Code:
    UiSoundSetting.cpp
    GameSpaceChangedNotify.cpp
    D:\sourceJX\swrod3\SwordOnline\Sources\S3Client\Ui\GameSpaceChangedNotify.cpp(258) : error C2653: 'KUiMsgSel2' : is not a class or namespace name
    D:\sourceJX\swrod3\SwordOnline\Sources\S3Client\Ui\GameSpaceChangedNotify.cpp(258) : error C2065: 'OpenWindow' : undeclared identifier
    ShortcutKey.cpp
    UiBase.cpp
    UiShell.cpp
    ChatFilter.cpp
    FilterTextLib.cpp
    S3Client.cpp
    NetConnectAgent.cpp
    Login.cpp
    TextCtrlCmd.cpp
    ErrorCode.cpp
    Generating Code...
    Error executing cl.exe.
    
    Game.exe - 2 error(s), 0 warning(s)
    Mong mọi người vào giúp
    Úp luôn cho ông, mình làm theo anh topic như cũng bị lỗi vậy ai giúp với!!!
    À cho em hỏi luôn "Đầu tiên thì các bạn cần thiết lập file ini trong thư mục Ui\UI3\ cho phù hợp với source của các bạn."
    Mình đặt file nó tên *.ini vậy
    Lần sửa cuối bởi ngaunachay, ngày 16-05-13 lúc 02:33 PM.
    :I'm Newbie :

  6. #15
    Thành Viên thienthanden2's Avatar
    Ngày tham gia
    Jun 2007
    Đang ở
    Thiên đường đã lỡ...
    Bài viết
    217
    Thanks
    14
    Thanked 183 Times in 73 Posts

    Ðề: Source code - Hàm Say version 2.

    Các bạn chưa #include UiMsgSel2.h vào đầu file GameSpaceChangedNotify.cpp nên bị lỗi undeclared đó mà.
    Còn file ini thì copy của hàm Say cũ và đặt tên gì cũng được hết. Đặt tên gì thì khi load trong source phải đúng cái tên đó (hàm load trong file UiMsgSel2.cpp).
    Khách viếng thăm hãy cùng thienthanden2 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  7. The Following 3 Users Say Thank You to thienthanden2 For This Useful Post:

    danghai1993 (17-05-13), ngaunachay (16-05-13), satthupro95 (16-05-13)

  8. #16
    Bựa Nhân ngaunachay's Avatar
    Ngày tham gia
    May 2012
    Đang ở
    TP.HCM
    Bài viết
    584
    Thanks
    220
    Thanked 162 Times in 73 Posts

    Ðề: Source code - Hàm Say version 2.

    Trích dẫn Gửi bởi thienthanden2 [Only registered and activated users can see links. ]
    Các bạn chưa #include UiMsgSel2.h vào đầu file GameSpaceChangedNotify.cpp nên bị lỗi undeclared đó mà.
    Còn file ini thì copy của hàm Say cũ và đặt tên gì cũng được hết. Đặt tên gì thì khi load trong source phải đúng cái tên đó (hàm load trong file UiMsgSel2.cpp).
    em thêm biến vào sau public: của KPlayer.h nó cứ báo lỗi

    C:\AWJX\SwordOnline\Sources\Core\Src\KPlayer.h(271 ) : error C2086: 'm_nImageNpcID' : redefinition
    C:\AWJX\SwordOnline\Sources\Core\Src\KPlayer.h(530 ) : error C2086: 'm_nImageNpcID' : redefinition
    Và đã #include UiMsgSel2.h vào đầu file GameSpaceChangedNotify.cpp vẫn bị lỗi
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\GameSpaceC hangedNotify.cpp(267) : error C2653: 'KUiMsgSel2' : is not a class or namespace name
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\GameSpaceC hangedNotify.cpp(267) : error C2065: 'OpenWindow' : undeclared identifier
    :I'm Newbie :

  9. #17
    Thành Viên thienthanden2's Avatar
    Ngày tham gia
    Jun 2007
    Đang ở
    Thiên đường đã lỡ...
    Bài viết
    217
    Thanks
    14
    Thanked 183 Times in 73 Posts

    Ðề: Source code - Hàm Say version 2.

    Trích dẫn Gửi bởi ngaunachay [Only registered and activated users can see links. ]
    em thêm biến vào sau public: của KPlayer.h nó cứ báo lỗi

    C:\AWJX\SwordOnline\Sources\Core\Src\KPlayer.h(271 ) : error C2086: 'm_nImageNpcID' : redefinition
    C:\AWJX\SwordOnline\Sources\Core\Src\KPlayer.h(530 ) : error C2086: 'm_nImageNpcID' : redefinition
    Và đã #include UiMsgSel2.h vào đầu file GameSpaceChangedNotify.cpp vẫn bị lỗi
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\GameSpaceC hangedNotify.cpp(267) : error C2653: 'KUiMsgSel2' : is not a class or namespace name
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\GameSpaceC hangedNotify.cpp(267) : error C2065: 'OpenWindow' : undeclared identifier
    cái biến đó hình như là bạn đã khai trùng 2 lần. Còn class KUiMsgSel2 thì coi kỹ lại 2 file UiMsgSel2.h và UiMsgSel2.cpp coi có thay toàn bộ UiMsgSel thành UiMsgSel2 chưa. Và đã add vào trong project của visual hay chưa.
    Khách viếng thăm hãy cùng thienthanden2 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  10. The Following 2 Users Say Thank You to thienthanden2 For This Useful Post:

    danghai1993 (17-05-13), ngaunachay (17-05-13)

  11. #18
    Bựa Nhân ngaunachay's Avatar
    Ngày tham gia
    May 2012
    Đang ở
    TP.HCM
    Bài viết
    584
    Thanks
    220
    Thanked 162 Times in 73 Posts

    Ðề: Source code - Hàm Say version 2.

    Trích dẫn Gửi bởi thienthanden2 [Only registered and activated users can see links. ]
    cái biến đó hình như là bạn đã khai trùng 2 lần. Còn class KUiMsgSel2 thì coi kỹ lại 2 file UiMsgSel2.h và UiMsgSel2.cpp coi có thay toàn bộ UiMsgSel thành UiMsgSel2 chưa. Và đã add vào trong project của visual hay chưa.
    Add 2 file mới tạo vào project thì bị lỗi này nữa
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.cpp(27) : error C2511: 'OpenWindow' : overloaded member function 'class KUiMsgSel2 *(struct KUiQuestionAndAnswer *)' not found in 'KUiMsgSel2'
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.h(17) : see declaration of 'KUiMsgSel2'
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.cpp(50) : error C2039: 'm_NpcSpr' : is not a member of 'KUiMsgSel2'
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.h(17) : see declaration of 'KUiMsgSel2'
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.cpp(50) : error C2228: left of '.SetImage' must have class/struct/union type
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.cpp(52) : error C2039: 'm_NpcSpr' : is not a member of 'KUiMsgSel2'
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.h(17) : see declaration of 'KUiMsgSel2'
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.cpp(52) : error C2228: left of '.GetSize' must have class/struct/union type
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.cpp(53) : error C2039: 'm_NpcSpr' : is not a member of 'KUiMsgSel2'
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.h(17) : see declaration of 'KUiMsgSel2'
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.cpp(53) : error C2228: left of '.SetPosition' must have class/struct/union type
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.cpp(54) : error C2039: 'm_NpcSpr' : is not a member of 'KUiMsgSel2'
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.h(17) : see declaration of 'KUiMsgSel2'
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.cpp(54) : error C2228: left of '.SetMaxFrame' must have class/struct/union type
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.cpp(58) : error C2039: 'm_NpcSpr' : is not a member of 'KUiMsgSel2'
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.h(17) : see declaration of 'KUiMsgSel2'
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.cpp(58) : error C2228: left of '.SetImage' must have class/struct/union type
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.cpp(60) : error C2039: 'm_NpcSpr' : is not a member of 'KUiMsgSel2'
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.h(17) : see declaration of 'KUiMsgSel2'
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.cpp(60) : error C2228: left of '.GetSize' must have class/struct/union type
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.cpp(61) : error C2039: 'm_NpcSpr' : is not a member of 'KUiMsgSel2'
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.h(17) : see declaration of 'KUiMsgSel2'
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.cpp(61) : error C2228: left of '.SetPosition' must have class/struct/union type
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.cpp(62) : error C2039: 'm_NpcSpr' : is not a member of 'KUiMsgSel2'
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.h(17) : see declaration of 'KUiMsgSel2'
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.cpp(62) : error C2228: left of '.SetMaxFrame' must have class/struct/union type
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.cpp(124) : error C2039: 'm_NpcSpr' : is not a member of 'KUiMsgSel2'
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.h(17) : see declaration of 'KUiMsgSel2'
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.cpp(124) : error C2228: left of '.Init' must have class/struct/union type
    C:\AWJX\SwordOnline\Sources\S3Client\Ui\UiCase\UiM sgSel2.cpp(268) : error C2228: left of '.NextFrame' must have class/struct/union type
    Generating Code...
    Error executing cl.exe.

    Game.exe - 20 error(s), 0 warning(s)
    Lần sửa cuối bởi ngaunachay, ngày 17-05-13 lúc 02:32 PM.
    :I'm Newbie :

  12. #19
    Thành Viên Tâm Huyết danghai1993's Avatar
    Ngày tham gia
    Jun 2012
    Bài viết
    1,096
    Thanks
    210
    Thanked 302 Times in 201 Posts

    Ðề: Source code - Hàm Say version 2.

    Sao mình nhấn vào Npc nói chuyện, có tới 2 bảng xuất hiện.

    1 bảng là Say bình thường.

    1 bảng là Say2 mới làm.

    Say2 nằm chồng lên Say
    Khách viếng thăm hãy cùng danghai1993 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  13. #20
    Bựa Nhân ngaunachay's Avatar
    Ngày tham gia
    May 2012
    Đang ở
    TP.HCM
    Bài viết
    584
    Thanks
    220
    Thanked 162 Times in 73 Posts

    Ðề: Source code - Hàm Say version 2.

    Trích dẫn Gửi bởi danghai1993 [Only registered and activated users can see links. ]
    Sao mình nhấn vào Npc nói chuyện, có tới 2 bảng xuất hiện.

    1 bảng là Say bình thường.

    1 bảng là Say2 mới làm.

    Say2 nằm chồng lên Say
    bạn fix được lối kia rồi hả chỉ mình fix với
    :I'm Newbie :

 

 
Trang 2 của 5 Đầu tiênĐầu tiên 1 2 3 4 ... CuốiCuối

Các Chủ đề tương tự

  1. [JX] [Develop/Release] Share Full Source Version VC8/vS2005 (EB-Team)
    Bởi HeavenGames trong diễn đàn Guides - Kho Lưu trữ
    Trả lời: 46
    Bài viết cuối: 18-08-21, 03:31 PM
  2. Có Source code hải tặc 2 chưa
    Bởi kakaknight12 trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 3
    Bài viết cuối: 18-03-13, 06:06 PM
  3. [JX] source code mã khóa nhân vật
    Bởi hero100 trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 2
    Bài viết cuối: 18-02-13, 11:51 AM
  4. [Gunny] [DDTank 3.0] Share Source MySQL Version
    Bởi HeavenGames trong diễn đàn Releases
    Trả lời: 3
    Bài viết cuối: 22-07-12, 09:58 PM
  5. Share code MUCore™ Engine Version 1.0.6
    Bởi vothailam trong diễn đàn SQL Server & Website
    Trả lời: 8
    Bài viết cuối: 17-09-11, 12:05 PM

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •  
Múi giờ GMT +7. Bây giờ là 03:46 AM.
vBulletin®, Copyright ©2000-2011, Jelsoft Enterprises Ltd.
CLBGamesVN không chịu trách nhiệm về Luật Bản Quyền của các tài liệu, bài viết v.v...được đăng tải trên diễn đàn này.
Diễn đàn phát triển dưới sự đóng góp của tất cả thành viên. BQT chỉ là những người thành lập ra sân chơi, quản lý và duy trì về mặt kỹ thuật, nội dung khi hợp lệ.