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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 6,588
» Latest member: Diefcoder
» Forum threads: 2,445
» Forum posts: 12,466

Full Statistics

Online Users
There are currently 297 online users.
» 0 Member(s) | 295 Guest(s)
Yandex, Bing

Latest Threads
[BETA] Renaissance DM — O...
Forum: Advertisements
Last Post: DrVandersexxx
Yesterday, 01:44 PM
» Replies: 0
» Views: 32
Ajuda com salvamento nao ...
Forum: Portuguese/Português
Last Post: Crazy_ArKzX
2026-05-02, 11:28 AM
» Replies: 1
» Views: 118
Object Remove?
Forum: Support
Last Post: Mivco
2026-04-29, 08:12 PM
» Replies: 0
» Views: 51
Floorp is a good webbrows...
Forum: Tech
Last Post: NoxxeR
2026-04-29, 01:01 AM
» Replies: 0
» Views: 76
Looking for Players for N...
Forum: Advertisements
Last Post: AlmightyJeremy
2026-04-27, 03:36 PM
» Replies: 0
» Views: 78
Algemene Discussies
Forum: Dutch/Nederlands
Last Post: Eamon
2026-04-27, 12:03 AM
» Replies: 41
» Views: 85,619
Help me find a current ar...
Forum: Tech
Last Post: KOZYR
2026-04-24, 03:53 PM
» Replies: 0
» Views: 88
Czy SA:MP RP jeszcze żyje...
Forum: Ogólne
Last Post: Sztakier
2026-04-24, 09:11 AM
» Replies: 0
» Views: 97
Donald Trump wars every c...
Forum: Life
Last Post: NoxxeR
2026-04-23, 08:04 PM
» Replies: 0
» Views: 121
PawnPro 3.0 — Extensão VS...
Forum: Portuguese/Português
Last Post: NullSablex
2026-04-19, 10:58 AM
» Replies: 0
» Views: 113

 
  How to save the position of a car?
Posted by: Boxi - 2021-03-21, 11:45 AM - Forum: Pawn Scripting - Replies (1)

Hello everyone :'D?



Would anyone know how to make a system to save the position of a car? where the player leaves his car somewhere and when he connects again the car is there, basically how is the saving of the player's position. Obviously I'm not asking for any of you to write that code, just an idea of where I should start if I wanted to do it. Greetings to all.


  Possibility to move dialogs
Posted by: matei_ - 2021-03-19, 10:29 PM - Forum: Questions and Suggestions - Replies (1)

I know that there is a problem with the client, mentioned in this topic too, where you can't move the dialog across the screen.



So, my suggestion is (as the title said) to be able to move the dialog across the screen.


  mysql_query suggest
Posted by: Zow - 2021-03-19, 09:49 PM - Forum: Pawn Scripting - Replies (4)

How can I?improve this code?



PHP Code:
Account_PromptLogin(playerid) {

? ? new

? ? ? ? 
query[81],

? ? ? ? 
playerHash[62],

? ? ? ? 
playerDate[11],

? ? ? ? 
playerTime[9],

? ? ? ? 
playerIP[16],

? ? ? ? 
rows;



? ? 
mysql_format(MySQL_GetHandle(), querysizeof query

? ? 
"\

? ? ? ? SELECT * FROM `players` WHERE `username` = '%e' LIMIT 1\

? ? "


? ? ? ? 
Player_GetName(playerid)

? ? );

? ? 
mysql_query(MySQL_GetHandle(), query);



? ? 
cache_get_row_count(rows);



? ? if (!
rows) {

? ? ? ? 
Player_Kick(playerid);

? ? ? ? return 
0;

? ? }



? ? 
cache_get_value_name(0"password"playerHashsizeof(playerHash));

? ? 
cache_get_value_name(0"date_reg"playerDatesizeof(playerDate));

? ? 
cache_get_value_name(0"time_reg"playerTimesizeof(playerTime));

? ? 
cache_get_value_name(0"ip"playerIPsizeof(playerIP));



? ? 
Player_SetAccountHash(playeridplayerHash);

? ? 
Player_SetAccountDate(playeridplayerDate);

? ? 
Player_SetAccountTime(playeridplayerTime);

? ? 
Player_SetAccountIP(playeridplayerIP);



? ? 
Dialog_ShowCallback(playerid,

? ? ? ? 
using public Account_Login<iiiis>, 

? ? ? ? 
DIALOG_STYLE_PASSWORD

? ? ? ? 
SERVER_NAME

? ? ? ? 
"Welcome"

? ? ? ? 
"Login",

? ? ? ? 
"Exit"

? ? );

? ? return 
1;

}



forward Account_Login(playeriddialogidresponselistitemstring:inputtext[]);

