| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 453 online users. » 0 Member(s) | 446 Guest(s) Google, Discord, Applebot, Bing, Yandex, Baidu, DuckDuckGo
|
| Latest Threads |
samp-essentials
Forum: Libraries
Last Post: 1NS
6 hours ago
» Replies: 0
» Views: 19
|
problem dialog clan membe...
Forum: Pawn Scripting
Last Post: selmir.beha
Today, 05:13 AM
» Replies: 2
» Views: 128
|
Unban
Forum: Chat
Last Post: stryzo125
Yesterday, 11:59 PM
» Replies: 2
» Views: 56
|
It has been a while
Forum: Chat
Last Post: Mauzen
Yesterday, 08:36 PM
» Replies: 0
» Views: 26
|
HWID BAN
Forum: Questions and Suggestions
Last Post: stryzo125
Yesterday, 03:27 PM
» Replies: 2
» Views: 1,891
|
Looking for Players for N...
Forum: Chat
Last Post: AlmightyJeremy
2026-02-04, 11:22 PM
» Replies: 0
» Views: 35
|
Manual sorting of servers...
Forum: Questions and Suggestions
Last Post: cherybomb
2026-02-04, 02:58 AM
» Replies: 2
» Views: 1,438
|
Project: Las Venturas Rol...
Forum: Advertisements
Last Post: Kremzy
2026-02-02, 10:14 PM
» Replies: 0
» Views: 61
|
Looking for Players for N...
Forum: Advertisements
Last Post: AlmightyJeremy
2026-02-02, 07:04 PM
» Replies: 0
» Views: 46
|
ExDM Reborn
Forum: Advertisements
Last Post: 0775448400
2026-02-02, 03:38 PM
» Replies: 1
» Views: 86
|
|
|
| Function Get ID by name |
|
Posted by: GospodinX - 2021-03-16, 01:34 PM - Forum: Pawn Scripting
- Replies (6)
|
 |
I have a function IDByName, as the name of the function says I want to get id by player name.
Function:
Code: IdByName(const name[])
{
new iPlayer,names[MAX_PLAYER_NAME];
iPlayer = 999;
foreach(new i : Player)
{
? ? GetPlayerName(i, names, sizeof(names));
? ? if(!strcmp(name, names, true))
? ? {
? ? ? ? iPlayer = i;
}
}
return iPlayer;
}
Example:
Code: ? new oie = IdByName(name);
if(IsPlayerConnected(oie)) //player is online and oie is his ID
{
//code
}
else //player is not online
{
//code
}
The function was work perfectly for me for a long time. But now when I have 200 players on my server function get bugged and many times when a player is connected function can't found them..
Have anyone ideas why it happened and how I can improve my function?
|
|
|
|
| I need Includes for my gamemode (roleplay) |
|
Posted by: McZulian - 2021-03-16, 12:17 AM - Forum: Support
- Replies (2)
|
 |
Hello, i'm McZulian
I'm trying to find some includes to add to my roleplay samp server but i'm not finding anything on google. Can someone send me a list of recommended includes to add?
I found some like walking-styles and eselection that add some awesome things to my server, also easydialog that makes it 100 times easier to do dialogs.
Thank you
|
|
|
|
| FIXED how do assemble the auction system logic with the samp function |
|
Posted by: PutuSuhartawan - 2021-03-15, 08:50 PM - Forum: Pawn Scripting
- No Replies
|
 |
Quote:// variabel auction for auction system
new BidPrice, HighestBidder, Itemofferings[50], CountDownAuction = 10, CountOfParticipants = 0, TimerLimitForAuction, AuctionRunning = 0, WinnerOfAuction[50], WinnerOfAuctionID, AuctionMartChartBoard;
https://github.com/PutuSuhartawan/Script...uction.pwn
already have a board that has been given the text, which is usually given a black texture. Now my question is what functions are needed so that many people who install these bits will appear the value with the highest bid on the board. So in public, what functions are needed for the logic to get this highest value bit?
|
|
|
|
| Custom Models Question |
|
Posted by: RoBy41 - 2021-03-15, 05:52 PM - Forum: Pawn Scripting
- Replies (2)
|
 |
