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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 6,724
» Latest member: orttuj82
» Forum threads: 2,516
» Forum posts: 12,593

Full Statistics

Online Users
There are currently 326 online users.
» 0 Member(s) | 323 Guest(s)
Bing, Google, Yandex

Latest Threads
rfhrtjtu
Forum: Releases
Last Post: orttuj82
Today, 05:40 AM
» Replies: 0
» Views: 21
shreyyhrey
Forum: Pawn Scripting
Last Post: orttuj82
Today, 05:38 AM
» Replies: 0
» Views: 19
gerehre
Forum: Questions and Suggestions
Last Post: orttuj82
Today, 05:37 AM
» Replies: 0
» Views: 19
Virtual Reality Roleplay ...
Forum: Advertisements
Last Post: Emirto
Yesterday, 10:59 PM
» Replies: 0
» Views: 17
[LIVE] [FRESH START] Ulti...
Forum: Advertisements
Last Post: Neville
Yesterday, 09:10 AM
» Replies: 1
» Views: 225
[ULP] Gamemode Base para ...
Forum: Offtopic
Last Post: xcleone
2026-07-24, 02:22 AM
» Replies: 0
» Views: 233
RSC - (CW/TG | Sandbox)
Forum: Gamemodes
Last Post: 1NS
2026-07-23, 05:28 PM
» Replies: 0
» Views: 62
🎮 Free SA-MP Server Hosti...
Forum: Chat
Last Post: Centnodes
2026-07-23, 03:55 PM
» Replies: 16
» Views: 6,584
Waklert 150 Armodafinil f...
Forum: Chat
Last Post: Alintawilliams00
2026-07-23, 10:25 AM
» Replies: 0
» Views: 44
Waklert 150 Australia Th...
Forum: General Discussions
Last Post: barrymarshal00
2026-07-23, 09:11 AM
» Replies: 0
» Views: 52

 
  [Showcase/Mapp] Mental hospital
Posted by: Apex - 2019-07-25, 07:42 AM - Forum: Videos and Screenshots - Replies (2)

My account on discord was Concorde#0687, this is a experiment mapp, it not have a server, just go to my library.



[Image: sa-mp-000.png]

[Image: sa-mp-001bd8d7b66d44a8388.png]

[Image: sa-mp-002.png]

[Image: sa-mp-003.png]

[Image: sa-mp-004.png]

[Image: sa-mp-005.png]

[Image: sa-mp-006.png]

[Image: sa-mp-007d44e5e1618fa26a3.png]

[Image: sa-mp-008.png]



I plan to follow it to the end with its maintenance cells, etc.


  y_hooks - multi level hooking problem
Posted by: Luciano - 2019-07-24, 09:02 PM - Forum: Pawn Scripting - Replies (2)

I have the following files:



Code:
====== gamemodes/mymode.pwn?======

#include <a_samp>

#include <YSI_Coding\y_hooks>

#include .\src\first.pwn



public OnGameModeInit()

{

? ??printf("mymode.pwn");

}





======?gamemodes/src/first.pwn?======

#include <YSI_Coding\y_hooks>

#include .\src\second.pwn



hook OnGameModeInit()

{

? ? printf("first.pwn");

}







======?gamemodes/src/second.pwn?======

#include <YSI_Coding\y_hooks>



hook OnGameModeInit()

{

? ? printf("second.pwn");

}





I'm getting this error:?
Code:
.\first.pwn(6) : error 021: symbol already defined: "@yH_OnGameModeInit@002"



Is it possible to use hooks like this and if yes, what is my mistake?


Big Grin Swedish
Posted by: fusez - 2019-07-23, 10:48 PM - Forum: Other - Replies (1)

[Image: xzzqrao.jpg]





This is the official Swedish thread



Say hej!


  Pair of Island | Servidor de Rol
Posted by: Kelu - 2019-07-21, 11:29 PM - Forum: Discusión GTA SA Multijugador - Replies (2)

[Image: Captura_de_pantalla_64.png]





El juego de rol viene con un objetivo definido desde el principio, el cual es brindar horas de juego y diversi?n a nuestros usuarios. Nos centraremos en un conjunto de islas ubicadas en el medio del oc?ano; totalmente desarrolladas desde cero.

Actualmente nos encontramos en la fase de "desarrollo" por as? decirlo, estamos avanzando a la medida del tiempo a la finalizaci?n del servidor. Su apoyo y seguimiento del proyecto es una gran motivaci?n a seguir con las ganas que tenemos para comenzar a divertirnos una vez el servidor se encuentra en l?nea.

