SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 23/07/2017, 07:41 PM   #281
Omirrow
Huge Clucker
 
Join Date: Feb 2013
Location: Turkey
Posts: 288
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, 07:52 PM   #282
Jeroen52
Gangsta
 
Jeroen52's Avatar
 
Join Date: Oct 2008
Location: The Netherlands
Posts: 803
Reputation: 62
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 online now   Reply With Quote
Old 23/07/2017, 08:16 PM   #283
Omirrow
Huge Clucker
 
Join Date: Feb 2013
Location: Turkey
Posts: 288
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, 08:31 PM   #284
Jeroen52
Gangsta
 
Jeroen52's Avatar
 
Join Date: Oct 2008
Location: The Netherlands
Posts: 803
Reputation: 62
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 online now   Reply With Quote
Old 23/07/2017, 08:32 PM   #285
Omirrow
Huge Clucker
 
Join Date: Feb 2013
Location: Turkey
Posts: 288
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, 01:15 AM   #286
Spmn
Gangsta
 
Join Date: Jun 2015
Location: Romania
Posts: 528
Reputation: 113
Default Re: Socket plugin (v0.2b released)

You might be missing a dll. Use dependency walker
Spmn is online now   Reply With Quote
Old 24/07/2017, 07:46 PM   #287
Omirrow
Huge Clucker
 
Join Date: Feb 2013
Location: Turkey
Posts: 288
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, 08:48 PM   #288
Omirrow
Huge Clucker
 
Join Date: Feb 2013
Location: Turkey
Posts: 288
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, 04:34 PM   #289
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
Old 28/09/2017, 10:40 PM   #290
oMa37
High-roller
 
oMa37's Avatar
 
Join Date: Feb 2016
Posts: 1,039
Reputation: 152
Default Re: Socket plugin (v0.2b released)

Anyone have any idea why this happens? I'm trying to connect my web chat page (which is hosted in the website host) to the .pwn script (which is hosted in the VPS) but it doesn't work properly, It doesn't even show if the socket connected or not in the console.
I have tested it in the localhost and it worked flawless. I tried contacting the hosters, they told me the ports are already opened, here's my codes:

PHP Code:
// .PWN script
    
gSocket socket_create(TCP);
    if(
is_socket_valid(gSocket)) {

        
socket_set_max_connections(gSocketMAX_PLAYERS);
        
socket_bind(gSocket"SERVERIP");
        
socket_listen(gSocket7778);
    } 
PHP Code:
// PHP Script
            
set_time_limit(0);
            
ob_implicit_flush();
         
            
$address 'SERVERIP';
            
$port 7778;

            
socket_connect($socket$address$port); 
I don't get it, what IP should I use? Server IP or the website IP?
Any help would be appreciated, thanks in advance.
oMa37 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 10:11 AM
Question about socket plugin Kirollos Scripting Help 6 13/07/2012 09:33 PM


All times are GMT. The time now is 10:45 PM.


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