Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 326 online users. » 0 Member(s) | 324 Guest(s) Bing, Google
|
|
|
Server crash (INI_AddToBuffer) and Packet was modified problem |
Posted by: Godfather - 2020-11-04, 08:58 PM - Forum: Pawn Scripting
- No Replies
|
 |
I have this on online linux server and I'm getting errors for local files which is strange.
I guess he is trying to find .ini file of the user on?OnPlayerDisconnect but fails to process it somehow.
Code: [debug] Server crashed while executing script.amx
[debug] AMX backtrace:
[debug] #0 00000035 in INI_AddToBuffer (INI:file=52, name[]=@00000000 "", data[]=@01d43894 "0000001600676554") at <unknown file>:0
[debug] #1 000147f0 in ?? (... <13 arguments>) at C:\Users\test\Desktop\sampserver\pawno\include\YSI\y_ini.inc:1076
[debug] #2 00000035 in public OnPlayerDisconnect () at <unknown file>:0
Also other problem that I have sometimes on other server is people get reconnected. Here is an example of the log:
Code: Packet was modified, sent by id: *id*, ip: *ip*
|
|
|
Kyosaur's Plugin Development Guide |
Posted by: Bee - 2020-11-03, 06:19 PM - Forum: Tutorials
- Replies (1)
|
 |
Hey everyone,
I recently started learning about plugin development for SA:MP. I asked around for a good tutorial and a super awesome guy in Discord suggested me to take a look at Kyosaur's Plugin Development Guide. I read it and it is pretty amazing. He also suggested that someone should port over the guide to burgershot.gg. So here it is.
View in Github
Is it exactly the same?
The content is 99.9% same. 99.9% because some threads were removed and I couldn't link it. It was broken even in the original post. I updated the existing links and made some formatting changes while converting it into Markdown.
Why is it in Markdown?
I tried use the BB Code in Burgershot. It was messed up and insanely buggy. I kept losing content and had to start over again and again. Also, Why not in Markdown?
|
|
|
Discord Connector invalid message author. |
Posted by: XeroX - 2020-11-03, 04:47 PM - Forum: Pawn Scripting
- Replies (4)
|
 |
Hi,
it's been sometime since I last scritped for sa-mp. Anyway my problem is that DCC_GetMessageAuthor returns an invalid user and I'm not entirely sure why.
Plugin version is 0.3.3
PHP Code: public DCC_OnMessageCreate(DCC_Message:message)
{
new DCC_Channel:msgChannel;
DCC_GetMessageChannel(message, msgChannel);
new channelName[128];
DCC_GetChannelName(msgChannel, channelName, sizeof(channelName));
printf("channelName: %s", channelName);
if(strcmp(channelName, "sa-mp", true, 5) == 0)
{
new DCC_User:author;
DCC_GetMessageAuthor(message, author); // This always fails
if(author == DCC_INVALID_USER)
{
print("Invalid User");
return;
}
new bool:IsBot, bool:IsVerified;
DCC_IsUserBot(author, IsBot);
DCC_IsUserVerified(author, IsVerified);
new authorName[DCC_USERNAME_SIZE];
DCC_GetUserName(author, authorName, sizeof(authorName));
printf("Author: %s | IsBot: %d | IsVerified: %d", authorName, IsBot, IsVerified );
if(!IsBot && IsVerified)
{
new string[128];
new authorMessage[128];
DCC_GetMessageContent(message, authorMessage, sizeof(authorMessage));
format(string, sizeof(string), "[Discord/%s]: %s", authorName, authorMessage);
SendClientMessageToAll(0x00C7FFAA, string);
}
}
}
|
|
|
OnServerCrashes callback? |
Posted by: Turk - 2020-11-03, 01:32 PM - Forum: Pawn Scripting
- Replies (1)
|
 |
Hello, OnGameModeExit callback note says that: (This callback will NOT be called if the server crashes or the process is killed by other means?pressing the close-button on the Windows console.) So how can I detect when server is crashes or has been killed? Is there a callback like?OnGamemodeCrashes or smth like that?
|
|
|
Searching Advisor |
Posted by: Palps - 2020-11-02, 10:14 PM - Forum: Chat
- Replies (3)
|
 |
Hey,
so I developed a server since June, its very unique
and of course selfmade. The only problem is, I really
dont know how to promote it nowadays.
Since the samp forum is down, there is a lack of advertisment-platforms.
Please contact me, if youre experienced in this area.
Discord: Tec9#3343
Server showoff: discord.gg/b28JTaC
Sincerly,
Palps
|
|
|
SKy Compatibility |
Posted by: Grate Maharlika - 2020-11-02, 05:45 PM - Forum: Pawn Scripting
- No Replies
|
 |
Somebody told me that the error I am facing in my SKY plugin is MSVC dll, but I don't know which one? Can you give me an specific .dll of MSVC or links? I am using Windows.
|
|
|
|