El mapa consistir? en dos islas de diferentes magnitudes, islas peque?as con una sola exposici?n y sin intervenci?n del hombre, islas privadas, y muchas sorpresas m?s.

Las dos islas principales en los que se centran en el rol ser?n tan diferentes. Es una ciudad muy importante en nuestro servidor, consistir en una ciudad con mucha actividad por las noches, contando con m?ltiples casinos, discotecas, avenidas principales, festivales, entre muchas otras cosas. No me qued? solo con la noche, ni en la zona rural ni en la industrial, ni en los barrios de las diferentes clases sociales, ni en las estad?as ni en las cosas m?s que estamos registrados.

Por otro lado, tenemos la isla llamada Donek, en el cual se ha determinado el tama?o de una comparaci?n con los nombres anteriores, ser? una isla algo simple aunque tenga su toque original. Contar con lo necesario para que sus habitantes vivan c?modos y satisfechos.

Nuestro mapa se encuentra en el desarrollo, estoy trabajando todos los d?as en el mapa para tenerlo lo antes posible. Puedo asegurar que tenemos un 40% del mapa finalizado.



[Image: widget.png?style=banner3]









Algunas capturas del mapa echo hasta el momento



[Image: POI01.png]



[Image: POI02.png]



[Image: POI03.png]



[Image: POI04.png]


  [ERROR] cache_set_active: invalid cache id '0'
Posted by: Zow - 2019-07-18, 12:48 PM - Forum: Pawn Scripting - Replies (1)

Whatis going on to these code

Orginal code from: https://github.com/pBlueG/SA-MP-MySQ...stem-cache.pwn

Code:
[19:02:17] [ERROR] cache_set_active: invalid cache id '0'
[19:02:17] [ERROR] cache_get_value_name_int: no active cache
[19:02:17] [ERROR] cache_get_value_name_int: no active cache
[19:02:17] [ERROR] cache_get_value_name_int: no active cache
[19:02:17] [ERROR] cache_get_value_name_float: no active cache
[19:02:17] [ERROR] cache_get_value_name_float: no active cache
[19:02:17] [ERROR] cache_get_value_name_float: no active cache
[19:02:17] [ERROR] cache_get_value_name_float: no active cache
[19:02:17] [ERROR] cache_get_value_name_int: no active cache
[19:02:17] [ERROR] cache_get_value_name_int: no active cache
[19:02:17] [ERROR] cache_get_value_name_int: no active cache
[19:02:17] [ERROR] cache_delete: invalid cache id '0'  

Code:
       case DIALOG_LOGIN:
       {
           if (!response) return Kick(playerid);

           new hashed_pass[65];
           SHA256_PassHash(inputtext, Player[playerid][Salt], hashed_pass, 65);

           if (strcmp(hashed_pass, Player[playerid][Password]) == 0)
           {

               // sets the specified cache as the active cache so we can retrieve the rest player data
               cache_set_active(Player[playerid][Cache_ID]);

               AssignPlayerData(playerid);

               // remove the active cache from memory and unsets the active cache as well
               cache_delete(Player[playerid][Cache_ID]);
               Player[playerid][Cache_ID] = MYSQL_INVALID_CACHE;

               KillTimer(Player[playerid][LoginTimer]);
               Player[playerid][LoginTimer] = 0;
               Player[playerid][IsLoggedIn] = true;
               TogglePlayerSpectating(playerid, false);

               // spawn the player to their last saved position after login
               SetSpawnInfo(playerid, NO_TEAM, DEFAULT_SKIN, Player[playerid][Pos_X], Player[playerid][Pos_Y], Player[playerid][Pos_Z], Player[playerid][Pos_A], 0, 0, 0, 0, 0, 0);
               SpawnPlayer(playerid);
           }
           else
           {
               Player[playerid][LoginAttempts]++;

               if (Player[playerid][LoginAttempts] >= 3)
               {
                   ShowPlayerDialog(playerid, DIALOG_UNUSED, DIALOG_STYLE_MSGBOX, "[Login step]", "¤Ø³ãÊèÃËÑʼèÒ¹¼Ô´¶Ö§ 3 ¤ÃÑé§, ¨Ö§â´¹ÃкºàµÐÍÍ¡¨Ò¡à«ÔÃì¿àÇÍÃì", "»Ô´", "");
                   DelayedKick(playerid);
               }
               else ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "[Login step]", "ÃËÑʼèÒ¹äÁè¶Ù¡µéͧ!\n**¡ÃسÒãÊèÃËÑʼèÒ¹à¾×èÍà¢éÒàÅè¹à¡Á!", "à¢éÒà¡Á", "¡àÅÔ¡");
           }
       }

