Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 476 online users. » 0 Member(s) | 474 Guest(s) Bing, Google
|
Latest Threads |
Sending message to Discor...
Forum: Tutorials
Last Post: siwode
2025-01-11, 05:38 PM
» Replies: 2
» Views: 2,962
|
AntyCheat System [SA-MP/O...
Forum: Filterscripts
Last Post: Pevenaider
2025-01-11, 03:28 AM
» Replies: 0
» Views: 270
|
Aba Internet / Hosted
Forum: Portuguese/Portugu?s
Last Post: jds
2025-01-08, 02:45 PM
» Replies: 0
» Views: 42
|
Ultimate Gang War o legít...
Forum: Portuguese/Portugu?s
Last Post: jds
2025-01-08, 02:40 PM
» Replies: 0
» Views: 87
|
Toggleable HUD / Undergro...
Forum: Questions and Suggestions
Last Post: yassinwasaround
2025-01-08, 08:01 AM
» Replies: 1
» Views: 98
|
[HELP]How to Retrieve and...
Forum: Pawn Scripting
Last Post: samuelmatheus0502
2025-01-08, 02:07 AM
» Replies: 1
» Views: 98
|
?C?mo configurar el retra...
Forum: Spanish/Espa?ol
Last Post: eternofus.oficial
2025-01-08, 01:46 AM
» Replies: 2
» Views: 2,653
|
Help with a loop
Forum: Pawn Scripting
Last Post: samuelmatheus0502
2025-01-07, 07:20 PM
» Replies: 3
» Views: 128
|
SAMP/OMP Discord - Help u...
Forum: General Discussions
Last Post: Potassium
2025-01-05, 09:52 AM
» Replies: 0
» Views: 70
|
[DOUBT] Is there a way or...
Forum: General Discussions
Last Post: souls
2025-01-04, 02:01 AM
» Replies: 0
» Views: 89
|
|
|
AntyCheat System [SA-MP/OpenMP] |
Posted by: Pevenaider - 2025-01-11, 03:28 AM - Forum: Filterscripts
- No Replies
|
|
AntyCheat for SA-MP/OpenMP
Hi! Let me introduce you to an Anti-Cheat system based on the SendClientCheck function with type 0x5. It’s designed to detect player modifications like S0beit, CLEO 4, CLEO 5 with Ultimate ASI Loader, and SilentPatch.
The script has been tested on SA-MP client versions
Below, you’ll find some screenshots and a link to the script.
|
|
|
Aba Internet / Hosted |
Posted by: jds - 2025-01-08, 02:45 PM - Forum: Portuguese/Portugu?s
- No Replies
|
|
Bom Dia a todos, Comunidade queria saber se a aba internet ou hosted esta liberada no caso publica ou ainda tem que pagar para listar o servidor
|
|
|
[HELP]How to Retrieve and Use Values from MySQL Database in SA-MP Server? |
Posted by: dudungariska - 2025-01-05, 10:23 PM - Forum: Pawn Scripting
- Replies (1)
|
|
Hi everyone,
Hi, I’m trying to make a UCP system for my SA-MP roleplay server, but I’m really new to this, and I’m stuck. My idea is that players will register on a website outside the game, and the website will save their data (like username and email) into a MySQL database. When they join the game, I want the server to get that data (like their email) and show it in something like a dialog or a
/stats command. I don’t really understand how to make the server read the data from the database and display it in-game. Can someone explain how to do this step by step?
Here’s what I’m trying to achieve:
- Retrieve Data: How can I fetch the player’s email from the MySQL database when they log in?
- Display Data: How do I show the retrieved email in a dialog or a command (like/stats)?
- Syncing: What’s the best way to ensure that the data in the database matches the player in-game?
I’m using XAMPP for the database and the MySQL plugin for SA-MP. If anyone has example scripts, explanations, or best practices for linking the UCP with the SA-MP server, I’d greatly appreciate it!
Thanks in advance!
|
|
|
Help with a loop |
Posted by: Neckiy - 2025-01-05, 03:47 PM - Forum: Pawn Scripting
- Replies (3)
|
|
So I feel very stupid right now but can somebody help me with this problem.
I'm making a loop which loads the mysql database data for my admin system.
Code: #define MAX_ADMINS 25
public OnGameModeInit() {
handle = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE);
new query[128];
for(new i = 0; i < MAX_ADMINS; i++) {
mysql_format(handle, query, sizeof(query), "SELECT * FROM admini WHERE Slot='%d'", i);
mysql_tquery(handle, query, "OnAdminLoad", "i", i);
}
return 1;
}
forward OnAdminLoad(i);
public OnAdminLoad(i) {
if(cache_num_rows() > 0) {
cache_get_value(0, "Ime", AdminInfo[i+1][aIme], 25); // THIS IS WHERE THE ERROR OCCURS
cache_get_value_int(0, "MinNeaktivnost", AdminInfo[i+1][aMinNeaktivnost]);
cache_get_value_int(0, "Neaktivnost", AdminInfo[i+1][aNeaktivnost]);
cache_get_value_int(0, "Zauzeto", AdminInfo[i+1][aZauzeto]);
cache_get_value_int(0, "Level", AdminInfo[i+1][aLevel]);
cache_get_value(0, "ImeLevel", AdminInfo[i+1][aImeLevel], 32);
} else {
print("Ucitavanje Admin Databaze nije uspelo.");
}
return true;
}
The error I get is:
[debug] Run time error 4: "Array index out of bounds"
[2025-01-05T16:46:11+0100] [Info] [debug] Attempted to read/write array element at index 25 in array of size 25
[2025-01-05T16:46:11+0100] [Info] [debug] AMX backtrace:
[2025-01-05T16:46:11+0100] [Info] [debug] #0 000243c8 in public OnAdminLoad (i=24) at C:\Users\neman\Desktop\openmp server\gamemodes\skripta.pwn:120
Even though the loop loops from 0 to 24 and then I load it "i+1" because in my database, the Admin Slots are from 1 to 25?
Can somebody explain where the problem is?
|
|
|
SAMP/OMP Discord - Help us hit 35k users! |
Posted by: Potassium - 2025-01-05, 09:52 AM - Forum: General Discussions
- No Replies
|
|
Hi all,
I think most of us are in the Discord server already, but thought I would remind everyone on the forums that it exists just in case :)
Our Discord server has:
👥 Almost 35,000 users
- A good combination of veteran SA-MP players and new players - find old friends who you used to play with, and make new ones!
- Players from all different servers and all different countries - lots of old players from popular servers!
- SA-related channels
- Casual/off-topic chat channels
- VIP channels
- Channels to showcase your creations (both SA and non-SA!)
- open.mp development log channel
- Server advertisements
- Dedicated channels for each spoken language to meet people from your own countries
📰 The most up-to-date information on open.mp
- Announcements
- News and updates
- Releases
- Development log
- Real-time feedback from open.mp partners
🆘 Support channels
- open.mp support
- SA-MP support
- GTA SA support
- Pawn/scripting support
- Other software dev support
- Tech support
Come and hang out! :)
http://discord.com/samp
|
|
|
Open Roleplay | AI Actors (2.0) |
Posted by: Corne - 2025-01-03, 06:31 PM - Forum: Videos and Screenshots
- No Replies
|
|
Started out with some actors that had the ability to talk back to the player like in this video:
[Video: https://www.youtube.com/watch?v=ZoWpUR5I7V8]
Now, in the latest update, the actors can also use commands such as /me and /do to roleplay, and they can also interact with other actors. It needs more work to be stable, but for now I'm using it to make the login/registration screen more interesting.
[Video: https://www.youtube.com/watch?v=RMHRkCpbA9A]
Right now, it's still a work in progress, I'm not confident enough to let players interact with it because it is still somewhat unstable and can break down and become gibberish (even now it still isn't always perfect), but if I can get this to a more stable state, I could see so many interesting possibilities for interactions with actors/NPCs, especially in a roleplay setting. Imagine going to the store and literally telling the actor what you want, or going to a car dealership and talking to the salesman, or even needing to do an actual interview for a job, and the actor can hire you based on that interview. So many possibilities.
|
|
|
|