Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 6,511
» Latest member: snaptrap
» Forum threads: 2,233
» Forum posts: 12,034

Full Statistics

Online Users
There are currently 115 online users.
» 2 Member(s) | 109 Guest(s)
Bing, Google, Yandex, DuckDuckGo, Daco, minorusora

Latest Threads
I humor myself
Forum: Programming
Last Post: nami16504
2 hours ago
» Replies: 5
» Views: 8,037
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: 60
Il reste des français sur...
Forum: French/Fran?ais
Last Post: tysanio
2024-11-18, 05:39 AM
» Replies: 2
» Views: 467
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: 74
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: 470
Modeller wanted
Forum: Development Updates
Last Post: acc.gangbeni
2024-11-11, 05:10 PM
» Replies: 9
» Views: 16,505

 
  Problem with OnPlayerEditDynamicObject()
Posted by: sergejgamehd - 2023-06-11, 09:34 AM - Forum: Pawn Scripting - Replies (1)

I made a command /create that help's me with Dynamic Systems, so when the owner of the server wants to create something he uses /create, picks what he wants and clicks create. When he clicks create it should create the object and let him edit the dynamic object, but the problem that happens is that the OnPlayerEditDynamicObject() immediately calls the 'case: EDIT_RESPONSE_CANCEL:'.

Here's the code for when the player clicks create:

Code:
//FISH  obj id: 1605
editaRiba[playerid] = NewID(2);
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
fish[editaRiba[playerid]] = CreateDynamicObject(1605, X, Y, Z, 0.0, 0.0, 0.0, -1, -1, -1,300.0,300.0);
EditDynamicObject(playerid, fish[editaRiba[playerid]]);
HideObjCreationPTD(playerid);

 


  AttachTrailerToVehicle Bug
Posted by: Torque - 2023-06-06, 05:56 PM - Forum: Pawn Scripting - No Replies

Hello, perhaps I'm just doing it wrong but when I use AttachTrailerToVehicle the trailer just keeps reattaching itself over and over again. Even if it's a Utility Trailer and Utility Van. They hook up fine as they do in single player, but if I use the function to connect them, it doesn't stay connected and just keeps making the noise every 500ms.

Is there a way to do this? Because I'd like to attach the utility trailer to a Huntley or something but I'm unable too.


  PlayAudioStreamForPlayer URL
Posted by: Torque - 2023-06-03, 02:04 AM - Forum: Pawn Scripting - Replies (1)

Is there a way to hide the URL that prints out when you run PlayAudioStreamForPlayer?


  High consumption of MEM%
Posted by: mariaaguirrenp - 2023-05-31, 12:36 PM - Forum: Programming - Replies (1)

Hi everyone, a pleasure to use this Forum.

I came with a question or query if you can help me solve it. The question is the following, first I put them in context.
I have a SA:MP server, when I use the TOP console command in Linux, as you know, it gives me the statistics of the server's operation, I have noticed that "MEM%" is very high.
To be specific, if I completely restart the server and restore these values to almost 0, it is possible that in no more than 10 days the consumption of MEM% reaches 20%.

My question is the following. Is this normal? What is this due to? Is there a way to know that I consume so much?

I went through all my GM code and optimized various things, but this is still the same. He's not a very big GM either.
Could it be MySQL? Since it uses and saves queries in CACHE.

I will be waiting for your answers, thank you very much!


  how to set timer when player logout?
Posted by: naufalikbal00783 - 2023-05-30, 02:38 AM - Forum: Pawn Scripting - No Replies

Hi, I apologize if my English is not very good, I use a translator. I want to ask, I want to make a spawn system, if the player has logged out beyond the specified time, he cannot choose the last spawn. How do I set the timer?


  Server creating help
Posted by: [I]ncognito - 2023-05-26, 08:00 AM - Forum: Programming - Replies (1)

Hello!!
Guys can anyone send me complete guidance for creating server of SAMP,
From 0 level to Pro level
Any Youtube video or any link from where i can learn everything...
Please could be thankful to you all!!


  I need a code to find the name and check its existence in the database.
Posted by: imnikolaidev - 2023-05-24, 09:20 PM - Forum: Pawn Scripting - No Replies

I need a code to find the name and check its existence in the database, but I don't know what is the best code for this task so that it works at the highest possible speed and is optimal.

Sorry for my bad english ;)

Witch one is better?

Code:
Std::MySQLCheckAccount(const name[]) {
new Query[128];
format(Query, sizeof(Query), "SELECT 1 FROM `users` WHERE `username`='%s' LIMIT 1", name);
mysql_tquery(gMySQL, Query, "OnMySQLCheckAccount");
return true;
}
Void::OnMySQLCheckAccount() {
switch cache_num_rows() do {
case false: return print("Not find");
default: return print("Find");
}
}