AssignPlayerData(playerid)
{
   cache_get_value_int(0, "ID", Player[playerid][ID]);

   cache_get_value_int(0, "Kills", Player[playerid][Kills]);
   cache_get_value_int(0, "Deaths", Player[playerid][Deaths]);

   cache_get_value_float(0, "PosX", Player[playerid][Pos_X]);
   cache_get_value_float(0, "PosY", Player[playerid][Pos_Y]);
   cache_get_value_float(0, "PosZ", Player[playerid][Pos_Z]);
   cache_get_value_float(0, "PosA", Player[playerid][Pos_A]);
   
   cache_get_value_int(0, "Interior", Player[playerid][Interior]);
   cache_get_value_int(0, "Skin", Player[playerid][Skin]);
   cache_get_value_int(0, "Account", Player[playerid][Account]);
   return 1;
}  

error spot after logged in every login


  Server & Client Updates
Posted by: NexoR - 2019-07-17, 12:19 PM - Forum: Questions and Suggestions - Replies (11)

Will the server and client be notified if an update is available ?



Because there is no SA-MP.


  [easyMysql] error 001: expected token: "-string end-", but found "-identifier-"
Posted by: Aerotactics - 2019-07-17, 06:20 AM - Forum: Pawn Scripting - Replies (2)

I don't see what the issue is.



[Image: 68edcdeeb1.png]



EDIT:

Code:
1116: handle = SQL::CreateTable(table, (isnull(column_where)) ? "InnoDB" : column_where, (isnull(column_where2)) ? "latin5" : column_where2, connectionHandle);



1780: format(SQL::upd_form, sizeof(SQL::upd_form), "%s int %s AUTO_INCREMENT,", field_name, (null == false) ? "NOT NULL" : "NULL");



1788: format(SQL::upd_form, sizeof(SQL::upd_form), "%s int %s PRIMARY KEY AUTO_INCREMENT,", field_name, (null == false) ? "NOT NULL" : "NULL");


  Help
Posted by: Xylosjr - 2019-07-17, 05:19 AM - Forum: Pawn Scripting - Replies (1)


Hi, I'm new here and I want to learn how to program with mysql and connect a database


  Math: vertical viewing angle
Posted by: Freaksken - 2019-07-15, 08:18 PM - Forum: Pawn Scripting - Replies (4)

I have a system in which I've worked out the code for giving an NPC a horizontal viewing angle (left image). How would I achieve a similar result, but now for the vertical direction (right image)?
[Image: viewing_angle.png?raw=1]

Below is the code for the left image, for reference. This is a math question, thus the code isn't really necessary, but might help you understand the problem. Just ignore that the angles start from the NPC's center instead of his eyes, that's easy enough to fix. As you can see, the z-position is irrelevant for the horizontal viewing angle, but probably not for the vertical viewing angle (not sure).

PHP Code:
static bool:FAI_IsPlayerInAggroViewingAngle(playeridnpcid) {
    
// Get NPC position
    
new Float:xnFloat:ynFloat:zn;
    
FCNPC_GetPosition(npcidxnynzn);

    
// Get player position
    
new Float:xpFloat:ypFloat:zp;
    if(!
IsPlayerNPC(playerid)) {
        
GetPlayerPos(playeridxpypzp);
    } else {
        
FCNPC_GetPosition(playeridxpypzp);
    }

    
// Calculate the angle between these 2 points
    
new Float:angleBetweenPoints atan2(xp xnyp yn);

    
// Get the NPC facing angle adjusted for the weird GTA angle system
    
new Float:npcFacingAngle 360.0 FCNPC_GetAngle(npcid);

    
// Calculate the smallest difference between these 2 angles as a value between -180.0 and 180.0
    
new Float:angleDifference angleBetweenPoints npcFacingAngle;
    if(
angleDifference 180.0) {
        
angleDifference -= 360.0;
    }
    if(
angleDifference < -180.0) {
        
angleDifference 360.0;
    }

    
// Get the absolute value of this angle
    
angleDifference floatabs(angleDifference);

    
// Check if the player is within the aggro viewing angle
    
if(angleDifference <= FAI_NPCs[npcid][FAI_NPC_AGGRO_VIEWING_ANGLE][playerid]/2) {
        return 
true;
    }
    return 
false;


Here's another visualisation of what the result should look like:
[Image: viewing_angle2.png?raw=1]


  Discord server
Posted by: RogueDrifter - 2019-07-15, 12:06 AM - Forum: Chat - Replies (4)

Unban roguedrifter from the discord server :sadface: