Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 7,247
» Latest member: JamesT
» Forum threads: 2,378
» Forum posts: 12,290
Full Statistics
|
Online Users |
There are currently 331 online users. » 0 Member(s) | 328 Guest(s) Yandex, Bing, Google
|
|
|
[Solved] Selecting and Editing object problem |
Posted by: Radical - 2021-01-16, 01:43 AM - Forum: Pawn Scripting
- Replies (7)
|
 |
SOLUTION:?
Use streamer v2.9.4.
1: OnPlayerEditObject/OnPlayerEditDynamicObject response is EDIT_RESPONSE_UPDATE
Recently, a bug was found on the server that when we edit objects, the objects return to where they were created after a few seconds.
I do not know why in OnPlayerEditObject/OnPlayerEditDynamicObject the 'response' is EDIT_RESPONSE_UPDATE.
The response should be EDIT_RESPONSE_FINAL to solve.
2: SelectObject function is not working for dynamic objects.
When I select the object, the OnPlayerSelectDynamicObject is not called.
Why?
What is your solutions? Thank u.
|
|
|
Compiler stops with no message |
Posted by: Torque - 2021-01-16, 12:55 AM - Forum: Pawn Scripting
- Replies (3)
|
 |
So I've just removed a whole bunch of script that wasn't being used in my game mode, or that I didn't want to have any more.
I knew that by doing this I would get errors (I've removed 10's of thousands of lines of script).
This would have been ok, as I would have gone through and corrected everything. However, when I compile the script, the compiler just stops, and I get the compiler output window but with no text at all.
What is the likely issue to cause the compiler to stop abruptly and output nothing?
|
|
|
[HELP] Invalid string value on MySQL. |
Posted by: Smyle - 2021-01-16, 12:07 AM - Forum: Pawn Scripting
- Replies (2)
|
 |
Hey, yall. So i was trying to make some records inside of a MySQL table and i must use special characters (?, ?, ?, ?, etc). The issue is that when i try to insert a new row into the table with that special characters these special characters just returns to me this following error:
Code: Incorrect string value: '\xE7\xE3o de...'
Note: \xE7 matches to '?' and \xE3 matches to the '?' character.
I've already tried to change my collate and character set on MySQL to utfmb4, utf8, latin1, etc. but nothing works. Also i tried to use mysql_escape_string and also tried to use %e instead of %s when manipulating this string whit the special characters. But nothing seems to change.
Code: ? ? mysql_format(DBConn, Query, 500, "INSERT INTO %s (Data, Registro) VALUES ('%d', '%s')", tableName, timestamp, msg);
? ? mysql_query(DBConn, Query);
Note?: When printing the same format i am using to query, everything shows up fine as expected in the console.
|
|
|
server commands |
Posted by: Funkar69 - 2021-01-14, 10:32 PM - Forum: Pawn Scripting
- Replies (1)
|
 |
i'm trying to make a /commands with dialog list and I'm suffering how to make a list.
instead of Item 1 there should be Server commands and then it would up another dialog containing another box which would be basic command something like that.
https://imgur.com/RwsbxUd
|
|
|
Yn'il SA:MP Server |
Posted by: .coke42O - 2021-01-13, 03:54 PM - Forum: Art
- Replies (1)
|
 |
Hello people. I went to present you a logo from my SA:MP server. Otherwise I'm not a designer.
|
|
|
IsDynamicActorStreamedIn always returns 0 |
Posted by: c4p - 2021-01-13, 03:26 PM - Forum: Pawn Scripting
- Replies (2)
|
 |
Hey. In my mod there is a system which creates shop actors if a player goes inside, and destroys them when everybody went out.
Or at least that's the goal. Creating the actor works fine, as the mod detects if the actor is already created and doesnt spawn it again, etc.
But if anybody leaves the shop and my custom function gets called, the shop actor gets deleted immediately, no matter if someone else got the actor streamed in.
My code:
Code: DestroyShopActorIfUnstreamed(virtualworldid)
{
? ? if (!IsValidDynamicActor(shopactor[virtualworldid])) return 1;
for(new i = 0; i < MAX_PLAYERS 1; i)
? ? {
? ? ? ? if (IsDynamicActorStreamedIn(shopactor[virtualworldid], i))
? ? ? ? {
? ? ? ? ? ? print("streamed");
? ? ? ? ? ?break;
? ? ? ? }
? ? printf("shopactor %i deleted", virtualworldid);
? ? DestroyDynamicActor(shopactor[virtualworldid]);
? ? }
return 1;
}
I know i messed up something with the code
|
|
|
|