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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,655
» Latest member: niubi
» Forum threads: 2,346
» Forum posts: 12,287

Full Statistics

Online Users
There are currently 206 online users.
» 0 Member(s) | 202 Guest(s)
Google, Bing, Baidu, DuckDuckGo

Latest Threads
Ultimate Roleplay!!
Forum: Advertisements
Last Post: URP_Wrzosek
Yesterday, 09:43 AM
» Replies: 2
» Views: 62
samp openmp scripts
Forum: German/Deutsch
Last Post: pauli
2025-11-01, 01:21 AM
» Replies: 0
» Views: 53
YGG-Reborn
Forum: Advertisements
Last Post: Mw10
2025-10-31, 08:12 AM
» Replies: 0
» Views: 60
[GameMode] Brasil Vida Id...
Forum: Portuguese/Portugu?s
Last Post: Brasil Vida Ideal
2025-10-31, 01:12 AM
» Replies: 0
» Views: 50
Grand Gang War (GGW)
Forum: Advertisements
Last Post: coladaciren
2025-10-30, 10:00 AM
» Replies: 0
» Views: 52
undefined symbol
Forum: Portuguese/Portugu?s
Last Post: leobradoks
2025-10-25, 08:58 PM
» Replies: 1
» Views: 1,618
SA:MP Custom Character Li...
Forum: General Discussions
Last Post: Dilshad
2025-10-22, 04:15 PM
» Replies: 0
» Views: 104
Anyone got old rp scripts...
Forum: General Discussions
Last Post: Bilal
2025-10-21, 01:02 PM
» Replies: 5
» Views: 5,333
Anyone has the SARP Gamem...
Forum: Gamemodes
Last Post: Bilal
2025-10-21, 12:59 PM
» Replies: 0
» Views: 169
SARP Gamemode
Forum: Releases
Last Post: Bilal
2025-10-21, 12:58 PM
» Replies: 0
» Views: 108

 
  symbol already defined: "@yH_OnScriptInit@003"
Posted by: Zow - 2020-06-24, 06:19 AM - Forum: Pawn Scripting - Replies (1)

I tried to hook OnScriptInit
Here my main.pwn


Code:
#include <a_samp>

#undef ? MAX_PLAYERS
#define MAX_PLAYERS 100

#define YSI_NO_OPTIMISATION_MESSAGE
#define YSI_NO_CACHE_MESSAGE
#define YSI_NO_MODE_CACHE
#define YSI_NO_HEAP_MALLOC
#define YSI_NO_VERSION_CHECK

#include <a_mysql>
#include? ? <streamer>
#include? ? <sscanf2>
#include? ? <Pawn.CMD>

// YSI-Include 5.x
#include <YSI_Data/y_iterate>
#include <YSI_Coding/y_timers>

#include "test.pwn"
#include "test1.pwn"


test.pwn


Code:
#include <YSI_Coding/y_hooks>

hook OnScriptInit()
{
? ? print("test1");
? ? return 1;
}


test1.pwn


Code:
#include <YSI_Coding/y_hooks>

hook OnScriptInit()
{
? ? print("test2");
? ? return 1;
}


F:\samp\gamemodes\test1.pwn:4 (error) symbol already defined: "@yH_OnScriptInit@003"
Install by sampctl package install pawn-lang/[email protected]


  Operating System development and utilization
Posted by: hastlaking - 2020-06-20, 12:45 AM - Forum: Programming - Replies (1)

is it possible to write a operating system and utilize it with the latest programming language <GO>. i come up with a ideal logic, but the problem is im not sure do i have to code the API by my self or get existing ones if possible to acquire.


  compiler takes too long to compile
Posted by: GameOvr - 2020-06-19, 06:39 PM - Forum: Pawn Scripting - No Replies

As the title says it takes too long to compile.
script is like 25k lines. I was saving data using mysql like updating variables for the certain data when it changes and then save all of the data at once on player disconnect and also by using a repeating global timer to save data.. but I changed the whole concept into save data instantly when that specific data changes as many of you do..
so in order to do that i had to write queries everywhere like, OnPlayerDeath, in setkills, setdeaths commands... but affer i did this update. i put the script for compliation. and its like 2 hours passed and still its compiling.. im so confused... before i did this it compiled within 30 seconds. What can cause this problem?
Thanks for your time..

