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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,961
» Latest member: walid_dz
» Forum threads: 2,412
» Forum posts: 12,332

Full Statistics

Online Users
There are currently 547 online users.
» 0 Member(s) | 545 Guest(s)
Google, Bing

Latest Threads
Open Multiplayer ✅ loggin...
Forum: Pawn Scripting
Last Post: walid_dz
5 hours ago
» Replies: 0
» Views: 16
Argonath RPG SA:MP Reviva...
Forum: Advertisements
Last Post: Melon_Sam
2026-03-03, 06:37 PM
» Replies: 1
» Views: 92
RevolutionX DM/Stunt/Race...
Forum: Advertisements
Last Post: DerekZ905
2026-03-02, 02:46 PM
» Replies: 0
» Views: 47
Consulta warning mismatch...
Forum: Programaci?n
Last Post: carlosmcgrimes
2026-03-01, 04:26 PM
» Replies: 1
» Views: 131
Streamer Plugin v3.0.0 — ...
Forum: Plugins
Last Post: carlosmcgrimes
2026-03-01, 02:15 PM
» Replies: 0
» Views: 78
MAP Hot Loader / Map Mana...
Forum: Libraries
Last Post: selmir.beha
2026-02-28, 05:13 AM
» Replies: 0
» Views: 54
[Request] Linko Gaming Ro...
Forum: General Discussions
Last Post: lyly19
2026-02-25, 04:30 AM
» Replies: 1
» Views: 738
IPv6 support
Forum: Questions and Suggestions
Last Post: Knogle
2026-02-22, 01:16 PM
» Replies: 2
» Views: 219
GTA San Andreas - The mov...
Forum: Chat
Last Post: NoxxeR
2026-02-20, 12:14 AM
» Replies: 0
» Views: 158
Servidor RP
Forum: Portuguese/Portugu?s
Last Post: GhostSpectre
2026-02-18, 11:10 PM
» Replies: 0
» Views: 116

 
  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;

}


  samp-admin-system
Posted by: Emmett - 2021-03-13, 04:01 AM - Forum: Libraries - Replies (1)

WIP - https://github.com/emmett-white/samp-admin-system


  [Ajuda] Jogadores mobile
Posted by: Will_33 - 2021-03-13, 01:54 AM - Forum: Portuguese/Portugu?s - Replies (2)

Fala galera, estou hosteando um servidor tdm e o primeiro problema que tive com os players que vem do android foi que estes estavam invulner?veis. Colocando lagcomp 1 resolveu o problema, mas agora muitos destes crasham direto, alguns aleat?riamente, alguns quando morrem. Existe alguma lista de scripts que causam crash dos mobile?


  Help with sampctl and Docker
Posted by: robertocaribbean - 2021-03-12, 07:28 PM - Forum: Support - Replies (3)

Hi there,

sampctl works perfectly in my local machine, but when I try to use the power of Docker, I'm facing with an error.

Steps I followed:

  • Enable virtualization on BIOS and Hyper-v on Windows 10.
  • Install Docker Desktop
  • Add my administrator account to docker-users group.
  • Pull sampctl from docker hub.

Now, the problem is when I try to initialize a package like so:

Code:
docker run southclaws/sampctl package init

I get this error (I think is better if I share an image):
[Image: mCNzFhH.png]

Already tried:
  • Clean / Purge data from Docker Desktop.
  • Reinstall Docker Desktop.
  • Use another sampctl version, but throws that I need the last recent version.

EDIT: Well, I'm trying with a ubuntu image, downloaded sampctl and all works fine. But when I try "sampctl package build" throws an error
Code:
failed to compile package entry: exit status 255
This happens with others compiler version as well.

SOLUTION: If you've been troubled with the same error, run:
Code:
apt-get install gcc gcc-multilib make cmake


  0.3.DL connections for 0.3.7 Server
Posted by: 2PAC_ - 2021-03-12, 02:20 PM - Forum: Pawn Scripting - No Replies

How Can I allow 0.3.DL client connection to 0.37 server?

I tried?GitHub - AGraber/samp-dl-compat: Allow 0.3.DL-R1 connections to SA-MP 0.3.7 servers?but this include not work for pawn.raknet's 1.4.1? version


  Script: error 018: initialization data exceeds declared size
Posted by: RhaegarX - 2021-03-12, 01:58 PM - Forum: Pawn Scripting - Replies (4)

I am developing an event system that will have some customizations, and I started with the following data structure.

