Skocz do zawartości

swety

Użytkownicy
  • Postów

    27
  • Dołączył

  • Ostatnia wizyta

Odpowiedzi opublikowane przez swety

  1. Hi, I would do UDP engine, but I do not know how to do forward(resend) the conected clients ... otherwise I would like to ask the only way to get IP and port is LastinPORT and lastinIP?

     

    You do not have someone an idea? =D

    Heelp me :D

     

    If you have any ideas, please write here in English or Poland .. thank Swety

  2. 39dll in C#

    Swety


    Hello,
    Today, I decided that publicize import 39dll to C #.
    Many, I thought of publication, but eventually I said
    that to will let for themselves and a few individuals: D.
    After a few days, I realized that not 39ester would never
    do not go GM engine for online / multiplayer games.


    Dll(39dll) you have to put in YourtProject / Bin / Release
    YourtProject / Bin / Debug

    Special thanks to all you participated in the Tested al
    my different applications connections with 39dll.dll….
    39dllcsharpswety.jpg

    Example "Console APP"

    using System;
    using System.Collections.Generic;
    using System.Runtime.InteropServices;
    using System.Linq;
    using System.Text;
    
    namespace ConsoleApplication1
    {
        class Program
        {
            static void Main()
            {
                dll.dllInit();
                dll.tcplisten(2008, 300, 1);
                Console.ReadLine();
            
            }
        }
        class dll
        {
          
        /* this is imoprt class */
        /* copy code from TXT or RTF file;) */
        }
    }



    Downloads

    DOWNLOAD (.RTF)
    DOWNLOAD (.TXT)
    39dllV2.5

    official post in czech laguage => http://forum.velkejchytrak.cz/viewtopic.php?f=22&t=14119

  3. First of all, you dont have to use "with" clause.

    You can just type soldier.name.

     

    Besides, you didnt defined soldiers variables.

    in constructor you have to put:

     

    self.id = id

    self.name = name

     

    and delete that inherited Create - it's default

     

    Hey!!!!!! It is functionality !! wellll :D Yeah :DDDDD :D

    Thenk you ! BeWuO ! BeWuO ! BeWuO ! :DDDDDDDDD :thumbsup: ;)

  4.  it's no go it :( :(
    
    program Project2;
    
    {$APPTYPE CONSOLE}
    uses
      SysUtils,
      Unit1 in 'Unit1.pas';
    
    begin
    { TODO -oUser -cConsole Main : Insert code here }
    {Ukaz();
    ob:=tob.Create;
    ob.ShowTextNow;
    ob.Free;      }
    /////////////////////////////////////////////////////////
    solider:=tsolider.Create(5,'Jirka');
    
    
    with(solider) do
    begin
    if (solider.name = 'Jirka') then
    begin
        readln;
        writeLn('Hey!');
        writeLn('You!');
        writeLn('Super!!!!!');
        readln;
    end;
    
    end;
    //////////////////////////////////////////////////////
    
    
    end.

     

    unit Unit1;
    
    interface
    
    procedure Ukaz();
    
    type
    TOb = class
    class procedure ShowTextNow();
    end;
    ///////////////////////////////////////////////////////////////
    Tsolider = class
    constructor Create (id:Integer;name:String);
    public
    id:integer;
    name:String;
    end; 
    ///////////////////////////////////////////////////////////////
    var
    tname:string;
    ob:TOb;
    solider:Tsolider;
    
    
    implementation
    
    ///////////////////////////////////////////////////////////////
    constructor Tsolider.Create(id:Integer;name:string);
    begin
    inherited Create;
    WriteLn('Tento objekt ma id: ',id,' a nazev: ',name);
    readln;
    end;
    ///////////////////////////////////////////////////////////////
    
    procedure Ukaz();
    begin
    Writeln('Muhehhe Ja jsem normalni metoda xD');
    end;
    
    class procedure TOb.ShowTextNow();
    begin
    WriteLn('Muhehehehhe  Ja jsem metoda OBJEKTU');
    ReadLn;
    end;
    
    end.

     

    H.e.l.p.me :DD

  5. You just write new class. For example TSoldier and then you have array of TSoldiers and then, when you want to create new instance od that class just type:

     

    Variable = new TSoldier;

     

    When you wan to recognize them by id, you must create new field "id" and new constructor which takes one argument (id) and set self.id = argument.

     

    Then you have many Soldiers with different ids, but you can also use array index as soldier's id.

     

    I will try ;) thank you for Help me :P :D :D :D :D :D

  6. I want create identical object

    Source one OBJECT Tsolider

    And form out of him create

    Solider1

    Sloder2

    Solider3

    Solider(i)

     

    or

     

    All object will be name Solider

    work in

    With(Solider.id=1..3)

    begin

     

    end;

     

    Help me ! Help me ! please ... i am novice :DDD

    Ranmus You are crazy xD C++ and C# is hardcore for me .D

    grafcf1.jpg

  7. How create (OOP) object ?

     

    solider1

    solider2

    solider3

    solider4

    solider(i)

    ...

    ...

    type

     

    TSolider = class

    end;

     

    var

    solider:TSolider;

     

    implementation

     

    ....

     

    My ask "How create too many solider with ID be in name or in the object" ? I want work on Solider and be all the solider ....

  8. W takim razie po polsku: Skoro nie używasz Direct Draw i nie wykorzystujesz do tego grafiki, nie potrzeba mocnej karty graficznej. Nie potrzeba też mocnego procesora i można napisać aplikację wielowątkowo - czego Game Maker nie potrafi. Rozmiar pliku jest mniejszy, nie ma niepotrzebnych funkcji, piszesz tylko to co Ci potrzebne, program działa szybciej nie wiesza się i wystarczy, że będzie aplikacją konsolową (chyba). Jedyna przeszkoda to to czy umiesz pisać w C++ czy Delphi programy czy nie.

     

    A największą różnicę poczujesz w stabilności.

     

    Já dumać ze wytworzyć server in Delphi xD a potem C++ ;)

×
×
  • Dodaj nową pozycję...