Or

Code:
Std::MySQLCheckAccount2(const name[]) {
inline const checkAccount() {
switch cache_num_rows() do {
case false: return print("Not find");
default: return print("Find");
}
}
MySQL_PQueryInline(gMySQL, using inline checkAccount, "SELECT `username` FROM `users` WHERE `username` = '%s' LIMIT 1", name);
return true;
}


Exclamation I need help. Got back into PAWN scripting after years of inactivity
Posted by: LincolnClay - 2023-05-19, 01:34 PM - Forum: Pawn Scripting - No Replies

Hey everybody, i've been a PAWN scripter in the ancient times when YSI 3.0 and foreach were the top notch stuff. Decided to get back and start working on my old gamemode again. The gamemode is ANCIENT and of course i'm getting a bunch of errors when using the community pawn compiler and when i try to update to YSI 5.x. I know about foreach being discontinued and i replaced all foreach(Player, i); in my script to foreach( new i = player); and i've changed OnPlayerCommandPerformed, but i'm getting Y_INI errors. Have any Y_INI saving and loading functions changed that i'm not aware of ? I'm sorry for asking these dumb questions, i've been out of the loop for years.


Code:
[/b]
[b]D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Data\y_foreach\y_foreach_iterators.inc(862) : warning 219: local variable "X" shadows a variable at a preceding level[/b]
D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Data\y_foreach\y_foreach_iterators.inc(862) : warning 219: local variable "Y" shadows a variable at a preceding level
D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Data\y_foreach\y_foreach_iterators.inc(862) : warning 219: local variable "Z" shadows a variable at a preceding level
D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Storage\y_ini\..\..\YSI_Coding\y_inline\..\y_va\y_va_entry.inc(165) : error 035: argument type mismatch (argument 4)
D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Storage\y_ini\..\..\YSI_Coding\y_inline\..\y_va\y_va_entry.inc(174) : error 035: argument type mismatch (argument 2)
D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Storage\y_ini\..\..\YSI_Coding\y_inline\..\y_va\y_va_entry.inc(183) : error 035: argument type mismatch (argument 3)
D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Storage\y_ini\..\..\YSI_Coding\y_inline\..\y_va\y_va_entry.inc(192) : error 035: argument type mismatch (argument 2)
D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Storage\y_ini\..\..\YSI_Coding\y_inline\..\y_va\y_va_entry.inc(201) : error 035: argument type mismatch (argument 3)
D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Storage\y_ini\..\..\YSI_Coding\y_inline\..\y_va\y_va_entry.inc(264) : error 035: argument type mismatch (argument 1)
D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Storage\y_ini\..\..\YSI_Coding\y_inline\..\y_va\y_va_entry.inc(361) : error 035: argument type mismatch (argument 1)
D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Storage\y_ini\..\..\YSI_Coding\y_inline\..\y_malloc\y_malloc_warning.inc(7) : warning 237: user warning: y_malloc heap allocation is unstable.  Use `YSI_NO_HEAP_MALLOC` to disable it, or `YSI_YES_HEAP_MALLOC` to disable this warning: git.io/YSI_HEAP_MALLOC
D:\[b]mod[/b]\pawno\include\YSI-Includes\YSI_Visual\y_commands\y_commands_impl.inc(220) : error 025: function heading differs from prototype
D:\mod\gamemodes\moddd.pwn(98) : warning 201: redefinition of constant/macro (symbol "SCM")
D:\[b]mod[/b]\gamemodes\moddd.pwn(1504) : error 021: symbol already defined: "DONT_USE_SCM"
D:\[b]mod[/b]\gamemodes\moddd.pwn(25291) : error 025: function heading differs from prototype

[b]


Exclamation Need help fixing a minigame (payd).
Posted by: Tixxt - 2023-05-19, 09:16 AM - Forum: Support - No Replies

Hi guys!

My first post but its a good one.. lol.
Im working on my freeroam server (its online/hosted). But i have a problem with the Fallout minigame. Most of the time not all the tiles spawn. And players fall to the ground right after the minigame started. Sometimes all the tiles do spawn. Does someone know how to fix this problem?

The one that can fix this will be rewarded via paypall..
Contact me via this thread or discord.

Greetz Tixxt.


Exclamation ERROR SAMPCTL
Posted by: DevianTyr - 2023-05-17, 05:14 AM - Forum: Pawn Scripting - No Replies

DELETED