Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 947 online users. » 0 Member(s) | 945 Guest(s) Bing, Google
|
Latest Threads |
Adding new vehicles and s...
Forum: Programming
Last Post: __.A.__
Yesterday, 07:47 PM
» Replies: 0
» Views: 43
|
Zona América del Sur Free...
Forum: Advertisements
Last Post: kevinberriosflores
Yesterday, 02:16 PM
» Replies: 1
» Views: 68
|
Busco copia de gamemode S...
Forum: Spanish/Espa?ol
Last Post: briancristaldo2021
2025-09-11, 11:14 AM
» Replies: 0
» Views: 56
|
[Tutorial] Registrando o ...
Forum: Portuguese/Portugu?s
Last Post: Crazy_ArKzX
2025-09-09, 08:36 PM
» Replies: 0
» Views: 197
|
San Andreas Police Pursui...
Forum: Advertisements
Last Post: BriBri
2025-09-08, 10:09 PM
» Replies: 1
» Views: 286
|
Problem with plugins load...
Forum: Support
Last Post: MrKacu13
2025-09-08, 07:15 PM
» Replies: 9
» Views: 334
|
Compilation error
Forum: Pawn Scripting
Last Post: MrKacu13
2025-09-07, 07:18 AM
» Replies: 6
» Views: 336
|
Need help, problem when i...
Forum: Programming
Last Post: nonickowned
2025-09-06, 06:21 PM
» Replies: 0
» Views: 140
|
Transfer server from SAMP...
Forum: Support
Last Post: MrKacu13
2025-09-06, 04:03 PM
» Replies: 1
» Views: 233
|
Not relevant anymore
Forum: Questions and Suggestions
Last Post: peti
2025-09-05, 02:00 PM
» Replies: 0
» Views: 192
|
|
|
Parallel for missing iterations? |
Posted by: visibleonbush1 - 2024-01-18, 07:00 PM - Forum: Questions and Suggestions
- Replies (2)
|
 |