However, when the compiler is giving the following error:?(52) : error 018: initialization data exceeds declared size





Code Pawn - Pastebin.com





I am trying to find the solution, but I have no idea how to solve it.


  help convert zcmd and sscanf
Posted by: nbx2000 - 2021-03-12, 04:56 AM - Forum: Pawn Scripting - Replies (1)



can someone help me convert this command to zmcd and sscanf


Code:
[/font][/size][/color]

#include <a_samp>

#define DIALOG_DUEL 24245

new bool:InvitedDuel[MAX_PLAYERS];

new IdDuel[MAX_PLAYERS];

new bool:UsingArena;

new Counting = 5;

new CountDueling[5][5] ={"~r~1","~b~2","~p~3","~y~4","~g~5"};

forward ExecuteCount(playerid,pid);

public ExecuteCount(playerid,pid)

{

? ? if (Counting > 0)

? ? {

? ? ? ? GameTextForPlayer(playerid,CountDueling[Counting-1], 2500, 3);

? ? ? ? GameTextForPlayer(pid,CountDueling[Counting-1], 1000, 3);

? ? ? ? Counting--;

? ? ? ? SetTimerEx("GoDuel",1000,false,"ii",playerid,pid);

? ? }

? ? else

? ? {

? ? ? ? GameTextForPlayer(playerid,"~>~~g~Go~w~Go~r~Go~b~Go~<~", 2500, 3);

? ? ? ? GameTextForPlayer(pid,"~>~~g~Go~w~Go~r~Go~b~Go~<~", 2500, 3);

? ? ? ? Counting = 5;

? ? ? ? TogglePlayerControllable(playerid,true);

? ? ? ? TogglePlayerControllable(pid,true);

? ? }

? ? return 1;

}





public OnPlayerCommandText(playerid, cmdtext[])

{

? ? new cmd[128];

? ? new idx;

? ? new id;

? ? cmd = otherplayerids(cmdtext, idx);

? ? if(!strcmp("/duel", cmd, true))

? ? {

? ? ? ? new tmp[128];

? ? ? ? new string[128];

? ? ? ? tmp = otherplayerids(cmdtext, idx);

? ? ? ? id = strval(tmp);

? ? ? ? if(InvitedDuel[playerid] == true) return SendClientMessage(playerid,0xF41917AA,"??[DUEL]?? : Have you invited someone, wait Expire Invitation");

? ? ? ? if(UsingArena == true) return SendClientMessage(playerid,0xF41917AA,"??[DUEL]?? : At the time the Arena is Being Used");

? ? ? ? if(!strlen(tmp)) return SendClientMessage(playerid,0xF41917AA,"??[DUEL]?? : You must enter the ID of the player following the Way (/duel [playerid])");

? ? ? ? if(id == playerid) return SendClientMessage(playerid,0xF41917AA,"??[DUEL]?? : You can not invite the Self");

? ? ? ? if(InvitedDuel[id] == true) return SendClientMessage(playerid,0xF41917AA,"??[DUEL]?? : Currently the player is in a Duel, wait..");

? ? ? ? new name[MAX_PLAYER_NAME];

? ? ? ? GetPlayerName(playerid, name, sizeof(name));

? ? ? ? format(string, sizeof(string), "??[DUEL]?? : %s This inviting you to a \n Duel Runing (Press Accept to Accept Duel)",name);

? ? ? ? ShowPlayerDialog(id,DIALOG_DUEL,DIALOG_STYLE_MSGBOX,"??[DUEL]?? :",string,"Accept", "No");

? ? ? ? GameTextForPlayer(id,"~r~DUE~w~LO !", 2500, 3);

? ? ? ? InvitedDuel[id] = true;

? ? ? ? IdDuel[id] = playerid;

? ? ? ? SetTimerEx("ExpireDuel",15000,false,"ii",id,playerid);

? ? ? ? return 1;

? ? }

? ? return 0;

}





forward GoDuel(playerid,pid);

public GoDuel(playerid,pid)

{

? ? //-> Go To? X1 <-//

? ? //SetPlayerPos

? ? //SetPlayerArmor

? ? //SetPlayerHealth



? ? //-> Functions for Count x1<-//

? ? TogglePlayerControllable(playerid,false);

? ? TogglePlayerControllable(pid,false);

? ? ExecuteCount(playerid,pid);

? ? return 1;

}





forward ExpireDuel(playerid,pid);

