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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,844
» Latest member: rr2483533
» Forum threads: 2,377
» Forum posts: 12,276

Full Statistics

Online Users
There are currently 177 online users.
» 1 Member(s) | 173 Guest(s)
Bing, Yandex, Google, rr2483533

Latest Threads
The size of the output am...
Forum: Questions and Suggestions
Last Post: wartacho
4 hours ago
» Replies: 1
» Views: 209
Why your server's economy...
Forum: General Discussions
Last Post: wartacho
5 hours ago
» Replies: 0
» Views: 11
Battlezone 2050 - Circa 2...
Forum: Gamemodes
Last Post: SwisherSweet
Today, 03:43 AM
» Replies: 1
» Views: 29
World War 3 - TDM - Circa...
Forum: Gamemodes
Last Post: SwisherSweet
Today, 03:24 AM
» Replies: 0
» Views: 19
Vortex Gaming server
Forum: Ex-Yu
Last Post: pmemorex2016
Yesterday, 02:32 PM
» Replies: 0
» Views: 24
ZombieX Survival 0.3.7
Forum: Advertisements
Last Post: fazpharma148
Yesterday, 11:47 AM
» Replies: 0
» Views: 23
The status of the INPC SD...
Forum: Support
Last Post: DLCode
2026-01-07, 07:33 AM
» Replies: 0
» Views: 57
SAMP server trailer
Forum: Videos and Screenshots
Last Post: pmemorex2016
2026-01-06, 02:34 PM
» Replies: 0
» Views: 55
PROJECT: LOS ANGELES — TH...
Forum: Advertisements
Last Post: DevonH
2026-01-03, 04:04 AM
» Replies: 9
» Views: 1,057
I recommend Xiaomi Rednot...
Forum: Tech
Last Post: NoxxeR
2026-01-03, 01:31 AM
» Replies: 0
» Views: 95

 
  [Ayuda] error 022: must be lvalue (non-constant)
Posted by: Kaiser - 2021-01-28, 08:51 AM - Forum: Programaci?n - Replies (2)

Buenas madrugadas jaja, bueno, ac? tengo un error que no he podido solucionar, alguien podr?a decirme que podr?a ser y c?mo lo soluciono.



Code:
(54132) : error 022: must be lvalue (non-constant)



Este es el c?digo completo.



Code:
//**************************************************************************

CMD:regaloatodos(playerid)

{

if(Staff(playerid,Director)) return 1;

{

if (Regalo)

{

new string[128];

format(string, sizeof(string), "{474747}[ADMINISTRACI?N]{FFFFFF} %s envi? regalos a todo el servidor.", NombreJugador(playerid));

MensajeAll(CxVERDE, string);

Regalo = 0; // Linea del error

foreach(Player, i) { RegaloTodos(i); }

} else return Mensaje(playerid, 0, "212", "Este comando ya fue usado, puedes usarlo en el pr?ximo pago diario.");

}

return 1;

}

/// Sistema de regalos actualizado

stock RegaloTodos(playerid) {

? ? new gift = Random(1, 3);

? ? switch(gift) {

? ? ? ? case 1: {

? ? ? ? ? ? ? ? DarDinero(playerid, 2500);

? ? ? ? ? ? ? ? Mensaje(playerid, 2, "0", "Felicidades - recibiste $250 del regalo!");

? ? ? ? ? ? }

? ? ? ? case 2: {

? ? ? ? ? ? ? ? InfoUsuario[playerid][uExperiencia] = 2;

? ? ? ? ? ? ? ? Mensaje(playerid, 2, "0", "Felicidades - recibiste dos puntos de experiencia del regalo!");

? ? ? ? ? ? }

? ? ? ? case 3: {

? ? ? ? ? ? ? ? InfoUsuario[playerid][uExperiencia] = 1;

? ? ? ? ? ? ? ? Mensaje(playerid, 2, "0", "Felicidades - recibiste un punto de experiencia del regalo!");

? ? ? ? ? ? }

? ? ? ? default: return RegaloTodos(playerid);

? ? }

? ? return 1;

}


  Ayuda CreateDynamicCP
Posted by: Nikolay_Staggs - 2021-01-28, 06:57 AM - Forum: General Discussions - Replies (1)

Tengo una duda c?mo podr? enganchar un remolque y que se marqu? un CP


  eLg Clan Freeroam/Roleplay Full Script AMX File
Posted by: Nick MFRP - 2021-01-28, 06:36 AM - Forum: Gamemodes - No Replies

Sorry My Poor English?





Hi Guys Iam Nick





This Script We Are Added In Game Voice :)





This Script Not Working In Debug Mod





Here Is The Download Link?https://www.mediafire.com/file/5nr15ghlzg0auj0/eLg੖ꟸ视ꗸ嫞窺᪛闪敫.rar/file


  [Ayuda] Error 001: expected token
Posted by: Kaiser - 2021-01-27, 09:22 PM - Forum: Programaci?n - Replies (2)

Buenas, pues al compilar la GM, me sale el siguiente error.



Code:
error 001: expected token: "-string end-", but found "-identifier-"



La linea del error es la siguiente:



Code:
CreateDynamic3DTextLabel("Mercado Negro!\n\n{E69144}(/comprarm)"-1,872.06,-24.86,63.21,15);//mn



Linea completa:



Code:
CreateDynamic3DTextLabel("Destinos de Transporte!\n\n{E69144}(/destino)",-1, -242.3696,-236.5017,2.4297,15);//CAsilla Base

CreateDynamic3DTextLabel("Destinos de Transporte!\n\n{E69144}(/destino)",-1,966.9528,2132.9231,10.8203,15);//CAsilla LV

CreateDynamic3DTextLabel("Destinos de Transporte!\n\n{E69144}(/destino)",-1,-1737.5258,31.3217,3.5547,15);//CAsilla SF

CreateDynamic3DTextLabel("Destinos de Transporte!\n\n{E69144}(/destino)",-1,2123.6130,-2275.2766,20.6719,15);//CAsilla LS

CreateDynamic3DTextLabel("Destinos de Transporte!\n\n{E69144}(/destino)",-1,-2002.4324,-2409.7842,30.6250,15);//CAsilla AP

CreateDynamic3DTextLabel("Mercado Negro!\n\n{E69144}(/comprarm)"-1,872.06,-24.86,63.21,15);//mn

CreateDynamic3DTextLabel("Puedes vender el coche Aqui!\n\n{E69144}(/vendergob)",-1,1782.9520,-1696.0848,13.4739,15);

CreateDynamic3DTextLabel("Taller de Facciones Legales!\n\n{E69144}(/reparar)",-1,1943.6232,-1984.3682,13.7481,15);

CreateDynamic3DTextLabel("Taller de Facciones Legales!\n\n{E69144}(/reparar)",-1,117.1935, 1885.1022, 18.0179,15);

CreateDynamic3DTextLabel("Empieza a trabajar usando\n\n{9676C8}(/dinamita)",-1,-1842.1353,1321.0210,1059.2139,5);

? ? CreateDynamic3DTextLabel("Para coger una pala\n\n{9676C8}(/pala)",-1,-1854.4734,1334.7629,1057.2260,5);

? ? CreateDynamic3DTextLabel("Para coger una pala\n\n{9676C8}(/pala)",-1,1037.5548,1738.2552,1514.4860,15);//mina job

? ? CreateDynamic3DTextLabel("Equipo LSPP\n{FFFF6E}(/provisiones)\n(/uniforme)",-1,1498.5148,-1348.9795,905.3040,5);//LSPD

? ? CreateDynamic3DTextLabel("Equipo RCSD\n{FFFF6E}(/provisiones)\n(/uniforme)",-1,256.2475,73.7030,1003.6406,5);//SASD

? ? CreateDynamic3DTextLabel("Equipo GN\n{FFFF6E}(/provisiones)\n(/uniforme)",-1,1313.8560,-1784.6996,1565.9984,5);//GN

? ? CreateDynamic3DTextLabel("Enfermeria GN\n(/curar)",-1,-209.8801,-1759.7628,675.7687,5);//GN



?C?mo puedo arreglar ese error?


  [include] Matrix Functions (Topic en Espa?ol)
Posted by: Leonardo - 2021-01-27, 05:19 PM - Forum: Programaci?n - No Replies

Matrix Functions



Estas son funciones matrix, que se pueden usar para obtener la rotaci?n de euler de un veh?culo, o calcular el offset para usarlo en AttachObjectToVehicle/Player, tambi?n para crear un DetachObjectFromVehicle/Player, etc.



Functions:


  • native Vector(Float:x, Float:y, Float:z);

  • native Matrix(const right[VECTOR], const front[VECTOR], const up[VECTOR], const pos[VECTOR]);

  • native Matrix_Invert(const matrix[MATRIX]);

  • native Matrix_BuildUp(matrix[MATRIX]);

  • native Matrix_SetRotation(matrix[MATRIX], Float:rx, Float:ry, Float:rz);

  • native Float:Matrix_GetRotationX(const matrix[MATRIX]);

  • native Float:Matrix_GetRotationY(const matrix[MATRIX]);

  • native Float:Matrix_GetRotationZ(const matrix[MATRIX]);

  • native Matrix_GetRotation(const matrix[MATRIX]);

  • native Matrix_Multiply3x3(const matrix[MATRIX], const vector[VECTOR]);

  • native Matrix_Multiply4x4(const matrix1[MATRIX], const matrix2[MATRIX]);

  • native Matrix_GetOffsetPosition(const matrix[MATRIX], const vector[VECTOR]);

  • native Matrix_GetOffsetRotation(const matrix[MATRIX], const vector[VECTOR], bool:invert = true);


Video



?ste es un video del filterscript de pruebas:



