Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 6,344
» Latest member: bliss
» Forum threads: 2,210
» Forum posts: 11,994
Full Statistics
|
Online Users |
There are currently 60 online users. » 1 Member(s) | 55 Guest(s) Google, Bing, Facebook, Yandex, thebust3rs
|
Latest Threads |
Anticheat
Forum: Programaci?n
Last Post: bliss
5 hours ago
» Replies: 3
» Views: 471
|
Почему нет поддержки русс...
Forum: Russian/???????
Last Post: Silicium
2024-10-08, 08:05 PM
» Replies: 7
» Views: 4,613
|
Looking for Advice on Ser...
Forum: Programming
Last Post: matthiasbaker
2024-10-08, 09:50 AM
» Replies: 0
» Views: 17
|
Can't launch samp/open.mp...
Forum: Support
Last Post: Mido
2024-10-08, 12:45 AM
» Replies: 3
» Views: 402
|
Dual monitors with San An...
Forum: Tech
Last Post: matthiasbaker
2024-10-07, 12:01 PM
» Replies: 7
» Views: 8,992
|
How to Compile Your Gamem...
Forum: Tutorials
Last Post: thelante
2024-10-05, 06:20 AM
» Replies: 0
» Views: 145
|
Las Venturas Gang Wars - ...
Forum: Advertisements
Last Post: lvgwgta
2024-10-04, 03:56 PM
» Replies: 0
» Views: 34
|
0.3.7 version change to o...
Forum: Programming
Last Post: JasonRiggs
2024-10-04, 03:35 PM
» Replies: 1
» Views: 90
|
Open Roleplay
Forum: Advertisements
Last Post: thebust3rs
2024-10-04, 07:21 AM
» Replies: 0
» Views: 29
|
ajuda
Forum: Portuguese/Portugu?s
Last Post: Carlos Victor
2024-10-03, 08:23 AM
» Replies: 1
» Views: 471
|
|
|
Looking for Advice on Server-Side Scripting for open.mp |
Posted by: matthiasbaker - 2024-10-08, 09:50 AM - Forum: Programming
- No Replies
|
|
Hey everyone
I am diving into server-side scripting with open.mp and could use some guidance from the more experienced folks here. I have got a decent grasp on scripting basics, but I am looking to improve my understanding of best practices and efficient ways to handle things like player management, handling large events, or optimizing server performance.
Are there any particular frameworks, libraries, or tools that you all recommend for making server-side scripting smoother or more efficient? Also, any tips for debugging or testing scripts in a live environment? When I was Googling about it, I came across these resources https://www.open.mp/docs/scripting/resources/start salesforce interview questions however, they are quite informative but I wanted to learn from community members.
Looking forward to hearing your thoughts and advice!
Thanks in advance
|
|
|
How to Compile Your Gamemode in Visual Studio Code |
Posted by: thelante - 2024-10-05, 06:20 AM - Forum: Tutorials
- No Replies
|
|
In this guide, I’ll show you how to compile your gamemode using Visual Studio Code. We’ll start by installing the necessary compiler and setting up everything step-by-step.
To begin, we need to install the Pawn Development Tool extension for VSCode. You can either install it through VSCode directly or via this marketplace link: https://marketplace.visualstudio.com/ite...evelopment
If you want to contribute or dive deeper into the project, here’s the source code link: https://github.com/openmultiplayer/vscode-pawn
1. Open Visual Studio Code
2. Go to the Extensions Section
Click on the extensions icon located on the left-hand toolbar.
3. Search for "Pawn Development Tool
Type Pawn Development Tool in the search bar.
4. Select the First Option
The first option that appears will be the correct extension.
5. Install the Extension
Click on the install button.
Now that we’ve installed the extension, let’s move on to setting up the compiler.
1. Navigate to Your Gamemode Directory
Open your gamemode folder in VSCode.
2. Initialize the Pawn Task/Compiler
To set up the compiler, press Quote:Ctrl + Shift + P
or Quote:F1
or go to View > Command Palette. Then, search for Pawn Development: Initialize Pawn Build Task.
3. Select the Build Task Option
Click on the result.
After initializing the task, you might encounter an error when trying to compile, like this:
This happens because the compiler doesn’t know the location of `pawncc.exe`. So, we need to set it manually by editing the `tasks.json` file.
1. Open `tasks.json`
Find the `tasks.json` file in your `.vscode` folder.
2. Specify the Compiler Path
In the `command` field of `tasks.json`, you need to set the path to your compiler. If you’re using SA-MP Server, you might be using **pawno**, and for open.mp servers, you’ll likely be using qawno. Here’s how to configure each:
Pawno users: Set the path to `${workspaceRoot}/pawno/pawncc`
Qawno users: Set the path to `${workspaceRoot}/qawno/pawncc`
Example setup:
Now, you can compile your gamemode. If everything is set correctly, the compiler should successfully compile your script.
Update:
(Thanks to edgy and Southclaws they helped me figure this out and learn how to set it up!)
You might notice that errors and warnings aren’t being highlighted yet. This is because we haven't set them up properly. Let's fix that by going back to the `tasks.json` file.
Adjust the `problemMatcher` Configuration
First, locate the `"problemMatcher"` section in the `tasks.json` file. We need to modify the `"fileLocation"` property.
Change `"relative"` to `"autoDetect"` so it can automatically detect your gamemode file location.
Next, update `"${workspaceRoot}"` to `"${workspaceRoot}/gamemodes"` to ensure it's pointing to your gamemode directory.
After making these changes, errors and warnings should now be properly highlighted in your gamemode.
This guide was based on my own experience compiling gamemodes in VSCode. If you notice any mistakes or have suggestions for improvement, feel free to let me know!
Thanks for reading, and good luck with your gamemode development!
|
|
|
Open Roleplay |
Posted by: thebust3rs - 2024-10-04, 07:21 AM - Forum: Advertisements
- No Replies
|
|
🚀 Welcome to Open Roleplay! 🚀
We’re excited to offer you information on a new server: Open Roleplay! 🎉 Dive back into the basics of what made this mod legendary with our medium roleplay server, offering endless fun and opportunities to explore! 🌟
What’s in store? 🏎️🏡🔫
🚗 Vehicle Fun:
Rent, buy, sell, and recycle vehicles!
🏠 Property Adventures:
Buy, sell, burn, and rob properties. Plus, rent hotel rooms for a temporary stay!
🔫 Faction Frenzy:
No more forum applications! Apply in-game and get instant entry into factions like LSPD as a trainee officer. Cool down periods apply if you leave, so choose wisely! 🚓🔥
🏦 Action-Packed Jobs:
Rob banks, hold up gas stations, and take on faction-specific jobs like:
LSPD: Bank robberies, property inspections
LSFD: House fires
Mechanics: Broken-down vehicles
Tow Company: Roadside object removal, Vehicle Impounding
💥 Server Launch Date: 1st November 2024! Get in early and be part of our beta testing phase. Join now and help shape the future of Open Roleplay! 🌐✨
🔗 Join Discord Now: https://discord.gg/dJqfdHFK4F 🔗
https://youtu.be/ube_UtibijU
https://youtu.be/5RwsahoDYNA
https://youtu.be/Inoy5MzmKBw
https://youtu.be/3lBT8rUoqnM
https://youtu.be/CNzjBR411hs
https://youtu.be/bNlodPjyISI
https://youtu.be/hRf3aWHVPgE
https://youtu.be/Xa6UiPMmvzw
https://youtu.be/YWaNtumrlNc
https://youtu.be/KrXxwfie2cE
|
|
|
0.3.7 version change to open.mp |
Posted by: lauti_lxb - 2024-10-02, 05:03 PM - Forum: Programming
- Replies (1)
|
|
Hi everyone, first of all, I'm an old scripter of version 0.3.7, my server has been offline for 4 years but I decided to come back. I'm trying to move everything to the new version of SAMP, but I have some errors. What's happening is something very strange, as far as I understand all the scripts from previous versions are compatible with open.mp. However, my server works perfectly in version 0.3.7 and in version 0.3DL the same. My gamemode script works perfectly and the plugins are the ones I've used all my life. The strangest thing about all this is that the server very occasionally starts without freezing and everything works perfectly, but most of the time it doesn't start in the new version. As I mentioned before, with SAMP versions this does not happen, it only happens with open.mp... In the console it gives me some warnings like the following: [13:22:17] [Warning] Deprecated function GetServerVarAsString used. This function was replaced by GetConsoleVarAsString.
[13:22:17] [Warning] Deprecated functions will be removed in the next open.mp release.
[13:22:17] [Warning] Parameter count does not match specifier in `Script_Call`. callback: Itter_OnGameModeInit - fmat: - count: 3) [13:22:17] [Warning] SetTimer(Ex): There was a problem in creating the timer, "public BeenReped" doesn't exist in your script.
[13:22:17] [Warning] SetTimer(Ex): There was a problem in creating the timer, "public RapedPlayerRecent" doesn't exist in your script.
[13:22:17] [Warning] SetTimer(Ex): There was a problem in creating the timer, "public RobbedPlayerRecent" doesn't exist in your script.
[13:22:17] [Warning] SetTimer(Ex): There was a problem in creating the timer, "public InfectedPlayerRecent" doesn't exist in your script.
[13:22:17] [Warning] SetTimer(Ex): There was a problem in creating the timer, "public RapedPlayerRecent" doesn't exist in your script.
[13:22:17] [Warning] SetTimer(Ex): There was a problem in creating the timer, "public inactiveplayercheck" doesn't exist in your script.
[13:22:17] [Info]
But the server doesn't close or anything, and everything in the log seems to work correctly, that is, it loads absolutely everything that it should load normally. Do you have any idea how I can fix this?
|
|
|
Need any technical support? |
Posted by: JasonRiggs - 2024-10-01, 02:20 PM - Forum: Programming
- No Replies
|
|
Hi there!
So I thought why not we make this thread to people who require or offer any technical support to meet up here so we can make it easier for developers and users to find each others which will enhance the growth of the community and the quality of the service.
I'll begin with myself.. If you need any help regarding Open.MP server development or any other matter contact me over DMs or on discord riggsss
Hope this post reaches alot of people!
|
|
|
Baltimore Roleplay (English - 0.3DL) |
Posted by: uzi - 2024-09-30, 07:01 PM - Forum: Advertisements
- No Replies
|
|
Baltimore Roleplay (BMRP) is an upcoming English, strict text-based roleplay server hosted on Open Multiplayer (SA-MP), with a long-term goal of delivering unique and immersive roleplay experiences.
The server is set in Baltimore, Maryland, in the year 2004. Players are expected to roleplay in line with the time period, taking into account the limitations of that year. While the setting may evoke similarities, it is NOT based on the popular TV series The Wire, allowing players the freedom to explore fresh ideas and unique concepts.
Baltimore Roleplay expands San Fierro with many custom maps created by the Modding Team. The current script, based on the Westside Roleplay gamemode, brings new roleplay possibilities. It aims to be flexible, offering something for everyone and ensuring a fun experience for all players.
|
|
|
Problem with open inc |
Posted by: sampjoc - 2024-09-24, 09:04 PM - Forum: Programming
- No Replies
|
|
hello, I have this problem from open mp
hello, I have this problem from open mp
[22h:42m:58s] Run time error 19: "File or function is not found"
[22h:42m:58s] RemovePlayerWeapon
[22h:42m:58s] IsVehicleOccupied
[22h:42m:58s] EndObjectEditing
[22h:42m:58s] GetVehicleDriver
[22h:42m:58s] UseGangZoneCheck
[22h:42m:58s] GetVehicleColor
[22h:42m:58s] IsPlayerUsingOfficialClient
[22h:42m:58s] CountRunningTimers
[22h:42m:58s] Run time error 19: "File or function is not found"
[22h:42m:58s] RemovePlayerWeapon
[22h:42m:58s] IsVehicleOccupied
[22h:42m:58s] EndObjectEditing
[22h:42m:58s] GetVehicleDriver
[22h:42m:58s] UseGangZoneCheck
[22h:42m:58s] GetVehicleColor
[22h:42m:58s] IsPlayerUsingOfficialClient
[22h:42m:58s] CountRunningTimers
|
|
|
|