| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 264 online users. » 1 Member(s) | 258 Guest(s) Bing, Baidu, Google, Applebot, Yandex, revian.arfarizi12
|
| Latest Threads |
PROJECT: LOS ANGELES — TH...
Forum: Advertisements
Last Post: cosminupgaming
Yesterday, 07:16 PM
» Replies: 4
» Views: 728
|
After School Roleplay - G...
Forum: Advertisements
Last Post: cosminupgaming
Yesterday, 11:26 AM
» Replies: 2
» Views: 369
|
LCSHosting.eu - Free SA-M...
Forum: Tech
Last Post: LCSLaces
2025-12-12, 04:57 PM
» Replies: 0
» Views: 39
|
Las Venturas Gang Wars - ...
Forum: Advertisements
Last Post: lvgwgta
2025-12-12, 03:29 PM
» Replies: 0
» Views: 23
|
Infamous Roleplay
Forum: Advertisements
Last Post: JakeFalcone
2025-12-11, 11:34 PM
» Replies: 0
» Views: 38
|
The server didn't respond...
Forum: Support
Last Post: HELLHOUND
2025-12-11, 01:17 PM
» Replies: 1
» Views: 178
|
Grand Gang War (GGW)
Forum: Advertisements
Last Post: piroballu
2025-12-09, 01:16 PM
» Replies: 1
» Views: 237
|
Zona América del Sur DM+ ...
Forum: Advertisements
Last Post: kevinberriosflores
2025-12-05, 10:59 PM
» Replies: 0
» Views: 72
|
Real-time pathfinder, opt...
Forum: Pawn Scripting
Last Post: ejtamovic
2025-12-05, 02:06 PM
» Replies: 0
» Views: 129
|
The size of the output am...
Forum: Questions and Suggestions
Last Post: scandalfive
2025-12-01, 07:07 PM
» Replies: 0
» Views: 120
|
|
|
| discord ban?? |
|
Posted by: CJ101 - 2024-01-19, 08:05 PM - Forum: Chat
- No Replies
|
 |
I seem to be banned from the SA-MP OpenMp discord. how would i go about appealing that?
|
|
|
|
| issue with forEach |
|
Posted by: CJ101 - 2024-01-19, 12:16 AM - Forum: Pawn Scripting
- Replies (2)
|
 |
Does open.mp not work with foreach? I get the error:
C:\Users\jdawg\OneDrive\Documents\RXDM\gamemodes\rxdm-sql.pwn(4887) : error 017: undefined symbol "Rows@YSII_Ag"
Here's part of my code, the error is on the foreach() line
Code: mysql_query(rxdm,"SELECT * FROM `props`");
new Rows = cache_num_rows();
new tmp[35];
if(Rows > 0)
{
foreach (new row:Rows)
{
|
|
|
|
| Connecting and disconnecting the server |
|
Posted by: iyat.asagy3 - 2024-01-18, 09:07 PM - Forum: Support
- No Replies
|
 |
Hello, how long has it been when I go to a server, after about 10 to 12 minutes the server restarts for me and sometimes I need to exit the game in all servers, how can I solve this problem?
|
|
|
|
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
|
|
|
|
|