public ExpireDuel(playerid,pid)

{

? ? if(UsingArena == false)

? ? {

? ? ? ? SendClientMessage(pid,0x1DF6F6AA,"??[DUEL]?? : Expired challenge, He Refused");

? ? ? ? SendClientMessage(playerid,0x1DF6F6AA,"??[DUEL]?? : Expired challenge, you automatically refuse");

? ? ? ? InvitedDuel[pid] = false;

? ? ? ? InvitedDuel[playerid] = false;

? ? ? ? IdDuel[playerid] = playerid;

? ? ? ? IdDuel[pid] = pid;

? ? }

? ? return 1;

}





otherplayerids(const string[], &index)

{

? ? new length = strlen(string);

? ? while ((index < length) && (string[index] <= ' '))

? ? {

? ? ? ? index;

? ? }

? ? new offset = index;

? ? new result[20];

? ? while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))

? ? {

? ? ? ? result[index - offset] = string[index];

? ? ? ? index;

? ? }

? ? result[index - offset] = EOS;

? ? return result;

}





public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

{

? ? if(dialogid == DIALOG_DUEL)

? ? {

? ? ? ? if(!response) return ExpireDuel(playerid,IdDuel[playerid]);

? ? ? ? if(response)

? ? ? ? {

? ? ? ? ? ? UsingArena = true;

? ? ? ? ? ? new name[MAX_PLAYER_NAME], string[44];

? ? ? ? ? ? GetPlayerName(playerid, name, sizeof(name));

? ? ? ? ? ? format(string, sizeof(string), "??[DUEL]?? : %s accepted the challenge, wait 8 seconds to go to Duel.",name);

? ? ? ? ? ? SendClientMessage(IdDuel[playerid],0xF6F600AA,string);

? ? ? ? ? ? SendClientMessage(playerid,0xF6F600AA,"??[DUEL]?? : You accepted the Duel Wait 8 seconds to process your Data");

? ? ? ? ? ? SetTimerEx("GoDuel",8000,false,"ii",playerid,IdDuel[playerid]);

? ? ? ? }

? ? ? ? return 1;

? ? }

? ? return 1;

}





public OnPlayerDeath(playerid, killerid, reason)

{

? ? if(InvitedDuel[killerid] == true)

? ? {

? ? ? ? new Float:healthkiller;

? ? ? ? new namekiller[24],namedeather[24],string[44];

? ? ? ? GetPlayerName(killerid, namekiller, 24);

? ? ? ? GetPlayerName(playerid, namedeather, 24);

? ? ? ? GetPlayerHealth(killerid,healthkiller);

? ? ? ? format(string, sizeof(string), "??[DUELO]?? : %s Wins Duel of %s how %0.0f off Armour and Health",namekiller,namedeather,healthkiller);

? ? ? ? SendClientMessageToAll(0xF600F6AA, string);

? ? ? ? InvitedDuel[killerid] = false;

? ? ? ? InvitedDuel[playerid] = false;

? ? ? ? IdDuel[playerid] = playerid;

? ? ? ? IdDuel[killerid] = killerid;

? ? ? ? UsingArena = false;

? ? ? ? healthkiller = 0;

? ? ? ? SpawnPlayer(killerid);

? ? }

? ? return 1;

}

[color=#000000][size=small][font=Monaco, Consolas, Courier, monospace]


  GTA:SA's mission passed sound ID?
Posted by: 2PAC_ - 2021-03-11, 07:46 PM - Forum: Pawn Scripting - Replies (1)

Does anyone knows GTA:SA's mission passed sound ID?



I need this.


  Problem with OnPlayerDeath
Posted by: destiezk - 2021-03-11, 06:44 PM - Forum: Support - Replies (4)

Dear everyone,



I've been facing this issue for almost 2-3 months which I can NOT solve by myself.

The problem is that OnPlayerDeath is not really running correctly. I have a modified hitbox on my server which modifies the damage, and idk if it could be the problem.

The problem is: Randomly when you die, an irritating bug appears which is after you die, your character can stand up and shoot finely for like 1-2 seconds, and then dies, but the funniest is that my code at OnPlayerDeath runs correctly, just suddenly this appears.

I tried to solve it multiple ways, like putting a check if the player is ONFOOT at the end of OnPlayerDeath, but didn't seem to fix my issue, and been stuck with this as I already mentioned for months.

Anyone faced this before?



Thank you in advance!