Raised This Month: $ Target: $400
 0% 

[JavaScript & AMXX] Live Scoreboard


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
LuKks
Senior Member
Join Date: Dec 2012
Location: Argentina, Santa Fe
Old 03-10-2019 , 22:40   Re: [JavaScript & AMXX] Live Scoreboard
Reply With Quote #5

Quote:
Originally Posted by thEsp View Post
Great, I wonder how long did it take you to code it ?
I appreciate the interest.
Short answer: About 2-3 days because are two versions so they was different days.

The difficult part was make the helper functions for websocket connection (socket_handshake, socket_mask and socket_unmask) because the module Sockets Async don't handle websockets directly so you have to do it yourself (now you can use my functions).

In the second version (actually this last one) I make the say replication then I need send from browser to server too, so I made socket_unmask but also I find one bug with socket_mask sending large data and some pending optimizations, everything solved.
* socket_handshake is for establish the initial connection.

The frontend design is not complex, you can see the .css with few lines.

The JavaScript part was not difficult because it's my main language. Note: don't expect that the code be perfect (except the helper functions), it's just a informal plugin.

Pawn/AMXX was my first language for several years, so..
LuKks is offline
 



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

Forum Jump


All times are GMT -4. The time now is 09:58.


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