I'd like to add custom skin models to the class selection, but once I add 20001 for example
AddPlayerClass(20001, 2511.1494,-1666.1211,13.5700,102.4142, 0, 0, 0, 0, 0, 0);
it shows up as CJ in the class selection?instead of the custom skin. How can I fix this?
|
|
|
|
| Having some errors anyone can help fix it? |
|
Posted by: Nelixus - 2021-03-15, 01:48 PM - Forum: Pawn Scripting
- Replies (1)
|
 |
Hey im getting these errors:
Code: C:\Users\MSI\Desktop\new LERG\gamemodes\LERG.LT.pwn(545) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\MSI\Desktop\new LERG\gamemodes\LERG.LT.pwn(545) : error 001: expected token: ")", but found ";"
C:\Users\MSI\Desktop\new LERG\gamemodes\LERG.LT.pwn(545) : error 036: empty statement
C:\Users\MSI\Desktop\new LERG\gamemodes\LERG.LT.pwn(545) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
at line:
Code: inline registracija(pid, did, resp, litem, input[])
any ideas why im getting?
|
|
|
|
| Having some errors anyone can help fix it? |
|
Posted by: Nelixus - 2021-03-15, 01:45 PM - Forum: Pawn Scripting
- Replies (2)
|
 |
Hey im getting these errors:
Code: C:\Users\MSI\Desktop\new LERG\gamemodes\LERG.LT.pwn(545) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\MSI\Desktop\new LERG\gamemodes\LERG.LT.pwn(545) : error 001: expected token: ")", but found ";"
C:\Users\MSI\Desktop\new LERG\gamemodes\LERG.LT.pwn(545) : error 036: empty statement
C:\Users\MSI\Desktop\new LERG\gamemodes\LERG.LT.pwn(545) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
at line:
Code: inline registracija(pid, did, resp, litem, input[])
any ideas why im getting?
|
|
|
|
| [SOLVED] spawned NPC just stands normally like an actor AFK in general |
|
Posted by: PutuSuhartawan - 2021-03-14, 11:13 AM - Forum: Pawn Scripting
- Replies (4)
|
 |
On top of OnPlayerConnect, OnPlayerRequestSpawn, and OnPlayerSpawn callbacks. Check the player is a NPC, then return 1.
PHP Code:
if(IsPlayerNPC(playerid)) return 1;
By doing this you are passing the NPC through the login or register.
That was working at my game mode. Thanks
Sorry, at first I managed to make the PLAYER_RECORDING_TYPE_ONFOOT NPC pawn on the server and it matches the .amx and .rec files in the NPC models. But why doesn't the NPC move like it's supposed to be exactly in the .rec file? But this spawned NPC just stands normally like an actor in general, even though if every teleportation to the NPC only changes its position and has become, sometimes the position is like at the beginning of .rec or in the final position .rec so strangely it looks like there is no animation of the path on the NPC. the.
|
|
|
|
| error 017: undefined symbol |
|
Posted by: Boxi - 2021-03-13, 08:41 PM - Forum: Pawn Scripting
- Replies (12)
|
 |
Hello everyone! i have the following problem. I have been translating a GM into Spanish, I have only touched the names of the commands and the messages that users see. When I finished translating it (after several days) I compiled the gm and I got this error?with the commands that I had translated (before it did not give any error)
Code: error 017: undefined symbol "cmd_colgar"
error 017: undefined symbol "cmd_colgar"//This is an example of one of them but it goes through more than 26 different commands.
It happens in any part of the code, regardless of the position where they are, they all give the same error. Does anyone know why? Thanks a lot.
|
|
|
|
|