AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Get specific value with sockets (https://forums.alliedmods.net/showthread.php?t=126447)

dFF 05-09-2010 11:25

Get specific value with sockets
 
I would like to display a specific value only player to call the my function. So I tried:

PHP Code:

new g_iSocket33 ]
function( 
id )
{
    
g_iSocketid ] = socket_opencode.... )
    
    ... 
some code ...
    
    
socket_sendg_iSocketid ], "some code....." )
    
    ... 
some code ...
    
    
socket_closeg_iSocketid ] )
    
    ... 
some code ...


Problem is that all players show the same value.

Bugsy 05-09-2010 18:05

Re: Get specific value with sockets
 
Show your actual code where data is displayed to a player. Also, if you are receiving a response from the socket_send, you should not close the socket immediately after sending data.


All times are GMT -4. The time now is 03:38.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.