Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 7,523
» Latest member: Alik1212
» Forum threads: 2,416
» Forum posts: 12,368
Full Statistics
|
Online Users |
There are currently 380 online users. » 0 Member(s) | 379 Guest(s) Bing
|
|
|
Gas Station´s and Fuel Type |
Posted by: SpongeBOZZ - 2023-06-13, 07:45 PM - Forum: Pawn Scripting
- No Replies
|
 |
Hello Guys,
I´m currently scripting my own gamemode, but need help at one point.
I need a FS or codes, where cars have their own Fuel Type and Volume.
Also for gas station´s where prices of fuel types getting randomly.
Hope there is ppl that can help. ty
|
|
|
Banned for Nothing. |
Posted by: FrosT.123 - 2023-06-11, 06:48 PM - Forum: Support
- No Replies
|
 |
Hi, I joined the Open.mp discord a few months ago but suddenly I got banned from it for nothing. As far as I know I did nothing except advertising of a Samp Community. If it is not allowed than I didn't knew. Should be given a chance. Thanks!
|
|
|
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.
|
|
|
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;
}
|
|
|
|