Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 7,501
» Latest member: ae888vnio
» Forum threads: 2,413
» Forum posts: 12,360
Full Statistics
|
Online Users |
There are currently 706 online users. » 1 Member(s) | 703 Guest(s) Bing, Google, swuffted
|
Latest Threads |
San Fierro Cops And Robbe...
Forum: Advertisements
Last Post: Dr0pp
Yesterday, 08:33 PM
» Replies: 0
» Views: 44
|
Adding new vehicles and s...
Forum: Programming
Last Post: __.A.__
2025-09-12, 07:47 PM
» Replies: 0
» Views: 70
|
Zona América del Sur Free...
Forum: Advertisements
Last Post: kevinberriosflores
2025-09-12, 02:16 PM
» Replies: 1
» Views: 98
|
Busco copia de gamemode S...
Forum: Spanish/Espa?ol
Last Post: briancristaldo2021
2025-09-11, 11:14 AM
» Replies: 0
» Views: 85
|
[Tutorial] Registrando o ...
Forum: Portuguese/Portugu?s
Last Post: Crazy_ArKzX
2025-09-09, 08:36 PM
» Replies: 0
» Views: 226
|
San Andreas Police Pursui...
Forum: Advertisements
Last Post: BriBri
2025-09-08, 10:09 PM
» Replies: 1
» Views: 312
|
Problem with plugins load...
Forum: Support
Last Post: MrKacu13
2025-09-08, 07:15 PM
» Replies: 9
» Views: 397
|
Compilation error
Forum: Pawn Scripting
Last Post: MrKacu13
2025-09-07, 07:18 AM
» Replies: 6
» Views: 378
|
Need help, problem when i...
Forum: Programming
Last Post: nonickowned
2025-09-06, 06:21 PM
» Replies: 0
» Views: 162
|
Transfer server from SAMP...
Forum: Support
Last Post: MrKacu13
2025-09-06, 04:03 PM
» Replies: 1
» Views: 265
|
|
|
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: Programming
- 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.
|
|
|
Command convert zcmd |
Posted by: nbx2000 - 2021-03-13, 06:12 PM - Forum: Pawn Scripting
- Replies (1)
|
 |
I have tried to change to zcmd and there is no command, they help me to convert it to zcmd only
Code: public OnPlayerCommandText(playerid, cmdtext[])
{
? ? new string[256], cmd[256], tmp[256], giveplayerid, idx;
? ? cmd = strtok(cmdtext, idx);
? ? if(strcmp(cmd, "/duel", true) == 0)
{
if(PlayerInDuel[playerid] == 1) return SendClientMessage(playerid, -1, "You are already in a duel");
if(DuelPlaceVisit) return SendClientMessage(playerid, -1, "Wait until the duel becomes free.");
tmp = strtok(cmdtext, idx);
? if(!strlen(tmp)) return SendClientMessage(playerid, -1, "duel [player id] [weapon id] [stake]");
? giveplayerid = strval(tmp);
? tmp = strtok(cmdtext, idx);
? if(!strlen(tmp)) return SendClientMessage(playerid, -1, "Usage: / duel [player id] [weapon id] [stake]");
? WeaponDuel = strval(tmp);
? if(WeaponDuel < 0 || WeaponDuel > 42) return SendClientMessage(playerid, -1, "You entered the wrong weapon id. Use id from 0 to 42");
? tmp = strtok(cmdtext, idx);
? if(!strlen(tmp)) return SendClientMessage(playerid, -1, "Usage: / duel [player id] [weapon id] [stake]");
? MoneyDuel = strval(tmp);
? if(MoneyDuel < 100 || MoneyDuel > 1000) return SendClientMessage(playerid, -1, "You entered the wrong bet amount. Use an amount from $ 1 to $ 100,000");
? if(MoneyDuel > GetPlayerMoney(playerid)) return SendClientMessage(playerid, -1, "You are missing a bet. Specify a different amount");
if(MoneyDuel > GetPlayerMoney(giveplayerid)) return SendClientMessage(playerid, -1, "Your opponent is missing a bet. Specify a different amount!");
if(IsPlayerConnected(giveplayerid))
? {
? ? ? if(playerid == giveplayerid) return SendClientMessage(playerid, -1, "You cannot apply this action to yourself.");
? if(PlayerInDuel[giveplayerid] == 1) return SendClientMessage(playerid, -1, "This player is already in a duel..");
? ? GetDuelCreate[giveplayerid] = playerid;
? ? ? ? format(string, sizeof(string), "You have successfully invited player {9DDAF2}%s {FFFFFF} to a duel! Wait for an answer", pNick(giveplayerid));
? ? ? ? SendClientMessage(playerid, -1, string);
? ? ? ? format(string, sizeof(string), "{ff0000}You Have Challenged %s To A 1v1 Duel!\nInfo Duel Weapon(id): %d Bet:$ %d !", pNick(playerid), WeaponDuel, MoneyDuel);
? ? ? ? ShowPlayerDialog(giveplayerid, DUEL_ID, DIALOG_STYLE_MSGBOX, "{ff0000}[xEF]DUEL", string, "Accept", "Decline");
? ? ? }
? else
? {
? SendClientMessage(playerid, -1, "The player with the ID you specified was not found");
? }
? return 1;
}
return 0;
}
|
|
|
|