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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,660
» Latest member: rodeon
» Forum threads: 2,347
» Forum posts: 12,288

Full Statistics

Online Users
There are currently 565 online users.
» 1 Member(s) | 561 Guest(s)
Bing, Google, Baidu

Latest Threads
How to Complete “Keeping ...
Forum: Questions and Suggestions
Last Post: rodeon
9 hours ago
» Replies: 0
» Views: 22
Ultimate Roleplay!!
Forum: Advertisements
Last Post: URP_Wrzosek
2025-11-03, 09:43 AM
» Replies: 2
» Views: 82
samp openmp scripts
Forum: German/Deutsch
Last Post: pauli
2025-11-01, 01:21 AM
» Replies: 0
» Views: 68
YGG-Reborn
Forum: Advertisements
Last Post: Mw10
2025-10-31, 08:12 AM
» Replies: 0
» Views: 69
[GameMode] Brasil Vida Id...
Forum: Portuguese/Portugu?s
Last Post: Brasil Vida Ideal
2025-10-31, 01:12 AM
» Replies: 0
» Views: 66
Grand Gang War (GGW)
Forum: Advertisements
Last Post: coladaciren
2025-10-30, 10:00 AM
» Replies: 0
» Views: 61
undefined symbol
Forum: Portuguese/Portugu?s
Last Post: leobradoks
2025-10-25, 08:58 PM
» Replies: 1
» Views: 1,631
SA:MP Custom Character Li...
Forum: General Discussions
Last Post: Dilshad
2025-10-22, 04:15 PM
» Replies: 0
» Views: 117
Anyone got old rp scripts...
Forum: General Discussions
Last Post: Bilal
2025-10-21, 01:02 PM
» Replies: 5
» Views: 5,361
Anyone has the SARP Gamem...
Forum: Gamemodes
Last Post: Bilal
2025-10-21, 12:59 PM
» Replies: 0
» Views: 185

 
  Error 025: function heading differs from prototype
Posted by: Ryder Sixz - 2020-11-11, 05:07 PM - Forum: Pawn Scripting - Replies (4)

Hello everyone! well I have a problem when adding a new include to my GameMode and it is that when compiling it throws me this error:??



Code:
\pawno\include\3DTryg.inc (1846): error 025: function heading differs from prototype

\pawno\include\3DTryg.inc(1846): error 021: symbol already defined: "JBC_GetPlayerSpeed"



The include adds new useful functions. And I have it below all the includes at the beginning of the code. Well, I would really appreciate knowing what I have to do to solve this problem. Greetings to all :D


  samp-logging | Log gamemode
Posted by: Mergevos - 2020-11-11, 03:27 PM - Forum: Libraries - Replies (1)

This library allow you to use few functions to log your gamemode.

Installation

Simply install to your project:

Code:
[/align]

[align=center]sampctl package install Mergevos/samp-logging[/align]

[align=center]

Include in your code and begin using the library:

Code:
[/align]

[align=center]#include <logging>[/align]

[align=center]

Important note

It does need a latest version of the community compiler. You can download it from here: https://github.com/pawn-lang/compiler

Usage

There're 4 functions. Since the last version has had params for line and file name, this one doesn't.

File and line are now automatically detected and it returns the full path to the file and line number.

This function logs an debug message.

Code:
[/align]

[align=center]Log_Debug(const handle[], const message[], Logging_Fields: ...)[/align]

[align=center]handle[] - Debug handle[/align]

[align=center]message[] - Text to log[/align]

[align=center]... - Other arguments (fields)[/align]

[align=center]

This function logs a fatal error. It ends server after being executed.

Code:
[/align]

[align=center]Log_Fatal(const handle[], const message[], Logging_Fields: ...)[/align]

[align=center]

This function logs a verbose message. It outputs amx backtrace via crashdetect.

Code:
[/align]

[align=center]Log_Verbose(const handle[], const message[], Logging_Fields: ...)[/align]

[align=center]

This function logs an info message.

Code:
[/align]

[align=center]Log_Info(const handle[], const message[], Logging_Fields: ...)[/align]

[align=center]

This function logs an error message.

Code:
[/align]

[align=center]Log_Error(const handle[], const message[], Logging_Fields: ...)[/align]

[align=center]

This function logs an usage message.

Code:
[/align]

[align=center]Log_Usage(const handle[], const message[], Logging_Fields: ...)[/align]