EDIT: nvm fixed it, I have typed |case default:| instead of |default:|


  mysql
Posted by: homelessdrop - 2020-06-15, 05:20 PM - Forum: Support - Replies (2)

hello everybody, can you someone give me link for mysql community msi installer with 64bit version? because when i look at official website and click to download, have just 32bit version.





[Image: UVeHeQL.png]


  Cosas que faltaron en SAMP tanto en seguridad como comodidad
Posted by: AlanStone - 2020-06-12, 05:48 AM - Forum: Discusi?n GTA SA Multijugador - Replies (12)

si no entiendes traducirlo, lo siento pero todav?a no tengo un excelente ingl?s



La peticion mas importante de todas antes de empezar con lo demas:

Presencia de los creadores de OPEN: MP en su comunidad, a que me refiero, hay muchos servidores que hacen publicidad en otros, los atacan, los amenazan o incluso los roban, quisiera que la comunidad tenga una clase de foro con los operadores que pueden hacer este trabajo que acepta informes de fundadores de servidores acusando a otros servidores en lo cual si este servidor acusado en realidad a intentado afectar a terceros este no puede ingresar nunca m?s a ABIERTO: MP en lo cual no podra aurrinar el trabajo extenso de los demas.



Empezemos lo basico y comodo, luego ire por lo pesado:



1.- Modificaci?n de la HUD:

Algo que molesta en cualquier modo de juego es el HUD el como esta posicionado con sus propias caracter?sticas que aurrinan la visi?n.



2.- Modificaci?n del texto:

Lo segundo es el posicionamiento del texto, estaria por favor, genial que el texto desaparezca cuando no se mandan mensajes al estilo GTA V que si no escribes desaparece y deja de ocupar toda la pantalla.



3.- Modificacion del guardado:

Siempre hay problemas de rollback o perdida de datos como gusten llamarlo en los sistemas de registro que son desarrollados, no se si ustedes podrian aplicar algo para su arreglo.



4.- Algo que agregaron en el 0.3DL es el asunto de alterar las texturas, de los objetos y poner nuevos menus que podamos personalizar. Obviamente esto seria algo que podria hacerse mucho mas adelante, ya es algo de gusto que me di por pedir Jaja



Empezemos con lo medio...



1.- IP:

Algo que ha cansado por tanto tiempo es la seguridad y como la IP interfiere en eso? Pues simple, existen diversas formas de evadir la IP baneada ya que no podemos tomar su IP real en el juego, tal vez podriamos crear un parche aparte pero es mucho trabajo de parte de quienes apenas empiezan y no poseen tanto conocimiento en el tema de programacion. Estaria perfecto que se pusiera algo que pueda gestionarse del usuario que realmente se pueda banear de forma permanente.



2.- Registro/Ingreso:

No se si es posible pero estaria de super una verificacion de E-Mail, Gmail de la contrase?a en el ingreso y que si el usuario entra con otra IP deba confirmar que es el atra vez de un codigo enviado a ese E-Mail o Gmail.

Es sensacional ademas por como podriamos manejarnos en la administracion, eso si con ciertas restricciones.



3.- Piratas:

Me gustaria si es posible por el amor de jesuscristo jajaja que si se pudiera intervenir en la carpeta original GTA San andreas para bloquear en el servidor si y solo si el due?o del mismo lo quiere hacer en su servidor, bloquear esos archivos no pertenecientes a la carpeta original de instalacion GTA y OPEN:MP en este caso.



Empezamos con lo pesado:



1.- Implementacion de calculos complejos para las operaciones en OPEN:MP, las que posee SAMP son muy basicas como suma, resta, multiplicacion, division, resto de la division. Algo que nos de la posibilidad de crear mejores sistemas a base de esos codigos.



2.- ATAQUES:

Estaria pero tremendamente perfecto que si hicieran un foro tuvieran un registro de cada servidor que es creado en ese foro asi si algun dia uno de ellos realiza un Reporte de que sufre ataques de parte de otro servidor usando las debilidades que por ejemplo tenia SAMP, ustedes puedan ver la IP o los datos que den quien realiza esto y puedan bloquearlos.?



3.- BOTS:

Hay algo que me molesta y no puedo creer que no haya absolutamente nada en SAMP encontra de esto, nuestras unicas opciones son crear sistemas que solo permitan ingresar 1 o 2 personas por ip y eso que no menciono lo de hacer trampa para ganar puntaje. Estaria perfecto una verifiacion antes de ingresar al programa de OPEN:MP o servidor cuales quieran, que verifiquen que esa persona no es para nada un BOT.





Hay muchas cosas que SAMP dejo en el olvido, y bien hay cosas que los propios HOST que contratamos deben defender pero hay otras que ustedes como fundadores de este proyecto deben prestar atenci?n porque quedan fuera de nuestras manos, es horrible crear proyectos que cuestan mucho y viene alguien y comienza a derrumbar todo lo que hiciste y tu tiempo perdido. Si quieren ser mejor que SAMP con sus usuarios pues vean estos asuntos, llevo a?os en esto y se que afecta y no a las personas, por m?s que pidan otras cosas en vez de esto que es la seguridad y lo m?s importante en el momento de jugar.?



No hay peor administraci?n que aquella que deja de lado sus principios de ayudar a los demas.



Un gusto y saludos.



Les deseo lo mejor y ojala lean y apliquen lo de esta publicaci?n.


Thumbs Up Eliminar post
Posted by: Akzull - 2020-06-10, 04:22 AM - Forum: Programaci?n - Replies (2)

Eliminar post


  Auto Translate chat
Posted by: billz - 2020-06-04, 01:25 PM - Forum: Filterscripts - Replies (2)

THE FILTERSCRIPT IS INCREDIBLY MESSY - BUT IT WAS MADE FOR TESTING PURPOSES TO EVEN SEE IF IT WOULD EVEN WORK



This basically contains a php file which gets the translation data from?mymemory.translated.net. It also replaces all the weird foreign characters with normal ones.



The example I've shared translates ES to EN and EN to ES. However, with the api you have no limitations of which languages you want to translate.





[Video: https://www.youtube.com/watch?v=Auf4zXZcqfc]











test.php



https://pastebin.com/raw/YsAQkH3q





example.pwn



https://pastebin.com/raw/Q4tZ1Zrg



like I said... VERY MESSY and stupid.





how to basically use the api:



PHP Code:
#include <a_samp>

#include <a_http>



new lang1 "en";

new 
lang2 "it";



public 
OnPlayerText(playeridtext[])

{







new 
languageHttpString[512];

format(languageHttpStringsizeof languageHttpString"localhost/test.php?text=%s&lang1=%s&lang2=%s"textlang1lang2);

strreplace(languageHttpString" """);

HTTP(playeridHTTP_GETlanguageHttpString"""HttpConvert");

}





forward HttpConvert(playeridresponse_codedata[]);

public 
HttpConvert(playeridresponse_codedata[])

{



printf("%s"data[0]);

//printf("response code %d", response_code);



return 1;





strreplace by slice?https://pastebin.com/raw/x6Gea0Nq


  Guess The Number System
Posted by: Axye - 2020-06-02, 01:01 AM - Forum: Filterscripts - Replies (1)

Hey,



I'd like to introduce my own simple?Guess The Number system to you, It's a game for SA-MP servers,?You have to guess the correct number which it's chosen randomly.



For more info and download link:



github.com/NinjaTheBlack/Guess-The-Number





Thanks for reading,

Axye


  A proper fix for attachments
Posted by: BrunoBM16 - 2020-05-31, 05:55 PM - Forum: Libraries - No Replies

? Proper attachment fix

This is a proper fix for SA-MP's attachments. What this does, is hide attachments only for the player aiming with a sniper, heat seeker, rocket launcher or camera, unlike other fixes which hide the attachments for everyone.



? Usage

Pretty simply, just include it on your script and you can start using it. There is no functions in this library?which are required for you to use in your mode, this is plug 'n' play.



? Dependencies

- Pawn.RakNet:?https://github.com/urShadow/Pawn.RakNet



? Simply install to your project

PHP Code:
sampctl package install BrunoBM16/samp-attachments-fix 


  Unsigned integers
Posted by: EvilShadeZ - 2020-05-31, 12:57 PM - Forum: Questions and Suggestions - Replies (4)

I have had a few times where I've been running in the signed integer limit and thought it would be beneficial to have unsigned ones.

They could have their own tag just like floating-point variables have their 'Float' tag.



If this was implemented, functions such as format would have to have their own specifiers i.e '%u' and have their own math operator implementations probably.