[Video: https://youtu.be/vSZyMilgcuU]





C?digo fuente



https://github.com/Leonardo541/matrix


  Matrix Functions
Posted by: Leonardo - 2021-01-27, 05:12 PM - Forum: Libraries - No Replies

Matrix Functions



These are matrix functions, which can be used to obtain the euler rotation of a vehicle, or calculate the offset position and offset rotation to be used in AttachObjectToVehicle/Player, also to create a DetachObjectFromVehicle/Player, etc.



Functions:


  • native Vector(Float:x, Float:y, Float:z);

  • native Matrix(const right[VECTOR], const front[VECTOR], const up[VECTOR], const pos[VECTOR]);

  • native Matrix_Invert(const matrix[MATRIX]);

  • native Matrix_BuildUp(matrix[MATRIX]);

  • native Matrix_SetRotation(matrix[MATRIX], Float:rx, Float:ry, Float:rz);

  • native Float:Matrix_GetRotationX(const matrix[MATRIX]);

  • native Float:Matrix_GetRotationY(const matrix[MATRIX]);

  • native Float:Matrix_GetRotationZ(const matrix[MATRIX]);

  • native Matrix_GetRotation(const matrix[MATRIX]);

  • native Matrix_Multiply3x3(const matrix[MATRIX], const vector[VECTOR]);

  • native Matrix_Multiply4x4(const matrix1[MATRIX], const matrix2[MATRIX]);

  • native Matrix_GetOffsetPosition(const matrix[MATRIX], const vector[VECTOR]);

  • native Matrix_GetOffsetRotation(const matrix[MATRIX], const vector[VECTOR], bool:invert = true);




Video



This is a video of the test filterscript:



[Video: https://youtu.be/vSZyMilgcuU]





Source code



https://github.com/Leonardo541/matrix


  Vehicle rotation | help with this?
Posted by: Leonardo - 2021-01-26, 01:05 PM - Forum: Questions and Suggestions - Replies (5)

[Image: vrot.jpg]



I was wondering if you need help with this, because it might help.



What I have done has been a function to obtain the euler rotation from a matrix.



In the unoccupied sync, the SA-MP client sends the right and front vectors to the server, so it is necessary to build the up vector to obtain the euler rotation, so I also made a function for that.



To test it, I converted the C code to Pawn, this would be the result:



[Video: https://youtu.be/_sBAISz_JMo]



00:00 incar testing

00:20 unoccupied testing



[Video: https://youtu.be/3mZZsGd-g0M]



00:00 airplane testing



Part of the Pawn code would look like this:



Code:
forward test_timer();

public test_timer()

{

?? ?if(test_vehicleid != INVALID_VEHICLE_ID)

?? ?{

?? ???? new mat[MATRIX];

?? ???? new pos[VECTOR];

?? ???? new rot[VECTOR];

?? ????

?? ???? mat = GetVehicleMatrix(test_vehicleid);

?? ???? rot = Matrix_GetRotation(mat, Vector(-9999.0, -9999.0, -9999.0));

?? ???? pos = Matrix_Multiply3x3(mat, Vector(0.0, 12.0, 2.0));

?? ????

?? ???? pos[X] = mat[POS][X];

?? ???? pos[Y] = mat[POS][Y];

?? ???? pos[Z] = mat[POS][Z];

?? ????

?? ???? SetObjectPos(test_objectid, pos[X], pos[Y], pos[Z]);

?? ???? SetObjectRot(test_objectid, rot[X], rot[Y], rot[Z]);

?? ?}

}



I would not know who to talk to to discuss this issue, so I created this post. If you are interested in this, you can send me a private and I will send you the source code in C , including the Pawn code.



Note: Sorry for my English, I speak Spanish and I have translated this with google translate.


  Lost Connection Randomly
Posted by: tyrp - 2021-01-26, 12:23 PM - Forum: Support - Replies (2)

I have one problem with my RPG server, the server is installed on VPS with 0.3DL Version.

For two months the server did not have any problems but now it started at a certain time certain players to take lost connection automatically, but the server does not fall, about 10-15 players fall or even more, depending on how many are on the server. Is there a VPS problem or something? Should firewall be enabled or disabled?



[Image: NNIES2e.png]


  [MAP] Drusillas Restaurant from GTA IV - Interior
Posted by: Polter - 2021-01-25, 06:04 PM - Forum: Videos and Screenshots - Replies (1)


Exclamation [HELP ME] Creating function in Pawno
Posted by: PedroWarlock - 2021-01-25, 04:06 PM - Forum: Questions and Suggestions - Replies (2)

(google translate)

I'm trying to pass the sqlite functions to a subfunction, in order to handle all query commands for sql/mysql,?but I am not able to create a simple function, I always have this type of error below, can someone help me with what I am missing?



thanks for listening!



Code:
stock Mysql_Db_free_result(DB:dbd, string[]) {



?new Result = db_query(dbd, string);

?return Result;

}



new string2[150];

format(string2, sizeof(string2), "SELECT * FROM `account` WHERE `Name`='%s' AND `key`='%s'",DB_Escape(pName),DB_Escape(password));

Result?= Mysql_Db_free_result(Conection,string2);





BPR.pwn(49596) : warning 213: tag mismatch

BPR.pwn(49619) : warning 213: tag mismatch

Pawn compiler 3.2.3664 Copyright © 1997-2016, ITB CompuPhase