[align=center]

Testing

To test, configure pawn.json and simply run the package:

Code:
[/align]

[align=center]sampctl package run[/align]

[align=center]


  Acks limit
Posted by: Lorenzo - 2020-11-11, 02:40 PM - Forum: Pawn Scripting - No Replies

Hi, I'm trying to understand more about this topic because I can't find anything online.

Sometimes after death only for some players happens that they being banned for reaching the acks limit of 5000/sec. But it's not a deterministic thing and happens randomly. I tried testing?to?figuring out the problem but nothing.?

There is something to avoid inside the OnPlayerSpawn or OnPlayerDeath callbacks? Or could be also related to a server network issue because I'm using a very cheap VPS with low specs?

I'm using the 0.3DL with a lot of models and maps loaded, I don't know if could be part of the problem.


  Help with kill streack
Posted by: DaZzY - 2020-11-11, 02:07 PM - Forum: Pawn Scripting - Replies (4)

Hello?

i have kill streack on my server and i want to show a message who end a kill streack of someone?

example ( player1?ended streack of players 2 )



Quote:public OnPlayerDeath(playerid,killerid,reason)

{

new str[128];

new name[32];

GetPlayerName(killerid,name,32);





killstreak[killerid];

killstreak[playerid] = 0;





switch(killstreak[killerid])

{



case 3:

{



format(str,sizeof(str),""RED"[DM]"ORANGE" %s "GREY"is now "WHITE"Killing Spree"GREY"!!",name);

SendClientMessageToAll(-1,str);

}

case 5:

{

format(str,sizeof(str),""RED"[DM]"ORANGE" %s "GREY"is now "WHITE"Dominating!!"GREY"!!",name);

SendClientMessageToAll(-1,str);

}

case 6:

{

format(str,sizeof(str),""RED"[DM]"ORANGE" %s "GREY"is now "WHITE"UnStoppable!!"GREY"!!",name);

SendClientMessageToAll(-1,str);

}

case 7:

{

format(str,sizeof(str),""RED"[DM]"ORANGE" %s "GREY"is now "WHITE"Wicked Sick!!"GREY"!!",name);

SendClientMessageToAll(-1,str);

}

case 8:

{

format(str,sizeof(str),""RED"[DM]"ORANGE" %s "GREY"is now "WHITE"Monster like!!"GREY"!!",name);

SendClientMessageToAll(-1,str);

}

case 9:

{

format(str,sizeof(str),""RED"[DM]"ORANGE" %s "GREY"is now "WHITE"GOD LIKE!!"GREY"!!",name);

SendClientMessageToAll(-1,str);

}

case 10:

{

format(str,sizeof(str),""RED"[DM]"ORANGE" %s "GREY"is now "WHITE"Immortal!!"GREY"!!",name);

SendClientMessageToAll(-1,str);

SetPlayerArmour(killerid,100);

}

}

return 1;

}


  Pawno freezes upon compile
Posted by: Miki - 2020-11-11, 07:50 AM - Forum: Pawn Scripting - Replies (6)

The short story is i saved this gamemode i started writing from scratch and i wanted to check it out again and maybe script a little more, i set everything up, latest server files, latest plugins and includes but for some reason (i believe its compatibility or something because it works properly on win7) it freezes when i hit compile. I tried other gamemodes and for some reason it works for them. Now i also tried zeexs latest compiler and it gives me bunch of warnings which i'll list below, i tried #pragma compat 1 but that doesn't seem to work. The gamemode compiles to an amx but its corrupted and won't run.

Code:
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(443) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(700) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(700) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(700) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(784) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(784) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(784) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(790) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(790) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(790) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(795) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(809) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(809) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(809) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(816) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(816) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(816) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(823) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(823) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(823) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(831) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(831) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(831) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(831) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(837) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(837) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(837) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(837) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(843) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(843) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(843) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(843) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(997) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(997) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(997) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(1003) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(1003) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(1003) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(1085) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(1085) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(1085) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(1093) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(1093) : warning 239: literal array/string passed to a non-const parameter
C:\Users\colic\Desktop\samp_server\gamemodes\mfunserver.pwn(1093) : warning 239: literal array/string passed to a non-const parameter
Pawn compiler 3.10.10 Copyright (c) 1997-2006, ITB CompuPhase