public 
Account_Login(playeriddialogidresponselistitemstring:inputtext[]) {

? ? if (
response) {

? ? ? ? 
bcrypt_verify(playerid"OnPasswordVerify"inputtextPlayer_GetAccountHash(playerid));

? ? }

? ? else {

? ? ? ? 
Kick(playerid);

? ? }

? ? return 
1;





PHP Code:
forward OnPasswordVerify(playeridbool:success);

public 
OnPasswordVerify(playeridbool:success) {

? ? if (
success)

? ? {

? ? ? ? 
CallLocalFunction("OnPlayerLogin""d"playerid);

? ? }

? ? else

? ? {

? ? ? ? 
Account_PromptLogin(playerid);

? ? }



  Duplicate CallBack call
Posted by: RhaegarX - 2021-03-19, 04:45 PM - Forum: Support - Replies (9)

In my gamemode I use mysql as a data saving system. Most of the player data I will save the moment it is changed to avoid problems in case of server crash or crash, and I also save the player data when restarting the server (/ gmx).

PHP Code:
public OnPlayerDisconnect()
{
Player_DestroyAllVehicles(playerid);
Player_SaveRanking(playerid);
Player_SaveConfig(playerid);
Player_SaveMoney(playerid);
? ? 
Player_SaveData(playerid);
? ? 
Player_ClearVars(playerid);
Player_ClearAcessories(playerid);
Player_ClearInfo(playerid);
Inventory_Reset(playerid);


PHP Code:
public OnGameModeExit()
{
    foreach(new 
Player)
    {
        
Player_DestroyAllVehicles(i);
        
Player_SaveRanking(i);
        
Player_SaveConfig(i);
        
Player_SaveMoney(i);
        
Player_SaveData(i);
        
Player_ClearVars(i);
        
Player_ClearAcessories(i);
        
Player_ClearInfo(i);
        
Inventory_Reset(i);
    }
    
DestroyAllDynamicMapIcons();
    
DestroyAllDynamic3DTextLabels();
    
DestroyAllDynamicPickups();
    
mysql_close(ConexaoSQL);
    return 
1;




What I noticed is that when I restart the server, OnGameModeExit is saved and OnPlayerDisconnect is saved, doubling each player's save. For example: when I restart the server (/ gmx) the player's money is saved in OnGameModeExit and OnPlayerDisconnect, being saved 2 times without need.
How do I avoid this duplication of calls? Do I need to save player data on OnGameModeExit or just OnPlayerDisconnect?
Is OnPlayerDisconnect called by default by OnGameModeExit?


  Sound ID isn't working
Posted by: robertocaribbean - 2021-03-18, 10:47 PM - Forum: Pawn Scripting - Replies (4)

Hi there,

I want to place in my script, a death sound when a player dies. I looked in the folder "data/audioevents.txt" and found the sound I was looking for:
SOUND_PED_DEATH_CRUNCH 1189.

But unfortunately, that id doesn't play any sound. I tried with other ids and they work perfectly.

Code (I'm using weapon-config):

Code:
public OnPlayerDamageDone(playerid, Float:amount, issuerid, weapon, bodypart) {
? ? if (amount == 0.0) {
? ? ? ? PlayerPlaySound(playerid, 1189, 0.0, 0.0, 0.0);
? ? ? ? SendClientMessage(playerid, -1, "Death");
? ? }
? ? return 1;
}


  So.. i created an inventory system.
Posted by: Allxseiggen - 2021-03-18, 06:07 PM - Forum: Videos and Screenshots - Replies (1)

Wow, this is my frist post on this forum....hi to all, how are you today? :)







https://www.youtube.com/watch?v=361ZaCrC...llxseiggen - video



If you have any suggestions, please let me know with a reply.


Photo robbing a house
Posted by: AndyForelli1988 - 2021-03-18, 10:34 AM - Forum: Videos and Screenshots - Replies (2)

[Image: Screenshot-63.png]


  Unknown Gamemode
Posted by: Snow - 2021-03-18, 03:32 AM - Forum: Pawn Scripting - Replies (16)

My gamemode for some unknown reason fails to work. All plugins load, MySQL connection is successful, but number of vehicle models is 0 and the gamemode shows unknown in the client. Nativechecker fails to point out anything. However this mysterious thing might be the reason but I can't seem to fix it.

Code:
*** YSI Error: y_malloc with JIT requires "#define YSI_NO_HEAP_MALLOC"

*** YSI Warning: JIT disabled

[jit] Compilation was disabled





I tried putting?"#define YSI_NO_HEAP_MALLOC" in the script but this wont go anyway. What could be possibly wrong??


  Dual monitors with San Andreas
Posted by: GospodinX - 2021-03-17, 08:15 PM - Forum: Support - Replies (6)

Hi guys



Does anyone use dual monitors for GTA?

Is possible to use one monitor for GTA and second for other things(scripting,reading forum, facebook etc)



I have problem with it.When I switch to second monitor my GTA freeze.



Thanks


  Compile stack size
Posted by: Paulthas01 - 2021-03-17, 11:39 AM - Forum: Support - Replies (14)

I would like to understand what that means, it is appearing outside the -d3 compilation parameters.

As far as I know, it shouldn't happen.

Pawn compiler 3.10.10 Copyright © 1997-2006, ITB CompuPhase

Header size: 58400 bytes
Code size: 5920252 bytes
Data size: 25992156 bytes
Stack/heap size: 16384 bytes; estimated max. usage=130285 cells (521140 bytes)
Total requirements:31987192 bytes

[Finished in 7.2s]

In my gamemode, I use a lot of 2d / 3d arrays, the size of the .amx is 26MB.

Does this affect server performance? Causes shutdown?