Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 6,511
» Latest member: snaptrap
» Forum threads: 2,233
» Forum posts: 12,034
Full Statistics
|
Online Users |
There are currently 365 online users. » 0 Member(s) | 362 Guest(s) Bing, Google, Yandex
|
Latest Threads |
I humor myself
Forum: Programming
Last Post: nami16504
7 hours ago
» Replies: 5
» Views: 8,042
|
Command does not work in-...
Forum: Pawn Scripting
Last Post: PANZEHIR_
2024-11-23, 06:36 PM
» Replies: 0
» Views: 42
|
White Screen
Forum: Support
Last Post: Phat202146_real
2024-11-21, 02:50 PM
» Replies: 0
» Views: 39
|
I get error 021 using y_h...
Forum: Pawn Scripting
Last Post: daniscript18
2024-11-18, 11:34 PM
» Replies: 0
» Views: 61
|
Il reste des français sur...
Forum: French/Fran?ais
Last Post: tysanio
2024-11-18, 05:39 AM
» Replies: 2
» Views: 468
|
Object creation issues
Forum: Programming
Last Post: K1271
2024-11-15, 11:51 PM
» Replies: 0
» Views: 56
|
Is the SAMP Hosting the s...
Forum: General Discussions
Last Post: OperaGX
2024-11-14, 09:33 PM
» Replies: 0
» Views: 75
|
Run time error 19: "File ...
Forum: Pawn Scripting
Last Post: Rexey
2024-11-14, 03:50 AM
» Replies: 0
» Views: 65
|
How to Compile Your Gamem...
Forum: Tutorials
Last Post: thelante
2024-11-13, 08:50 AM
» Replies: 3
» Views: 475
|
Modeller wanted
Forum: Development Updates
Last Post: acc.gangbeni
2024-11-11, 05:10 PM
» Replies: 9
» Views: 16,506
|
|
|
Hosted tab in 2023 |
Posted by: Mugi - 2023-02-25, 01:11 AM - Forum: General Discussions
- Replies (6)
|
|
I know this may not be the right place to ask this. But I want to come back to the game and start a new server. I know that the Internet tab stopped working some years ago and now Internet tab is just Hosted tab. Is there a way to get my new server into Hosted tab? (I'd also like to use Open.mp server, will that get my server banned in Hosted listings?)
Thanks in advance.
|
|
|
Not Found Amx Function |
Posted by: lnrd77 - 2023-02-23, 08:29 AM - Forum: Pawn Scripting
- Replies (4)
|
|
[23:24:44] No collision data found.
[23:24:44] Script[gamemodes/dayz.amx]: Run time error 19: "File or function is not found"
[23:24:44] Number of vehicle models: 0
Please tell me how to fix this because i already compile the gamemode.pwn no error or etc and if i start the server this warning show on log server and can`t join the server
|
|
|
Does 0.3dl And 0.3.7 Functions Added Together In OMP |
Posted by: AwayTitan098 - 2023-02-21, 12:10 AM - Forum: Chat
- Replies (2)
|
|
Guys Does 0.3DL And 0.3.7 Combined In Open.mp If Yeah Then Can I Use 0.3dl functions Like AddCharMode
Edit:- It Would Be Nicer Of OMP Team If They Added Custom Textdraw Like Adding Png Or Textures In Textdraw Also Some Animations In Textdraw Like FiveM (Not Exact) If Its Possible.🙂
|
|
|
Sending message to Discord |
Posted by: Kox - 2023-02-19, 12:35 PM - Forum: Tutorials
- Replies (1)
|
|
Hi,
This tutorial aims to give you a basic example about how to use a webhook to send message from your OpenMP/SA-MP server into a discord channel.
Requirements :
1) Install pawn-requests package on your server- Install the package with sampctl or manually
2) Creating a Discord webhook
- Create text channel
- Click "Edit Channel" => Integrations => Create Webhook
- Click on the Webhook => Copy Webhook url (save it for later)
3) Send message from server
- Add requests include and create a RequestsClient with your webhook url
PHP Code: #include <requests>
new RequestsClient:client; main() { client = RequestsClient("replace with your webhookurl"); }
- Send message to discrod
PHP Code: public OnPlayerConnect(playerid) { new name[MAX_PLAYER_NAME + 1]; GetPlayerName(playerid, name, sizeof(name)); new string[MAX_PLAYER_NAME + 23 + 1]; format(string, sizeof(string), "%s has joined the server.", name); RequestJSON( client, "", HTTP_METHOD_POST, "OnPostJson", JsonObject( "content", JsonString(string) ) ); return 1; }
forward OnPostJson(Request:id, E_HTTP_STATUS:status, Node:node); public OnPostJson(Request:id, E_HTTP_STATUS:status, Node:node) { if(status == HTTP_STATUS_NO_CONTENT) { printf("successfully posted message"); } else { printf("failed to post message"); } }
Now when a player connect to the server, a message will be sent on the discord channel.
Credits
Southclaws for the requests package
Regards
|
|
|
State of the Game 2023 |
Posted by: wit - 2023-02-11, 01:54 PM - Forum: General Discussions
- No Replies
|
|
Hello.
Long-time SA:MPer, roleplayer, modder, server owner, and overall supporter of the broader community here returning after a sizeable hiatus.
As with most people floating back into the community after such a time -- and still without a central official forum via which to communicate -- I'm a little in the dark as to how alive the scene still is in 2023. I'm more than aware of the myriad of Middle Eastern and BRIC country communities still extant on the platform but my passion has always been the English language roleplaying scene.
Shortly after I last visited the community, mmartin's Los Santos Roleplay shut its SA:MP server in preparation for a GTA V multiplayer server that from my understanding has yet to materialise. Singleplayer Roleplay was doing well under Reyo and Dignity and has since merged with Red County Roleplay to form GTA Chronicles. The work they've put into revitalising the tired Los Santos environments of 2004 is unprecedented but I can't help but feel that it's a bit of a missed opportunity given the grander tech demos that came out of the SA:MP DL branch releases.
What is left? Is there some burgeoning roleplaying community that has escaped my notice or have most players whose PCs can handle it left for GTA V?
Is there any room left for innovation and newer communities on the platform? There were talks of Liberty City and Vice City roleplaying servers years back but from what I can see none of them survived or perhaps even made it to release at all.
Thanks for reading and thank you in advance for answering my many questions.
|
|
|
GTA SA DE is the future |
Posted by: NoxxeR - 2023-02-01, 08:52 PM - Forum: General Discussions
- Replies (3)
|
|
Why dont sa-mp team or open.mp team release open.mp or samp support for SA DE, I installed the game some year ago, and now tried it again, its better than regular san andreas.
And it looks cool with the white colors which sorround the players, this is cool:
https://www.youtube.com/watch?v=TtWxflUBlI0
GTA SA Defintive edition is the future, its based on the same engine as fortnite and people would pay money to play this online in years from now. Open MP is the future and can save people.
Theres even better grahpics in GTA SA DE than regular GTA san andreas, so what do the developers of open mp think? :)
Which road is open mp gonna take, I dont hang around on discord so I dont know what you chat about there.
|
|
|
There is a problem with the output of messages to the server console. |
Posted by: droffet_studio - 2023-01-29, 11:46 AM - Forum: Questions and Suggestions
- Replies (2)
|
|
Hello, there is a problem with outputting arrays from include to the server console. I am using visual studio code, windows 10 x64.
The essence is the following, I have an include in which there is a stock to return arrays with a parameter, similar to:
Code: stock GetNickName(playerid)
{
new string[MAX_PLAYER_NAME];
GetPlayerName(playerid, string, MAX_PLAYER_NAME);
return string;
}
I use windows encoding 1251 on the main script file of the server and on the include, in my code there are functions that, roughly speaking, output messages from the array directly to the server console, this is what happens:
Code: [2023-01-29T14:40:27+0300] [Info] [
[2023-01-29T14:40:27+0300] [Info] [
[2023-01-29T14:40:27+0300] [Info] Legacy Network started on port 7777
Instead of "[2023-01-29T14:40:27+0300] [Info] [" it should be "[БАЗА ДАННЫХ] reconnect 18 sec...".
I think the essence of the problem is clear, by the way - everything works fine on samp-server.exe, messages are output to the console on windows 1251 without any problems.
Здравствуйте, проблема с выводом массивов из инклуда в консоль сервера. Я пользуюсь visual studio code, windows 10 x64.
Суть следующая, у меня есть инклуд в котором есть stock для возвращения массивов с параметром, на подобии:
Code: stock GetNickName(playerid)
{
new string[MAX_PLAYER_NAME];
GetPlayerName(playerid, string, MAX_PLAYER_NAME);
return string;
}
Я использую кодировку windows 1251 на главном сценарном файле сервера и на инклуде, в моем коде есть функции, которые грубо говоря - выводят сообщения из массива прямо в консоль сервера, вот что получается:
Code: [2023-01-29T14:40:27+0300] [Info] [
[2023-01-29T14:40:27+0300] [Info] [
[2023-01-29T14:40:27+0300] [Info] Legacy Network started on port 7777
Вместо "[2023-01-29T14:40:27+0300] [Info] [" должно быть "[БАЗА ДАННЫХ] reconnect 18 sec...".
Думаю, суть проблемы ясна, к слову - на samp-server.exe работает все нормально, сообщения в консоль выводятся на windows 1251 без каких либо проблем.
|
|
|
Problem with compiler |
Posted by: MirzaTinjak - 2023-01-27, 10:53 PM - Forum: Pawn Scripting
- Replies (1)
|
|
Hi there.
I have one error message that i can't resolve:
Code: C:\Users\Mirza\Documents\Mirza\SAMP_server\SAMP_server\Server\qawno\include\YSI_Storage\y_ini\..\..\YSI_Core\y_core\y_core_entry.inc(120) : user error: YSI assumes `sNAMEMAX` is 31.
tasks.json for compiler settings, in VS Code:
Code: [color=#000000]{[/color][/font][/color]
[color=#000000] {
[/color]
"version": "2.0.0",
"tasks": [
{
"label": "build-normal",
"type": "shell",
"command": "${workspaceRoot}/Server/qawno/pawncc.exe",
"runOptions": {
"instanceLimit": 1,
},
"args": [
"${file}",
"-Dgamemodes",
"'-;+'",
"'-(+'",
"'-d3'",
"'-Z+'"
],
"group": {
"kind": "build",
"isDefault": true
},
"isBackground": false,
"presentation": {
"reveal": "always",
"panel": "dedicated"
},
"problemMatcher": {
"owner": "pawn",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": {
"regexp": "^(.*?)\\(([0-9]*)[- 0-9]*\\) \\: (fatal error|error|warning) [0-9]*\\: (.*)$",
"file": 1,
"location": 2,
"severity": 3,
"message": 4
}
}
}
],
[color=#000000]}[/color][color=#000000][font=Consolas, 'Courier New', monospace]
I include YSI like this:
Code: [/font][/color]
#include <open.mp>
#include <a_mysql>
#include <a_http>
#include <sscanf2>
#include <streamer>
#include <YSI_Storage\y_ini>
#include <YSI_Data\y_iterate>
#include <YSI_Coding\y_timers>
[color=#000000][font=Consolas, 'Courier New', monospace]
I try to modify compiler settings but I couldn't find any solution for it.
|
|
|
[OMP] Errors compiling |
Posted by: leoclose575 - 2023-01-27, 09:08 PM - Forum: Pawn Scripting
- Replies (3)
|
|
Hello, I tried to compile samp gamemode with open.mp and encountered errors and warning that I can't find anywhere in docs
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) ------> error 025: function heading differs from prototype
warning 213: tag mismatch: expected tag "t_KEY", but found none ("_")
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) ----------> error 025: function heading differs from prototype
GivePlayerWeapon(playerid, 31, 15); ------------------> warning 213: tag mismatch: expected tag "t_WEAPON", but found none ("_")
|
|
|
|