[C#][SA-MP Config Generator]My first program

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Account Upgraded | Title Enabled! 3XC3NTR!K is offline
    MemberRank
    Feb 2009 Join Date
    255.255.255.0Location
    258Posts

    [C#][SA-MP Config Generator]My first program

    Here's my first program. What do you ppl think about it?

    PROGRAMM LOCATED HERE
    Attached Files Attached Files


  2. #2
    The Omega Superfun is offline
    MemberRank
    Dec 2006 Join Date
    The NetherlandsLocation
    5,227Posts

    Re: [C#][SA-MP Config Generator]My first program

    Quote Originally Posted by Virus scan
    File SA-MP_Config_Generator_v0.1beta.e received on 03.30.2009 16:53:20 (CET)
    Antivirus Version Last Update Result
    a-squared 4.0.0.101 2009.03.30 -
    AhnLab-V3 5.0.0.2 2009.03.30 -
    AntiVir 7.9.0.129 2009.03.30 -
    Antiy-AVL 2.0.3.1 2009.03.30 -
    Authentium 5.1.2.4 2009.03.29 -
    Avast 4.8.1335.0 2009.03.30 -
    AVG 8.5.0.285 2009.03.30 -
    BitDefender 7.2 2009.03.30 -
    CAT-QuickHeal 10.00 2009.03.30 -
    ClamAV 0.94.1 2009.03.29 -
    Comodo 1090 2009.03.30 -
    DrWeb 4.44.0.09170 2009.03.30 -
    eSafe 7.0.17.0 2009.03.27 -
    eTrust-Vet 31.6.6424 2009.03.30 -
    F-Prot 4.4.4.56 2009.03.29 -
    F-Secure 8.0.14470.0 2009.03.30 -
    Fortinet 3.117.0.0 2009.03.30 -
    GData 19 2009.03.30 -
    Ikarus T3.1.1.49.0 2009.03.30 -
    K7AntiVirus 7.10.684 2009.03.28 -
    Kaspersky 7.0.0.125 2009.03.30 -
    McAfee 5568 2009.03.29 -
    McAfee+Artemis 5568 2009.03.29 -
    McAfee-GW-Edition 6.7.6 2009.03.30 -
    Microsoft 1.4502 2009.03.30 -
    NOD32 3974 2009.03.30 -
    Norman 6.00.06 2009.03.30 -
    nProtect 2009.1.8.0 2009.03.30 -
    Panda 10.0.0.10 2009.03.30 -
    PCTools 4.4.2.0 2009.03.30 -
    Prevx1 V2 2009.03.30 -
    Rising 21.23.03.00 2009.03.30 -
    Sophos 4.40.0 2009.03.30 -
    Sunbelt 3.2.1858.2 2009.03.29 -
    Symantec 1.4.4.12 2009.03.30 -
    TheHacker 6.3.3.9.296 2009.03.30 -
    TrendMicro 8.700.0.1004 2009.03.30 -
    VBA32 3.12.10.1 2009.03.29 -
    ViRobot 2009.3.30.1668 2009.03.30 -
    VirusBuster 4.6.5.0 2009.03.30 -

    Result 0/40
    bit unneeded though since it are such easy lines to edit in notepad
    well done

  3. #3
    Account Upgraded | Title Enabled! 3XC3NTR!K is offline
    MemberRank
    Feb 2009 Join Date
    255.255.255.0Location
    258Posts

    Re: [C#][SA-MP Config Generator]My first program

    I made it just for fun and study. First program tho.

  4. #4
    WowIwasSuperCringeB4 XZeenon is offline
    MemberRank
    Jun 2008 Join Date
    CanadaLocation
    1,405Posts

    Re: [C#][SA-MP Config Generator]My first program

    SA MP = San Andreas MultiPlayer? Or what? Sorry I really don't know what it means.

  5. #5
    Account Upgraded | Title Enabled! 3XC3NTR!K is offline
    MemberRank
    Feb 2009 Join Date
    255.255.255.0Location
    258Posts

    Re: [C#][SA-MP Config Generator]My first program

    Yes. SanAndreas-MultiPlayer

  6. #6
    Ragezone OG FrostElite is offline
    MemberRank
    Sep 2008 Join Date
    United StatesLocation
    1,881Posts

    Re: [C#][SA-MP Config Generator]My first program

    Looks good for a beginner program =]

  7. #7
    Venture Adventure Tyler is offline
    LegendRank
    Nov 2008 Join Date
    United KingdomLocation
    4,443Posts

    Re: [C#][SA-MP Config Generator]My first program

    More information for those who don't wanna download please?

  8. #8
    WowIwasSuperCringeB4 XZeenon is offline
    MemberRank
    Jun 2008 Join Date
    CanadaLocation
    1,405Posts

    Re: [C#][SA-MP Config Generator]My first program

    Quote Originally Posted by iTyler View Post
    More information for those who don't wanna download please?
    Generates a Server configuration file for SanAndreas - multiplayer

  9. #9
    Go Do 1... Mate !! Extreme, is offline
    MemberRank
    Oct 2007 Join Date
    United KingdomLocation
    1,404Posts

    Re: [C#][SA-MP Config Generator]My first program

    Im gonna try it, by the way no virus in this program

    scanned with kaspersky - CLEAN

  10. #10
    Venture Adventure Tyler is offline
    LegendRank
    Nov 2008 Join Date
    United KingdomLocation
    4,443Posts

    Re: [C#][SA-MP Config Generator]My first program

    Quote Originally Posted by XZeenon View Post
    Generates a Server configuration file for SanAndreas - multiplayer
    Ok,thanks.
    I don't know much about SA:MP, but whats the server configuration file for?

  11. #11
    WowIwasSuperCringeB4 XZeenon is offline
    MemberRank
    Jun 2008 Join Date
    CanadaLocation
    1,405Posts

    Re: [C#][SA-MP Config Generator]My first program

    Quote Originally Posted by iTyler View Post
    Ok,thanks.
    I don't know much about SA:MP, but whats the server configuration file for?
    For the hoster server files, it tells the server the details of configuration.

  12. #12
    Account Upgraded | Title Enabled! 3XC3NTR!K is offline
    MemberRank
    Feb 2009 Join Date
    255.255.255.0Location
    258Posts

    Re: [C#][SA-MP Config Generator]My first program

    Lol it wont have virus bacause its coded in about 40 lines xD

  13. #13
    WowIwasSuperCringeB4 XZeenon is offline
    MemberRank
    Jun 2008 Join Date
    CanadaLocation
    1,405Posts

    Re: [C#][SA-MP Config Generator]My first program

    Imports System
    Imports System.Collections.Generic
    Imports System.ComponentModel
    Imports System.Data
    Imports System.Drawing
    Imports System.Linq
    Imports System.Text
    Imports System.Windows.Forms

    Namespace SA_MP_Config_Generator
    Public Partial Class Form1
    Inherits Form
    Public Sub New()
    InitializeComponent()
    End Sub

    Private Sub generatebtn_Click(ByVal sender As Object, ByVal e As EventArgs)
    Dim output As String = "echo Executing Server Config..." & vbCr & vbLf & " lanmode 0" & vbCr & vbLf & " rcon_password changeme" & vbCr & vbLf & " maxplayers 64" & vbCr & vbLf & " port 7777" & vbCr & vbLf & " hostname Unnamed 0.2X Server" & vbCr & vbLf & " gamemode0 lvdm 1" & vbCr & vbLf & " filterscripts adminspec vactions" & vbCr & vbLf & " announce 1" & vbCr & vbLf & " query 1" & vbCr & vbLf & " weburl www.ragezone.com" & vbCr & vbLf & " anticheat 0".Replace("Unnamed 0.2X Server", servernametxt.Text).Replace("7777", serverporttxt.Text).Replace("64", mplayerscboBox.Text).Replace("changeme", adminpasstxt.Text).Replace("www.ragezone.com", weburltxt.Text)
    Dim output2 As String = output
    If lansrvchkbox.Checked Then
    output2.Replace("lanmode 0", "lanmode 1")
    End If
    Dim output3 As String = output2
    If anticchkbox.Checked Then
    output3.Replace("anticheat 0", "anticheat 1")
    End If
    outputtxt.Text = output3
    End Sub
    End Class
    End Namespace

    or in C# which was what i made it in the converted to vb:

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;

    namespace SA_MP_Config_Generator
    {
    public partial class Form1 : Form
    {
    public Form1()
    {
    InitializeComponent();
    }

    private void generatebtn_Click(object sender, EventArgs e)
    {
    string output =
    @"echo Executing Server Config...
    lanmode 0
    rcon_password changeme
    maxplayers 64
    port 7777
    hostname Unnamed 0.2X Server
    gamemode0 lvdm 1
    filterscripts adminspec vactions
    announce 1
    query 1
    weburl www.ragezone.com
    anticheat 0"
    .Replace("Unnamed 0.2X Server", servernametxt.Text)
    .Replace("7777", serverporttxt.Text)
    .Replace("64", mplayerscboBox.Text)
    .Replace("changeme", adminpasstxt.Text)
    .Replace("www.ragezone.com", weburltxt.Text);
    string output2 = output;
    if (lansrvchkbox.Checked)
    {
    output2.Replace("lanmode 0", "lanmode 1");
    }
    string output3 = output2;
    if (anticchkbox.Checked)
    {
    output3.Replace("anticheat 0", "anticheat 1");
    }
    outputtxt.Text = output3;
    }
    }
    }

  14. #14
    The Gamma..? EliteGM is offline
    MemberRank
    Jul 2006 Join Date
    NandolandLocation
    4,078Posts

    Re: [C#][SA-MP Config Generator]My first program

    Wrap it in code tags!

    PHP Code:
    Imports System
    Imports System
    .Collections.Generic
    Imports System
    .ComponentModel
    Imports System
    .Data
    Imports System
    .Drawing
    Imports System
    .Linq
    Imports System
    .Text
    Imports System
    .Windows.Forms

    Namespace SA_MP_Config_Generator
    Public Partial Class Form1
    Inherits Form
    Public Sub New()
    InitializeComponent()
    End Sub

    Private Sub generatebtn_Click(ByVal sender As ObjectByVal e As EventArgs)
    Dim output As String "echo Executing Server Config..." vbCr vbLf " lanmode 0" vbCr vbLf " rcon_password changeme" vbCr vbLf " maxplayers 64" vbCr vbLf " port 7777" vbCr vbLf " hostname Unnamed 0.2X Server" vbCr vbLf " gamemode0 lvdm 1" vbCr vbLf " filterscripts adminspec vactions" vbCr vbLf " announce 1" vbCr vbLf " query 1" vbCr vbLf " weburl www.ragezone.com" vbCr vbLf " anticheat 0".Replace("Unnamed 0.2X Server"servernametxt.Text).Replace("7777"serverporttxt.Text).Replace("64"mplayerscboBox.Text).Replace("changeme"adminpasstxt.Text).Replace("www.ragezone.com"weburltxt.Text)
    Dim output2 As String output
    If lansrvchkbox.Checked Then
    output2
    .Replace("lanmode 0""lanmode 1")
    End If
    Dim output3 As String output2
    If anticchkbox.Checked Then
    output3
    .Replace("anticheat 0""anticheat 1")
    End If
    outputtxt.Text output3
    End Sub
    End 
    Class
    End Namespace

    or 
    in C# which was what i made it in the converted to vb:

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;

    namespace 
    SA_MP_Config_Generator
    {
    public 
    partial class Form1 Form
    {
    public 
    Form1()
    {
    InitializeComponent();
    }

    private 
    void generatebtn_Click(object senderEventArgs e)
    {
    string output =
    @
    "echo Executing Server Config...
    lanmode 0
    rcon_password changeme
    maxplayers 64
    port 7777
    hostname Unnamed 0.2X Server
    gamemode0 lvdm 1
    filterscripts adminspec vactions
    announce 1
    query 1
    weburl www.ragezone.com
    anticheat 0"
    .Replace("Unnamed 0.2X Server"servernametxt.Text)
    .
    Replace("7777"serverporttxt.Text)
    .
    Replace("64"mplayerscboBox.Text)
    .
    Replace("changeme"adminpasstxt.Text)
    .
    Replace("www.ragezone.com"weburltxt.Text);
    string output2 output;
    if (
    lansrvchkbox.Checked)
    {
    output2.Replace("lanmode 0""lanmode 1");
    }
    string output3 output2;
    if (
    anticchkbox.Checked)
    {
    output3.Replace("anticheat 0""anticheat 1");
    }
    outputtxt.Text output3;
    }
    }


  15. #15
    Venture Adventure Tyler is offline
    LegendRank
    Nov 2008 Join Date
    United KingdomLocation
    4,443Posts

    Re: [C#][SA-MP Config Generator]My first program

    Im with you now.



Page 1 of 2 12 LastLast

Advertisement