Hi, I'm working on optimizing a piece of code, the code performs well for smaller values of 'n' (e.g., 10,000), but when 'n' is significantly larger (e.g., 100,000), it seems to skip a considerable number of iterations. Specifically, I've tested it with 'n' set to 100,000, and it only executes 1,410,065,408 iterations out of the expected 10,000,000,000., im asking here because if n is not so big (10k) he is perfectly fine, am i missing anything (thank you in advance).
Code: int compute_forces( void )
{
int n_intersections = 0;
int nThread = omp_get_num_threads();
int *nit = calloc(8, sizeof(int));
long long asdf = 0;
// Parallelized the outer function, because the internal would have a lot more overhead
#pragma omp parallel for collapse(2) default(none) shared(ncircles, circles, EPSILON, K, nit) schedule(static, ncircles) reduction(+:n_intersections) reduction(+:asdf)
for (int i=0; i<ncircles; i++) {
for (int j=0; j<ncircles; j++) {
//nit[omp_get_thread_num()]++;
asdf++;
if (j <= i) {
continue;
}
const float deltax = circles[j].x - circles[i].x;
const float deltay = circles[j].y - circles[i].y;
const float dist = hypotf(deltax, deltay);
const float Rsum = circles[i].r + circles[j].r;
if (dist < Rsum - EPSILON) {
n_intersections++;
const float overlap = Rsum - dist;
assert(overlap > 0.0);
const float overlap_tmp = overlap / (dist + EPSILON);
const float overlap_x = overlap_tmp * deltax;
const float overlap_y = overlap_tmp * deltay;
#pragma omp atomic
circles[i].dx -= overlap_x;
#pragma omp atomic
circles[i].dy -= overlap_y;
#pragma omp atomic
circles[j].dx += overlap_x;
#pragma omp atomic
circles[j].dy += overlap_y;
}
}
}
|
|
|
JSON Gamemode Base |
Posted by: Dev86 - 2024-01-16, 01:52 PM - Forum: Gamemodes
- No Replies
|
 |
JSON Gamemode Base
An OpenMP gamemode that stores player data in a JSON Object using samp-json.
Example of a player object:
Code: {
"id": 0,
"name": "Davorin_Adler",
"password": "<password-hash-goes-here>"
}
All columns on your MySQL Database will be loaded into your JSON Object.
NOTE:
I have written this initially for a gamemode I was personally going to be working on. However, it turned out to be more of a hassle to work with than anything.
I would recommend you base your new gamemode with this if you are a martyr.
DEPENDENCIES:
pawn-json
MySQL R41-4 by pBlueG
YSI 5.x
- y_inline
- y_inline_mysql
- y_inline_bcrypt
- y_dialog
INSTALL:
https://github.com/sampdevi/samp-json-auth
no sampctl support (yet) I'm too lazy zzzzzz
|
|
|
San Fierro Cops and Robbers Revival |
Posted by: ChronosXYZ - 2024-01-11, 02:39 AM - Forum: Advertisements
- No Replies
|
 |
🚨👥 Dive into the heart-pounding chaos of our reborn Cops and Robbers universe on San Andreas Multiplayer! 🌐
🌟 Welcome to the exhilarating revival of good ol' SF-CNR, where the streets are mean, the stakes are high, and the thrill is unmatched! 🔗✨
👮♂️🚓 Embrace the role of a dedicated law enforcer or a sly, cunning criminal – all within a dynamic virtual world meticulously designed for pure, unadulterated FUN! 🎮💼
🏙️ Immerse yourself in the captivating streets of San Andreas, where roleplay gameplay meets the genuine passion of our community. Every moment is an opportunity to shape your own narrative, ensuring an authentic gaming experience that keeps you coming back for more! 🌐🚓🏃♂️
🎭 Create your own story as you engage in epic heists, high-speed pursuits, and intricate schemes. Whether you're wearing a badge or plotting the perfect crime, our ethos is all about putting the FUN first! 🌐🚀
🤝 Join a community of like-minded gamers who share your passion for exhilarating multiplayer action. Form alliances, challenge rivals, and carve out your own legacy in the ever-evolving narrative of our Cops and Robbers saga! 🌐🔒
🌈 This isn't just a game; it's a community-driven experience. Rewrite the rules and embark on an unforgettable journey through the streets of San Andreas! 🌐🔒
👉 Server IP: 212.118.36.220:7778
👉 Discord: https://discord.gg/Vh5qzhc7Sd
🚀 Unleash the chaos. Live the legend. Join us in this adventure, where the focus is on the joy of gaming! 🚀
⚠️ Community reminder: We're a non-commercial project, dedicated to providing a genuine and fun gaming experience for all players. ⚠️
The project is new, so we are actively looking for players. Come and join, be the first in the server history!
|
|
|
Chat Config |
Posted by: eubluen - 2024-01-09, 09:56 AM - Forum: Libraries
- No Replies
|
 |
Chat Config
Download:
Summary of the Include:
- You will be able to globally or per player control whether they will have the chat enabled or not. It's an include that will help those who want to create an RP server or a project without chat. More information is available in the repository on GitHub. If there are any bugs or anything of the sort, just give me a heads up.
Enjoy :)
|
|
|
couldn't announce legacy network error |
Posted by: CJ101 - 2024-01-09, 01:13 AM - Forum: Support
- Replies (1)
|
 |
This started happening out of nowhere. (However, i did upgrade to latest open.mp Build)
Code: [00:25:40] [Info] Couldn't announce legacy network to open.mp list.
[00:25:40] [Info] [Server Error] Status: 406
[00:25:40] [Info] [Server Error] Message: {"error":"failed to query server: failed to resolve host: address 2604:2dc0:101:200::1cee:7777: too many colons in address"}
|
|
|
|