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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,727
» Latest member: miir68495
» Forum threads: 2,360
» Forum posts: 12,308

Full Statistics

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

Latest Threads
Vice WRLD Freeroam/RP
Forum: Advertisements
Last Post: pdjumailiev
2025-11-24, 11:30 AM
» Replies: 0
» Views: 71
Wanting to Start a RP Ser...
Forum: Chat
Last Post: Wein
2025-11-24, 09:07 AM
» Replies: 1
» Views: 204
Help me for creating a fr...
Forum: General Discussions
Last Post: [Rs]VeNoM
2025-11-23, 07:33 AM
» Replies: 0
» Views: 49
The server didn't respond...
Forum: Support
Last Post: richboY
2025-11-22, 10:51 AM
» Replies: 0
» Views: 62
error when joining server
Forum: Support
Last Post: sanved2008
2025-11-22, 09:02 AM
» Replies: 0
» Views: 73
Client issue with object
Forum: Support
Last Post: TheDoctor
2025-11-15, 08:00 PM
» Replies: 0
» Views: 116
San Andreas Police Pursui...
Forum: Advertisements
Last Post: BriBri
2025-11-15, 12:06 AM
» Replies: 0
» Views: 139
[Include] OpenGate (Abrir...
Forum: Portuguese/Portugu?s
Last Post: Crazy_ArKzX
2025-11-13, 06:49 PM
» Replies: 0
» Views: 108
OpenGate (Open Proximity ...
Forum: Libraries
Last Post: Crazy_ArKzX
2025-11-13, 06:46 PM
» Replies: 0
» Views: 143
LS City Hall
Forum: Maps
Last Post: cosminupgaming
2025-11-12, 04:22 PM
» Replies: 3
» Views: 2,774

 
  GetPlayerPos and show in chat?
Posted by: LagunaPreza - 2020-12-19, 05:48 PM - Forum: Pawn Scripting - Replies (4)

Hey all,



I'm new to the whole pawn scripting and I try to make a command that gives me my position.

But, when I use the command it doesn't send anything in the chat.



Code:
if (strcmp("/getpos", cmdtext, true, 7) == 0)

{

// Do something here

new Float:x, Float:y, Float:z;

GetPlayerPos(playerid, x, y, z);

SendClientMessage(playerid, -1,"Position: %f, %f, %f.", x, y, z);



return 1;

}

return 0;





I've also tried to remove the %f, %f, %f part but then it only sends me "Position:" without the actual player position.

Also when I compile/run my script, it gives me 3 warnings(warning 202: number of arguments does not match definition)



Any help would be appreciated.


  [Duda] MySQL...
Posted by: R4lpH - 2020-12-19, 10:04 AM - Forum: Programaci?n - Replies (3)

Hola gente buenas.

En s? tengo una duda y he estado tratando de buscar alg?n tutorial de como hacer un simple sistema de registro de Cuentas con MySQL, pero no encuentro ninguna, tampoco se que versi?n de MySQL Usar,?cu?les son las funciones de MySQL y tambi?n el uso de sus funciones con un ejemplo b?sico. Si bien espero haya un buen alma quien me pueda sacar esta duda y ya servir?a a todos los Scripters a saber interpretar MySQL. Saludos!


  Deletion of world objects
Posted by: Epureanu - 2020-12-19, 09:18 AM - Forum: Pawn Scripting - Replies (1)

Hi,



there are some objects in the game natively, that I would like to remove. Is there any way to do this? When I downloaded some object editor, I could only edit the objects that I have created. I would like to remove specific objects from the map, that have been not placed by me.



For any helps, thanks.


  vModData - Component helpers
Posted by: Markski - 2020-12-19, 02:41 AM - Forum: Libraries - No Replies

vModData is a simple include which provides helpers for components.

Helpers include getters for component names, slots and categories, as well as functions that return wether a vehicle is compatible with a given component id or slot type, amidst others.

Detailed function list and download available on GitHub


  [INCLUDE] vModData
Posted by: Markski - 2020-12-19, 02:37 AM - Forum: Spanish/Espa?ol - Replies (3)

Nada, un simple include con helpers para componentes/tunning en SA-MP.



Sirve para obtener nombre, precios, categorias de componentes, entre otras cosas.



https://github.com/markski1/mrks_vModData


Rainbow Best way to load data from database (MySQL r41)
Posted by: shane adevaratu - 2020-12-18, 10:58 AM - Forum: Pawn Scripting - Replies (6)

What is the most efficient way to load data from the database.
For example, how could I make the function below more efficient.

Code:
function loadDealerShip( ) {
    new DS_Models = cache_num_rows( ), x, result;
    if( DS_Models == 0 ) return print( "Loaded models: no rows detected" );
    for( new i, j = DS_Models; i != j;  ) {
        cache_get_value_name_int( i, "ID", result ), x = result, dsVariable[ x ][ dsID ] = x;
        cache_get_value_name_int( i, "Model", dsVariable[ x ][ dsModel ] );
        cache_get_value_name_int( i, "Stock", dsVariable[ x ][ dsStock ] );
        cache_get_value_name_int( i, "Speed", dsVariable[ x ][ dsSpeed ] );
        cache_get_value_name_int( i, "Price", dsVariable[ x ][ dsPrice ] );
        cache_get_value_name_int( i, "Type", dsVariable[ x ][ dsType ] );
        cache_get_value_name( i, "Car", dsVariable[ x ][ dsName ] );
    } printf( "Loaded models: %d", DS_Models );
return true; }


The 'ID'?starts at 1 and reaches over 100.


  [AJUDA]Travar o comando para destruir o veiculo
Posted by: willian franco - 2020-12-16, 10:36 PM - Forum: Portuguese/Portugu?s - Replies (1)

Boa noite!! criei um comando para criar o veiculo e outro para destrui-lo porem gostaria de travar para destrui-lo quando o player estiver no veiculo, o comando consegue destruir mesmo n?o estado no veiculo.??



Code:
? ? CMD:dcivil(playerid, x_nr[])

{

if(!strlen(x_nr))

{

? ? SendClientMessage(playerid, COLOR_GRAD1, "USE: /dcivil [numero do veiculo]");

}

? ? ? return 1;

}

else if(strcmp(x_nr,"1",true)==0)

{

? ? ? ?? ? ? ? ? ? ?DestroyVehicle(Civilcarro[0]);

? ? ? ? ? ? ? ? ? ? carrocivil[0] = 0;

? ? ? ? ? ? ? ? ? ? SendClientMessage(playerid, COR_AMARELO, "Veiculo Civil Destruido..");

? ? ? ? ? }

? ? ? ? ? }

? ? return 1;

? ? }