45 Warnings.
EDIT:
Found the solution by googling the warning and a thread from this forum came up.


  [HELP]SetVehicleZAngle
Posted by: DiegoProgram - 2020-11-11, 07:07 AM - Forum: Programaci?n - Replies (2)

alguien tiene idea de porque cuando extraigo el angulo?del vehiculo (GetVehicleZAngle)

y intento cargarla me da una posicion en la que el auto no estaba?



me dijeron que hay que invertir los valores oh algo asi pero la verdad que ni idea...


Question Question about open.mp and SAxVCxLC
Posted by: vico - 2020-11-11, 04:15 AM - Forum: General Discussions - Replies (2)

Hello!



First things first: let me say i searched the forums but cant find anything remotely similar to what i'm going to ask. If indeed there are other similar threads and i wasn't able to find, i humbly sorry.



SAxVCxLC, which for those who don't know is a mod who add the landmasses of Vice City and Liberty City (GTA III) alongside (not replacing) San Andreas.



From their Readme:



Quote:Adds the GTA Vice City and Liberty City maps into GTA San Andreas. GTA SA remains fully playable and moddable: mods for SA work also with SAxVCxLC. SAxVCxLC is clean basis for modding by external mods.



I don't know what will be the stance of open.mp about support for TCs, so i'm here to ask if the devs have intentions, even for long term, to add some kind of support for this expanded gameworld, i mean a way to start a server and be able to, via pawn, interact with the other landmasses (place objects, teleport players, etc).



Particularly for me that would be a huge draw-in to make a server after all those years.



Thanks in advance for all your work with open.mp keeping the community alive!


Rainbow Help - Split MySQL
Posted by: wearLy - 2020-11-10, 01:54 PM - Forum: Pawn Scripting - No Replies

Everything goes well, except in the vehicle and accessory loops.







