SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 07/04/2017, 10:47 AM   #281
DRIFT_HUNTER
High-roller
 
Join Date: Oct 2009
Posts: 2,103
Reputation: 130
Default Re: Socket plugin (v0.2b released)

Quote:
Originally Posted by Saddin View Post
can someone help me?

i made visual studio application that connects to server via socket and send integer to server but i cant recieve it in script

how to read that data?

i connected to server via socket on both sides but dont know what to use of those natives in script and where
Checkout TCP Server example script.
__________________
Путин here,
Путин there,
Путин просто everywhere.


Any PM's that include question about any kind of help will be ignored.
Use appropriate boards for that
DRIFT_HUNTER is offline   Reply With Quote
Old 23/07/2017, 06:41 PM   #282
Omirrow
Huge Clucker
 
Join Date: Feb 2013
Location: Turkey
Posts: 287
Reputation: 8
Post Re: Socket plugin (v0.2b released)

Code:
[21:26:59]  Loading plugin: socket
[21:26:59]   Failed.
I have the socket.dll in my plugins folder, the plugin is on the list in server.cfg

(Please don't give advices for these two stated above, I already know how does these things work)

I have no idea of why does that happen?

EDIT:

v0.1b(an older version) works fine by the way!
The new version won't work.
Omirrow is offline   Reply With Quote
Old 23/07/2017, 06:52 PM   #283
Jeroen52
Gangsta
 
Jeroen52's Avatar
 
Join Date: Oct 2008
Location: The Netherlands
Posts: 793
Reputation: 53
Default Re: Socket plugin (v0.2b released)

Quote:
Originally Posted by Omirrow View Post
Code:
[21:26:59]  Loading plugin: socket
[21:26:59]   Failed.
I have the socket.dll in my plugins folder, the plugin is on the list in server.cfg

(Please don't give advices for these two stated above, I already know how does these things work)

I have no idea of why does that happen?

EDIT:

v0.1b(an older version) works fine by the way!
The new version won't work.
Any more info in the logs?

Just so we're sure, you're on Windows, right?

What is the contents of your plugins/ folder?

What is the contents of your server.cfg?
__________________
Jeroen52 is offline   Reply With Quote
Old 23/07/2017, 07:16 PM   #284
Omirrow
Huge Clucker
 
Join Date: Feb 2013
Location: Turkey
Posts: 287
Reputation: 8
Default Re: Socket plugin (v0.2b released)

Quote:
Originally Posted by Jeroen52 View Post
Any more info in the logs?

Just so we're sure, you're on Windows, right?

What is the contents of your plugins/ folder?

What is the contents of your server.cfg?
I tried this with a brand new samp server (grandlarc gamemode), it still won't load so there's an issue with the plugin, I guess.

I'm using Windows, yes.
Omirrow is offline   Reply With Quote
Old 23/07/2017, 07:31 PM   #285
Jeroen52
Gangsta
 
Jeroen52's Avatar
 
Join Date: Oct 2008
Location: The Netherlands
Posts: 793
Reputation: 53
Default Re: Socket plugin (v0.2b released)

Quote:
Originally Posted by Omirrow View Post
I tried this with a brand new samp server (grandlarc gamemode), it still won't load so there's an issue with the plugin, I guess.

I'm using Windows, yes.
To eliminate human error, what is the contents of your plugins/ folder and what is the contents of your server.cfg?
__________________
Jeroen52 is offline   Reply With Quote
Old 23/07/2017, 07:32 PM   #286
Omirrow
Huge Clucker
 
Join Date: Feb 2013
Location: Turkey
Posts: 287
Reputation: 8
Post Re: Socket plugin (v0.2b released)

Quote:
Originally Posted by Jeroen52 View Post
To eliminate human error, what is the contents of your plugins/ folder and what is the contents of your server.cfg?
Code:
plugins crashdetect sscanf streamer mysql pawncmd socket


Okay?
Basically, it's there...
Omirrow is offline   Reply With Quote
Old 24/07/2017, 12:15 AM   #287
Spmn
Gangsta
 
Join Date: Jun 2015
Location: Romania
Posts: 515
Reputation: 107
Default Re: Socket plugin (v0.2b released)

You might be missing a dll. Use dependency walker
Spmn is offline   Reply With Quote
Old 24/07/2017, 06:46 PM   #288
Omirrow
Huge Clucker
 
Join Date: Feb 2013
Location: Turkey
Posts: 287
Reputation: 8
Post Re: Socket plugin (v0.2b released)

Quote:
Originally Posted by Riccardomen View Post
The plugin wont load i dont know why..
"failed to load socket.dll"
How did you get rid of this problem, if you did?

BY THE WAY:

Quote:
Originally Posted by Omirrow View Post
v0.1b(an older version) works fine by the way!
The new version won't work.
Omirrow is offline   Reply With Quote
Old 01/08/2017, 07:48 PM   #289
Omirrow
Huge Clucker
 
Join Date: Feb 2013
Location: Turkey
Posts: 287
Reputation: 8
Post Re: Socket plugin (v0.2b released)

None else haven't had this problem before?
Omirrow is offline   Reply With Quote
Old 10/08/2017, 03:34 PM   #290
GGRPSkripter
Little Clucker
 
Join Date: Jul 2015
Posts: 38
Reputation: 1
Default Re: Socket plugin (v0.2b released)

My server is going offline after i try to send some data with socket_send()

Code:
public onSocketRemoteConnect(Socket:id, remote_client[], remote_clientid)
{
	printf("Dolazeca konekcija sa [%d:%s]", remote_clientid, remote_client); // [id:ip]
	if(is_socket_valid(id)) socket_send(id, "Welcome :)", strlen("Welcome :)"));
	return 1;
}
GGRPSkripter is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Socket Plugin] Retrieving input stream iRage Scripting Help 0 08/01/2014 09:11 AM
Question about socket plugin Kirollos Scripting Help 6 13/07/2012 08:33 PM


All times are GMT. The time now is 03:59 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.