Comments (8)
I really like and find it useful.
from fcnpc.
So, you want the plugin to request to github the latest release version and compare this with the current installed version on the server? And maybe print in the server log that a new version is available?
from fcnpc.
@WoutProvost I think so. I tried to do this, but I couldn't.
from fcnpc.
This website shows the latest releases of a given repo of a given username. The JSON output of this repo can be seen here (/repos/ziggi/FCNPC/releases get converted to /repositories/49101449/releases). The javascript code this website uses, can be found here.
Second example: here.
As for the c++ part, I have unfortunately not yet (still learning) mastered this language to know how to send a HTTP request or how to convert JSON to a c++ object, but StackOverflow or Google should provide an answer for that.
from fcnpc.
@WoutProvost I know about it, but my problem in authorization. I will try again a bit later.
from fcnpc.
Hmmm when trying to send a HTTP GET request to api.github.com it will fail (even without the https:// prefix), probably because of SSL. I have created a thread in the Scripting Help forums, but have not received an answer.
from fcnpc.
@WoutProvost I think it is due to authentication.
from fcnpc.
I really don't get why that should be a problem, since it is a public repository and a simple GET api call doesn't require authentication. Why does my browser respond with the correct HTTP Code, even when I'm signed out in GitHub? Is it because my browser is a recognised application? It really blows my mind why it will not just return HTTP 200 in the server.
I should try and see if calling api.github.com works in other application. Maybe the problem lies with the SA-MP server.
from fcnpc.
Related Issues (20)
- FCNPC broke all servers where this plugin is installed!!! Fix It HOT 2
- Signal 11 (Segmentation fault), address is 94 from 8096232 HOT 1
- Linux server Error HOT 1
- Help Compiling HOT 1
- Can you help fix crash fcnpc 0.3dl , Please help me HOT 5
- how to fix it? HOT 1
- Linux Server Crash HOT 7
- Issues when running on Linux HOT 3
- Open Mp HOT 4
- Crash on Linux Server HOT 14
- FCNPC_OnCreate and FCNPC_OnSpawn Callback Problem HOT 4
- Callback Problems HOT 1
- Need Some Information About Some Natives HOT 3
- Correct Delta Calculations
- Signal 11 (Segmentation fault), address is 351 from f79570e3 HOT 2
- Signal 11 (Segmentation fault) HOT 2
- FCNPCs can't drive trailers
- The position of the train cars is not returned if FCNPC drive train.
- FCNPC_EnterVehicle. NPC should not check map.
- FCNPC_LoadPlayingPlayback conflicts with temporary recordings loaded by FCNPC_StartPlayingPlayback
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fcnpc.