Code:
[color=#24292e][size=x-small][font=SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace]// MySQL:

g_MysqlRaceCheck[playerid];



// create orm instance and register all needed variables

new ORM: ormid = PlayerInfo[playerid][ORM_ID] = orm_create("player", mySQL_Server);



orm_addvar_int(ormid, PlayerInfo[playerid][pID], "id");

orm_addvar_string(ormid, PlayerName[playerid], MAX_PLAYER_NAME, "nome");

orm_addvar_string(ormid, PlayerInfo[playerid][pKey], 65, "senha");

orm_addvar_int(ormid, PlayerInfo[playerid][pLevel], "level");

orm_addvar_int(ormid, PlayerInfo[playerid][pExp], "respeitos");

orm_addvar_int(ormid, PlayerInfo[playerid][pConnectTime], "horas_jogadas");

orm_addvar_int(ormid, PlayerInfo[playerid][pCash], "dinheiro");

orm_addvar_int(ormid, PlayerInfo[playerid][pConta], "dinheiro_banco");

orm_addvar_int(ormid, PlayerInfo[playerid][pOuros], "ouros");

orm_addvar_int(ormid, PlayerInfo[playerid][pCashVip], "cash");

orm_addvar_int(ormid, PlayerInfo[playerid][pKills], "assassinatos");

orm_addvar_int(ormid, PlayerInfo[playerid][pDeaths], "mortes");

orm_addvar_int(ormid, PlayerInfo[playerid][pSkin], "skin");

orm_addvar_int(ormid, PlayerInfo[playerid][pPayDay], "timer_payday");

orm_addvar_int(ormid, PlayerInfo[playerid][pPegouVIP], "vip_pegou");



new string_save[355];

new string_read[18][60];

new string[50];

for(new carro; carro < MAX_PLAYER_CARROS; carro)

{

// Veiculo informa??es

format(string, sizeof string, "veiculo_%d", carro);

orm_addvar_string(ormid, string_save, sizeof (string_save), string);



split(string_save, string_read, '|');



PlayerConce[playerid][carro][conce_valid]? = strval(string_read[0]);

PlayerConce[playerid][carro][conce_model]? = strval(string_read[1]);

PlayerConce[playerid][carro][conce_pos][0] = floatstr(string_read[2]);

PlayerConce[playerid][carro][conce_pos][1] = floatstr(string_read[3]);

PlayerConce[playerid][carro][conce_pos][2] = floatstr(string_read[4]);

PlayerConce[playerid][carro][conce_pos][3] = floatstr(string_read[5]);

PlayerConce[playerid][carro][conce_health] = floatstr(string_read[6]);

PlayerConce[playerid][carro][conce_color][0] = strval(string_read[7]);

PlayerConce[playerid][carro][conce_color][1] = strval(string_read[8]);

PlayerConce[playerid][carro][conce_preco] = strval(string_read[9]);

PlayerConce[playerid][carro][conce_gasolina] = strval(string_read[10]);

PlayerConce[playerid][carro][conce_estacionado] = strval(string_read[11]);

PlayerConce[playerid][carro][conce_seguro] = strval(string_read[12]);

PlayerConce[playerid][carro][conce_alarme]? = strval(string_read[13]);

PlayerConce[playerid][carro][conce_date] = strval(string_read[14]);

PlayerConce[playerid][carro][conce_despesas] = strval(string_read[15]);

format(PlayerConce[playerid][carro][conce_placa], 25, string_read[16]);

format(PlayerConce[playerid][carro][conce_textol], 75, string_read[17]);



// Tunning

format(string, sizeof string, "tune_%d", carro);

orm_addvar_string(ormid, string_save, 258, string);



split(string_save, string_read, '|');



for(new component; component != 15; component) {

PlayerConce[playerid][carro][conce_tune][component] = strval(string_read[component]);

}

}

for(new index; index != MAX_PLAYER_ATTACHED_OBJECTS; index)

{

// Acessorios Informa??es

format(string, sizeof string, "itens_%d", index);

orm_addvar_string(ormid, string_save, sizeof(string_save), string);



split(string_save, string_read, '|');



format(acessorioInfo[playerid][index][acessorioNome], 75, string_read[1]);

acessorioInfo[playerid][index][acessorioValid]? = strval(string_read[0]);

acessorioInfo[playerid][index][acessorioModelo] = strval(string_read[2]);

acessorioInfo[playerid][index][acessorioBone] = strval(string_read[3]);

// Coordenadas

acessorioInfo[playerid][index][acessorioPos][0] = floatstr(string_read[4]);

acessorioInfo[playerid][index][acessorioPos][1] = floatstr(string_read[5]);

acessorioInfo[playerid][index][acessorioPos][2] = floatstr(string_read[6]);

// Rota??o

acessorioInfo[playerid][index][acessorioRot][0] = floatstr(string_read[7]);

acessorioInfo[playerid][index][acessorioRot][1] = floatstr(string_read[8]);

acessorioInfo[playerid][index][acessorioRot][2] = floatstr(string_read[9]);

// Tamanho

acessorioInfo[playerid][index][acessorioTam][0] = floatstr(string_read[10]);

acessorioInfo[playerid][index][acessorioTam][1] = floatstr(string_read[11]);

acessorioInfo[playerid][index][acessorioTam][2] = floatstr(string_read[12]);

}



orm_setkey(ormid, "nome");



// tell the orm system to load all data, assign it to our variables and call our callback when ready

orm_load(ormid, "OnPlayerLoginCheck", "dd", playerid, g_MysqlRaceCheck[playerid]);[/font][/size][/color]


Wink Help with FCNPC
Posted by: dwp12345 - 2020-11-10, 04:53 AM - Forum: Pawn Scripting - Replies (1)

I want to make npc stop following player by distance.



here is my code,



Code:
public FCNPC_Moving(npcid)

{

new Float:p[3];

? ? for(new i =0 ; i < GetMaxPlayers(); i )

{

? ? if(IsPlayerNPC(i)) continue;

FCNPC_GetPosition(npcid,p[0],p[1],p[2]);

if(IsPlayerInRangeOfPoint(i,10,p[0],p[1],p[2]))

{

if(IsPlayerInRangeOfPoint(i,1,p[0],p[1],p[2]))

{

FCNPC_Punch(npcid,p[0],p[1],p[2],50);

}

else

{

? ? FCNPC_GoToPlayer(npcid, i, FCNPC_MOVE_TYPE_AUTO, FCNPC_MOVE_SPEED_AUTO, FCNPC_MOVE_MODE_AUTO, FCNPC_MOVE_PATHFINDING_AUTO, 0.0, true, 0.0, 1.5, 250);

? ? ? ? ? ? ? ??



}

}

}

return 1;

}


  Farsi
Posted by: NimA - 2020-11-08, 04:38 PM - Forum: Other - Replies (2)

????:\