else if(strcmp(x_nr,"2",true)==0)

? ? ? ? ? ? {

? ? if(carrocivil[1] == 1)

? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? DestroyVehicle(Civilcarro[1]);

? ? ? ? ? ? ? ? ? ? carrocivil[1] = 0;

? ? ? ? ? ? ? ? ? ? SendClientMessage(playerid, COR_AMARELO, "Veiculo Civil Destruido..");

? ? ? ? ? }

? ? ? ? ? }

? ? ? ? return 1;

? ? }

? ? else if(strcmp(x_nr,"3",true)==0)

? ? ? ? ? ? {

? ? ? if(carrocivil[2] == 1)

? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? DestroyVehicle(Civilcarro[2]);

? ? ? ? ? ? ? ? ? ? carrocivil[2] = 0;

? ? ? ? ? ? ? ? ? ? SendClientMessage(playerid, COR_AMARELO, "Veiculo Civil Destruido..");

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? return 1;

? ? ? ? }

? ? else if(strcmp(x_nr,"4",true)==0)

? ? ? ? ? ? {

? ? ? ? ? ? ? if(carrocivil[3] == 1)

? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? DestroyVehicle(Civilcarro[3]);

? ? ? ? ? ? ? ? ? ? carrocivil[3] = 0;

? ? ? ? ? ? ? ? ? ? SendClientMessage(playerid, COR_AMARELO, "Veiculo Civil Destruido..");

? ? ? ? ? ? ? ? }

? ? ? ? return 1;

? ? ? ? }



os comando em diante s?o todos iguais por isso n?o coloquei ele completo.



objetivo -? estou testando esse sistema para tentar diminuir a quantidade de ve?culos no servidor que esta est?o sendo usado.



Quero apenas pode usar o comando no veiculo desejado estando no motorista.

voltei a pouco tempo a editar servidor?

obrigadooo a comunidade!!!?


Star [MAP] Medical Department/Hospital - Exterior
Posted by: RisQ Development - 2020-12-16, 07:56 AM - Forum: Videos and Screenshots - Replies (1)

Good Morning,



i want?to show you a new Map , the Medical Department.



Objekts: 640 Objects

Mappingtime: 4 Days

YouTube URL:?https://youtu.be/pLBL1SUce5k



Thank you.


  CODE: A Hands-on Approach
Posted by: phlair - 2020-12-16, 02:01 AM - Forum: Tutorials - Replies (3)

Information



CODE: A Hands-on Approach (cahoa) is a project that aims to serve as a hands-on tutorial for teaching programming (via PAWN, and currently SA-MP). People of different skill levels/experience will benefit from this, but it is mainly targeted at beginners.



Details



You'll find the most up to date draft as a GitHub Gist here



I look forward to your responses and feedback!



Update



The Git Repository is live, and can be found?on GitHub



I'll update it over time, and give some progress updates here and on Discord.


  Disappearance of dynamic objects
Posted by: Radical - 2020-12-15, 11:07 PM - Forum: Pawn Scripting - Replies (4)

I have 10,300 dynamic objects, some of which disappear after 24 hours.

Game mode runs on a vps with 1 GB of RAM.

The problem is the lack of RAM or what?