Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

gdog12356

Members
  • Posts

    684
  • Joined

  • Last visited

    Never

Everything posted by gdog12356

  1. http://www.touchofdeathforums.com/smf2/index.php/topic,80543.0.html was my entry i forgot to post it here.
  2. @John: > Nice job duck :) lol, thanks. :)
  3. Ok well I don't think anyone released this yet so I figured I would release it. So here we will start with the server: In the server you will want to navigate to Private Sub HandleNewAccount. under ``` Dim Password As String ``` add ``` Dim Password2 As String ``` next find ``` Password = Buffer.ReadString ``` and under it add ``` Password2 = Buffer.ReadString ``` Now find your way to ``` ' Prevent hacking For i = 1 To Len(Name) n = AscW(Mid$(Name, i, 1)) If Not isNameLegal(n) Then Call AlertMsg(index, "Invalid name, only letters, numbers, spaces, and _ allowed in names.") Exit Sub End If Next ``` under that whole thing, add ``` If IsPassTheSame(Password, Password2) = False Then Call AlertMsg(index, "Passwords Do Not Match.") Exit Sub End If ``` This is checking if the two passwords match, and it will read form the data sent to the server from the client. Now we want to actually add the function so… In ModServerTCP add this function to the bottom ``` Function IsPassTheSame(ByVal Password As String, ByVal Password2 As String) As Boolean If UCase$(Trim$(Password)) = UCase$(Trim$(Password2)) Then IsPassTheSame = True Else IsPassTheSame = False End If End Function ``` Now, open up your client and navigate to Public Sub MenuState change``` Call SendNewAccount(sUser, sPass) ```to ``` Call SendNewAccount(sUser, sPass, sPass2) ``` Now replace Public Sub SendNewAccount with this: ``` ' ***************************** ' ** Outgoing Client Packets ** ' ***************************** Public Sub SendNewAccount(ByVal name As String, ByVal Password As String, ByVal Password2 As String) Dim Buffer As clsBuffer ' If debug mode, handle error then exit out If Options.Debug = 1 Then On Error GoTo errorhandler Set Buffer = New clsBuffer Buffer.WriteLong CNewAccount Buffer.WriteString name Buffer.WriteString Password Buffer.WriteString Password2 Buffer.WriteLong CLIENT_MAJOR Buffer.WriteLong CLIENT_MINOR Buffer.WriteLong CLIENT_REVISION SendData Buffer.ToArray() Set Buffer = Nothing ' Error handler Exit Sub errorhandler: HandleError "SendNewAccount", "modClientTCP", Err.Number, Err.Description, Err.Source, Err.HelpContext Err.Clear Exit Sub End Sub ``` What this does is send the data in the confirmation field to the server to be checked. And walla! Your all done! No need to give credit's if you use this as it was easy as fuck but it would much appreciated. :).
  4. @TrollopollorT: > I'm very disappointed, how you gonna leave me all bored & shit? :( > Anyways, good luck! I'm be joining that when you get it released. poop. me too sir.
  5. @Zonova: > I can send you to this beach i've been to. People refer to as the "Bay". Some pirates live there too, or so rumor has it. Amazing, just, amazing…
  6. @Jungle: > I would appreciate it if someone would give me their spare copy :3 Anyone out there have a free copy? ;)
  7. Frozen Synapse is a Tactical Game where you control troops and give them orders to achieve the objective. http://www.youtube.com/watch?v=9jJrUY27O0Y If your on steam add me: What the Duck? My name in the actual game is: Mature You will know who i am because of my similar avatar to the one on the forums. Right now its 50 percent of for 12 dollars and if you buy a copy you get a free one for a friend. If you like strategy game i highly recommend this.
  8. Yay, now when i do amazing it will count for something other then my 1.20 kd.
  9. @[rose: > link=topic=80336.msg860092#msg860092 date=1337799451] > EO is simply a tool to make a game, its your job to use it correctly. ^
  10. he has exams, he will be back soon.
  11. hes using csde. if you want help you should mention that…
  12. [jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait][jailbait]
  13. some one is dosing their servers.
  14. @Soul: > Not that impressive anyway: > ``` > int main(int argc,char** argv){printf("%d\n", argc);main(argc+1,argv);} > > ``` > (This only compiles with C; by the way.) ![](http://i.imgur.com/bYkjs.jpg)
×
×
  • Create New...