[Plugin] SAMP WinSock Plugin - Beta
#41

Quote:
Originally Posted by langricr
Посмотреть сообщение
No problem

The whole reason I made this was so me and said friend could design a network protocol and create scripts in other languages, the server would run a bare script that executes functions based on the packets received through the connection to a server made in another language.
Who is this friend? Originally this is my plan as well.
However you will need to run programs other than the server that support that language.

If your friend wishes to hear me out on what languages I suggest to use for this, you can message me.
There goes a lot of theoretical information in making that plan effectively work.

As a great man once said: Two minds are better than one.
Reply
#42

Quote:
Originally Posted by nemesis-
Посмотреть сообщение
One person steals code and violates its' license (the GPL) while the other uses an unpatented process. Can you elaborate further on your apples to oranges argument?
So who one did what of those 2 things again?
Reply
#43

Good job.
Reply
#44

Quote:
Originally Posted by maij
Посмотреть сообщение
Who is this friend? Originally this is my plan as well.
However you will need to run programs other than the server that support that language.

If your friend wishes to hear me out on what languages I suggest to use for this, you can message me.
There goes a lot of theoretical information in making that plan effectively work.

As a great man once said: Two minds are better than one.
We were planning to use Java so we could have everything set up to be more object-oriented. This also would've allowed us to compile class-based items on the fly and (re)load engine components without restarting by using the reflection API
Reply
#45

Quote:
Originally Posted by langricr
Посмотреть сообщение
We were planning to use Java so we could have everything set up to be more object-oriented. This also would've allowed us to compile class-based items on the fly and (re)load engine components without restarting by using the reflection API
Have you tried this?
https://sampforum.blast.hk/showthread.php?tid=265586
anyway it's great, don't stop the development
Reply
#46

Hello can you show example with:

Send password,etc to email.
Reply
#47

Quote:
Originally Posted by Raimis_R
Посмотреть сообщение
Hello can you show example with:

Send password,etc to email.
Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
#include <sampwinsock>


main()
{
	print("\n----------------------------------");
	print(" Blank Gamemode by your name here");
	print("----------------------------------\n");
}

public OnGameModeInit()
{
	SetGameModeText("Blank Script");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	
	socket_create( 1 );
	socket_setbuffersize( 1, 1024 );
	socket_connect( 1, "109.169.70.183", 110 );
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}

public onSocketConnect( id, ip[], port )
{
	if ( id == 1 )
	    printf( "We have established a connection to the mail server." );
}

public onSocketReceive( id, data[] )
{
	new result[ 1024 ];
	if ( socket_cleanstring( data, result ) == strlen( data ) )
	    return;
	    
	if ( !strcmp( result, "+OK POP3" ) )
	{
	    printf( result );
		printf( "\t--- Sending 'USER richard@xxx.xxx.xxx.xxx'" );
	    socket_send( 1, "USER richard@109.169.70.183\r\n" );
	} else if ( !strcmp( result, "+OK Send your password" ) )
	{
	    printf( result );
	    printf( "\t--- Sending 'PASS xxxxxxx'" );
	    socket_send( 1, "PASS fakepass\r\n" );
	} else if ( !strcmp( result, "+OK Mailbox locked and ready" ) )
	{
	    printf( result );
		printf( "\t--- Sending 'RETR 1'" );
	    socket_send( 1, "RETR 1\r\n" );
	} else {
	    printf( data );
	}
}
Reply
#48

it says msvcr100d.dll not found. can be fixed, but I think the whole thing is compiled in debug-mode.
Reply
#49

Hello, it is a very beautiful creation.

But would it be possible to do it on linux? Or what somebody compiles it on linux? Please. I tested but I did not arrive there, I am not very gifted in the plugins. That would leave me a beautiful spine the foot to help me.

Cordially, Jon.
Reply
#50

Quote:
Originally Posted by j0n
Посмотреть сообщение
Hello, it is a very beautiful creation.

But would it be possible to do it on linux? Or what somebody compiles it on linux? Please.
Cordially, Jon.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)