Quantcast
Channel: SA-MP Forums
Viewing all 18226 articles
Browse latest View live

[Map] Truck + Bulldozer On Top

$
0
0
A Truck with a Bulldozer ON TOP.
Good for Freeroams servers and trucking servers.







Download: Click Here
More Images: Click Here
Author: AlieN_ Aka AdrianO

Weird crash

$
0
0
Hello there, I have a big big gamemode and I'm about to open a big community with him. My biggest problem is, sometimes the server crash WITHOUT doing anything with this backtrace:
PHP Code:

[22:00:41] [debugServer crashed due to an unknown error
[22:00:41] [debugNative backtrace:
[
22:00:41] [debug#0 004016eb in ?? () in samp-server.exe
[22:00:41] [debug#1 745435e9 in ?? () in plugins\mysql.DLL
[22:00:41] [debug#2 74546688 in ?? () in plugins\mysql.DLL
[22:00:41] [debug#3 7452c52e in ?? () in plugins\mysql.DLL
[22:00:41] [debug#4 7452dc7f in ?? () in plugins\mysql.DLL
[22:00:41] [debug#5 7452e3d3 in ?? () in plugins\mysql.DLL
[22:00:41] [debug#6 00469a66 in ?? () in samp-server.exe
[22:00:41] [debug#7 0048d4db in ?? () in samp-server.exe
[22:00:41] [debug#8 0049b4a1 in ?? () in samp-server.exe
[22:00:41] [debug#9 0049b4b1 in ?? () in samp-server.exe
[22:00:41] [debugRegisters:
[
22:00:41] [debugEAX03563880 EBX00000000 ECX03577020 EDX00000008
[22:00:41] [debugESI00000280 EDIffffd8bc EBP0049b4a1 ESP0019fe88
[22:00:41] [debugEIP0049b4b1 EFLAGS00010246
[22:00:41] [debugStack:
[
22:00:41] [debugESP+00000000004ab4a0 0019ff60 004ab0e1 ffffffff
[22:00:41] [debugESP+0000002000000094 00000006 00000002 000023f0
[22:00:41] [debugESP+0000004000000000 00000000 00000000 00000000
[22:00:41] [debugESP+0000006000000000 00000000 00000000 00000000
[22:00:41] [debugESP+0000008000000000 00000000 00000000 00000000
[22:00:41] [debugESP+000000a000000000 00000000 00000000 00000000
[22:00:41] [debugESP+000000c000000000 00000000 c0000005 00000000
[22:00:41] [debugESP+000000e0004ba530 00000000 0019ff80 76110419
[22:00:41] [debugESP+0000010000324000 01a95caf 00000000 00000000
[22:00:41] [debugESP+0000012000000000 00000000 00000000 00000000
[22:00:41] [debugESP+0000014000000000 0019ffe4 772386d0 769c31c3
[22:00:41] [debugESP+00000160772451d6 00000000 00000000 0049cb3a
[22:00:41] [debugESP+0000018000000001 00003318 000000dc 00000000
[22:00:41] [debugESP+000001a000000007 00000034 0000017c 00000001
[22:00:41] [debugESP+000001c000000000 00000002 1a26ef4e 00000298
[22:00:41] [debugESP+000001e0f33271ba 0000053c 0000004a 00000588
[22:00:41] [debugESP+0000020000000032 00000900 000002fa 00000000
[22:00:41] [debugESP+0000022000000330 00000000 38505fc8 00000f70
[22:00:41] [debugESP+00000240b1280544 00001334 00000056 0000138c
[22:00:41] [debugESP+0000026000000002 00000001 0000017c 000015dc
[22:00:41] [debugESP+0000028000000001 00000003 00001ef8 00000e8c
[22:00:41] [debugESP+000002a000000002 00000005 00003098 00000098
[22:00:41] [debugESP+000002c000000002 00000007 000031fc 000000f0
[22:00:41] [debugESP+000002e000000002 0000000b 00003314 00000004
[22:00:41] [debugESP+0000030000000001 00000001 00000006 0000008c
[22:00:41] [debugESP+000003200000005e 00000000 00000000 00000000
[22:00:41] [debugESP+0000034000000000 00000000 00000002 00000024
[22:00:41] [debugESP+00000360006e0069 006f0064 00730077 0057005c
[22:00:41] [debugESP+000003801a26ef4e 0000011c 00000044 00000164
[22:00:41] [debugESP+000003a00000004a 0000040c 00000342 00000002
[22:00:41] [debugESP+000003c0000002fa 00000003 32ceeacd 00000a80
[22:00:41] [debugESP+000003e038505fc8 00000df4 0000005e 00000e54
[22:00:41] [debugLoaded modules:
[
22:00:41] [debug00400000 00519000 samp-server.exe
[22:00:41] [debug771c0000 7735c000 ntdll.dll
[22:00:41] [debug760f0000 761d0000 KERNEL32.DLL
[22:00:41] [debug74be0000 74dd9000 KERNELBASE.dll
[22:00:41] [debug75a00000 75f53000 SHELL32.dll
[22:00:41] [debug766b0000 76770000 msvcrt.dll
[22:00:41] [debug75060000 7509b000 cfgmgr32.dll
[22:00:41] [debug751c0000 752e2000 ucrtbase.dll
[22:00:41] [debug752f0000 75379000 shcore.dll
[22:00:41] [debug750a0000 7515f000 RPCRT4.dll
[22:00:41] [debug74820000 74840000 SspiCli.dll
[22:00:41] [debug74810000 7481a000 CRYPTBASE.dll
[22:00:41] [debug74a70000 74ad2000 bcryptPrimitives.dll
[22:00:41] [debug769e0000 76a59000 sechost.dll
[22:00:41] [debug74de0000 75058000 combase.dll
[22:00:41] [debug75400000 759fe000 windows.storage.dll
[22:00:41] [debug75380000 75400000 msvcp_win.dll
[22:00:41] [debug76780000 767fe000 advapi32.dll
[22:00:41] [debug74af0000 74b0c000 profapi.dll
[22:00:41] [debug74840000 74894000 powrprof.dll
[22:00:41] [debug76f00000 76f44000 shlwapi.dll
[22:00:41] [debug769a0000 769c3000 GDI32.dll
[22:00:41] [debug764e0000 76646000 gdi32full.dll
[22:00:41] [debug76340000 764da000 USER32.dll
[22:00:41] [debug76ff0000 77007000 win32u.dll
[22:00:41] [debug76770000 7677f000 kernel.appcore.dll
[22:00:41] [debug76eb0000 76ec2000 cryptsp.dll
[22:00:41] [debug74800000 74808000 WSOCK32.dll
[22:00:41] [debug74b60000 74bbf000 WS2_32.dll
[22:00:41] [debug747d0000 747f4000 WINMM.dll
[22:00:41] [debug747a0000 747c3000 WINMMBASE.dll
[22:00:41] [debug76970000 76995000 IMM32.DLL
[22:00:41] [debug74740000 74791000 crashdetect.DLL
[22:00:41] [debug746d0000 74739000 MSVCP100.dll
[22:00:41] [debug74610000 746cf000 MSVCR100.dll
[22:00:41] [debug74600000 7460b000 timerfix.DLL
[22:00:41] [debug74590000 745fd000 MSVCP140.dll
[22:00:41] [debug74570000 74585000 VCRUNTIME140.dll
[22:00:41] [debug74520000 7456e000 mysql.DLL
[22:00:41] [debug74500000 7451a000 log-core.dll
[22:00:41] [debug74430000 744fd000 libmariadb.dll
[22:00:41] [debug77010000 771a9000 CRYPT32.dll
[22:00:41] [debug769d0000 769de000 MSASN1.dll
[22:00:41] [debug74420000 7442a000 Secur32.dll
[22:00:41] [debug74400000 74411000 napinsp.dll
[22:00:41] [debug743a0000 743f2000 mswsock.dll
[22:00:41] [debug74310000 743a0000 DNSAPI.dll
[22:00:41] [debug74ae0000 74ae7000 NSI.dll
[22:00:41] [debug742d0000 74303000 IPHLPAPI.DLL
[22:00:41] [debug742c0000 742cb000 winrnr.dll
[22:00:41] [debug742a0000 742b6000 NLAapi.dll
[22:00:41] [debug74290000 742a0000 wshbth.dll
[22:00:41] [debug74280000 74288000 rasadhlp.dll
[22:00:41] [debug74270000 7427d000 Whirlpool.DLL
[22:00:41] [debug10000000 1000e000 sscanf.DLL
[22:00:41] [debug74200000 74267000 streamer.DLL
[22:00:41] [debug741c0000 741f9000 pawncmd.DLL
[22:00:41] [debug74190000 741b9000 chrono.DLL
[22:00:41] [debug74130000 74181000 fwpuclnt.dll
[22:00:41] [debug76ed0000 76ee9000 bcrypt.dll
[22:00:41] [debug740b0000 7412b000 uxtheme.dll
[22:00:41] [debug75ff0000 760ec000 ole32.dll
[22:00:41] [debug73f30000 740af000 PROPSYS.dll
[22:00:41] [debug76f50000 76fe6000 OLEAUT32.dll
[22:00:41] [debug75f60000 75fe1000 clbcatq.dll
[22:00:41] [debug73ef0000 73f2d000 edputil.dll
[22:00:41] [debug73c30000 73dee000 urlmon.dll
[22:00:41] [debug73a00000 73c2f000 iertutil.dll
[22:00:41] [debug73ed0000 73eeb000 CLDAPI.dll
[22:00:41] [debug73ec0000 73ec8000 FLTLIB.DLL 

On this case, no one entered like for 2 days(it was opened on a windows VPS) and then it crashed without doing anything. I run plugins like MySQL(latest version), streamer, timerfix, sscanf, whirpool and chrono. Yeah, there are timers in gamemode but this crash code doesn't says anything to me to spot the problem...
Does anyone knows what these codes could mean? Big big thanks in advance!

Dialog Help

$
0
0
Error: D:\Hyugas RPG\gamemodes\hyugas.pwn(7450) : error 040: duplicate "case" label (value 23)

Code:
case DIALOG_EMAIL: {
if(!response) return ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT, "Email", "Scrie mai jos adresa ta de email.", "Ok", "Inapoi");
if(IsMail(inputtext) && response && strlen(inputtext)<30)
{
strmid(PlayerData[playerid][Email], inputtext, 0, strlen(inputtext), 64);
new str[128];

mysql_format(SQL, str,128,"UPDATE `users` SET `Email`='%s' WHERE `ID`='%d' LIMIT 1",PlayerData[playerid][Email],PlayerData[playerid][ID]);
mysql_tquery(SQL, str, "", "");
for( new j = 0; j <= 100; j++)
{ //7450 Line
SendClientMessage(playerid, 0xF3FF02FF, "");
}
format(string, sizeof(string), "Adreasa de email setata: %s", PlayerData[playerid][Email]);
SendClientMessage(playerid, -1, string);
format(szDialog, sizeof(szDialog), "Iti multumim ca ai completat toate campurile.\nDistractie placuta pe server.");
ShowPlayerDialog(playerid, DIALOG_TUTORIAL, DIALOG_STYLE_MSGBOX, "Inregistrarea contului", szDialog, "Ok", "");
return 1;
}
else
{
ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT, "Email", "Email invalid!\nScrie mai jos adresa ta de email.", "Ok", "");
}
}


Help pls, i need to fix this.

foreach error 017 & playerprogress error 075

$
0
0
Hey guys, I'm new here.

I am having trouble compiling a gamemode.
I'm not sure if it is an includes problem or if it's the gamemode script.



\pawno\include\foreach.inc(193) : error 017: undefined symbol "_FOREACH_CUR_VERSION"
\pawno\include\playerprogress.inc(0) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(2) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(3) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(4) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(5) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(6) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(7) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(8) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(9) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(10) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(11) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(12) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(13) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(14) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(15) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(16) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(17) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(18) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(19) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(20) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(21) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(22) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(23) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(24) : error 075: input line too long (after substitutions)
\pawno\include\playerprogress.inc(25) : error 075: input line too long (after substitutions)

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.

If it's an includes problem, can you guys help and provide me with the proper files?

Or maybe I'm doing something wrong with Installing these two includes:confused:
Or maybe I don't have the right versions of the includes???
I think I have the latest versions of both includes though...
Could I be missing a few files?

btw the foreach include I have is the standalone version though my script uses YSI. Does that matter?

SA-MP 0.3.9

$
0
0
What do you think will be in the new version and when will it be? Also write what you would like to see in the new version. Perhaps Kye Kalcor will answer!???


My assumptions:
1. Version 0.3dl will become 0.3.9 with the addition of new features
2. Many servers will upgrade to the new version. Arizona rp has already written that it will create its own launcher and will upgrade to the new version.
3. 0.3.9 Gift for the New Year and Christmas!
4. New version, new bugs!

[Ajuda] Problemas com SAMP

$
0
0
Bem, eu instalo o GTA SA normal, dai instalo o SAMP, consigo jogar tranquilo, quando desligo o computador e ligo, ele abre o GTA normal,as vezes crasha, e tenho que reinstalar (Toda vez que ligo o pc). Alguem pode ajudar a resolver este problema?

Já botei em modo de compatibilidade, executei como administrador, já deletei o arquivo gta.sa_net, não tenho nenhum mod, não sei o que fazer.

[MAP] Music Studio

SAMP - Ammunation Shooting Range

$
0
0
Is anyone know how to spawn this objects exactly like on this video from GTA OFF on samp?

On this time
https://youtu.be/IO-ntJaUKFs?t=126

Until the: 4:40

Also detect when player shoot a red part (destroy a object part)

samp_debug.exe

$
0
0
Can someone explain what's that .exe? Why it connects you to your local SA-MP?

A bit help again

$
0
0
Hello guys <3 Once again
Actually i am here to ask that can i change the color of buildings in samp editors ?
if can tell me that editor name and procedure .
Thanks.

[Ajuda] Nex-AC e outros

$
0
0
Boa tarde a todos.

Tenho a intenção de utilizar o Nex-AC em meu projeto, porém tenho algumas duvidas:

1) Você já utilizou o Nex-AC em projeto?
2) O Nex-AC tem um nível de precisão bom?
3) O Nex-AC faz com que o servidor use muito recurso da máquina (CPU)? - Este é o meu maior receio.

Aceito sugestões de outros anticheat's também.

MTA map made to my SAMP server doesn't appear

$
0
0
Hi! Sorry to bother you guys but I'd be glad if you could explain me why is this wrong and how I could solve it

Thing is a friend and I started a server and we were working on a race map for a gamemode, he downloaded MTA to make the map and all the details we needed. Everything was going fine, he sent me the .map script and I used ConvertFFS to make it able to use it in SAMP.

In a tutorial in this forum I saw that you just need to paste that code that was converted into a pawno archive (with the additional scripts to make it work) and compile it. So then you'll have the .pwn and .amx that goes in FS folder. I did that and then in server.cfg called that FS to appear on my GM, when I ran the server, the FS was loaded and I thought it worked, but when I went to the place where it was supposed the objects and everything would be, nothing appeared. Just some objects and a plane floating in the air.

I know it isn't a problem of scripting because the .map archive made .pwn did compile so it could be something I'm making wrong.

I'm new in this thing of mapping and scripting and I have a lot of interest in all of this. I'd really appreciate if you could help me :D

Greetings ;)

EDIT: I forgot something, the race was made completely, with checkpoints and you start in the vehicle inmediatly so clearly just going to the place won't make that work, but how could I make that to happen? I need to make like a cmd to link both things?

Hosted tab

$
0
0
Hi!
I want to buy Hosted Tab.
Do you advise "hostedtab.com"?

[FilterScript] Basically Login/Register System MYSQL

$
0
0
VENOM LOGIN/REGISTER SYSTEM
Login/Register System by Venom
Version: 1
Scripter: Venom

YOU NEED:
  • Mysql plugin R41-4

  • Streamer Plugin v2.9.4

  • Sscanf plugin and include

  • EasyDialog include

Links:
MySQL R41-4
Streamer
sscanf2
easyDialog

DOWNLOADS:

Notes:

  • If you found any bugs, please report it in the comment section. This script has lack of optimizations.
  • If there is any mistake or issues in code please reply in down in comments if possible also post the fix if you know!

Special Thanks:

a_samp - Credits to SA-MP Team
streamer - Credits to Incognito
mysql - Credits to BlueG
sscanf2 - Credits to maddinat0r
easydialog - Credits to Awsomedude

How to do smoke out of mouth


[Ajuda] MySQL arquivo muito grande

$
0
0
SEMPRE QUE VOU IMPORTAR O ARQUIVO SQL NO BANCO DE DADOS ELE DA UM ERRO FATAL, ALGUEM SABE COMO RESOLVE?

ERRO
PHP Code:

Mensagens do MySQL Documentação

#1118 - Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline. 

PHP Code:

CREATE TABLE `accounts` (
  `
IDint(11NOT NULL,
  `
Usernamevarchar(24NOT NULL,
  `
Passwordvarchar(128NOT NULL,
  `
Levelint(11NOT NULL,
  `
Genderint(11NOT NULL,
  `
Ageint(11NOT NULL,
  `
Adminint(11NOT NULL,
  `
Skinint(11NOT NULL,
  `
pLutaStyleint(11NOT NULL,
  `
PosXfloat NOT NULL,
  `
PosYfloat NOT NULL,
  `
PosZfloat NOT NULL,
  `
PosAfloat NOT NULL,
  `
registradoint(11NOT NULL,
  `
Healthfloat NOT NULL,
  `
Armourfloat NOT NULL,
  `
Interiorint(11NOT NULL,
  `
Worldint(11NOT NULL,
  `
Tutorialint(11NOT NULL,
  `
EntrouCasaint(11NOT NULL,
  `
Granaint(11NOT NULL,
  `
Mortoint(11NOT NULL,
  `
UltimoLoginvarchar(32NOT NULL,
  `
EntrouComplexoint(11NOT NULL,
  `
EntrouEmpresaint(11NOT NULL,
  `
Celularint(11NOT NULL,
  `
ChaveEmprestadaint(11NOT NU[...] 

I need help to fix this

$
0
0
Hi, i'm creating a login system using email and password, when i put the password and email correctly, it work.
after that, the server show a menu that contain the characters, i want to do that when a player click on a listitem, for example Lucy_Hernandez, the server find in the db that account, the player could have more than 1 character



I've created that menu with this code:

Code:


if(cache_num_rows() > 0)
        {
                new stringAccounts[256];
                for(new i = 0; i < cache_num_rows(); i++)
                {
                    new name[MAX_PLAYER_NAME], banStatus;
                    cache_get_value_name(i, "Username", name);
                    cache_get_value_name_int(i, "Ban", banStatus);
                   
                    format(stringAccounts,sizeof(stringAccounts),"%s {EB0000}>{FFFFFF} %s\t(%s)\n",stringAccounts,name,banStatusText(banStatus));
                }
                new title[64];
                format(title,sizeof(title),"Account: %s",PlayerInfo[playerid][Email]);
                ShowPlayerDialog(playerid, DIALOG_ACCOUNTS, DIALOG_STYLE_TABLIST, title, stringAccounts, "Select", "Cancel");
        }

[Include] Extend MySQL

$
0
0
This is something I'm using in a gamemode I'm writing.
Thought it might be usefull for other people aswell.

Functions
mysql_error(const msg[], error_level = SQL_ERROR_FATAL, bool:showError = true, MySQL:handle = MYSQL_DEFAULT_HANDLE)
Send a mysql error. Return 0 if it's a fatal error, else 1. Choose whether you want to print the specific error code + description or not. Can be usefull to block gamemode initialisation for example. It's basically just an easier way of handling MySQL errors and sending a log to the server log/console or not.
Example usage:
Code:

mysql_connect(...)
if (mysql_errno() != 0)
    return mysql_error("Couldn't connect to the DB, abort initialisation!");


db_col_exists(const table[], const column[])
Check if a column exists in a table. returns true if it does, false if it doesn't
Example usage:
Code:

if (!db_col_exists("users", "password"))
    SendClientMessage(playerid, -1, "Column 'password' does NOT exist in in the table 'users'!");
else SendClientMessage(playerid, -1, 'Column 'password' does exist in the table 'users'!");

db_col_add(const table[], const column[], const column_data[], const add_after[] = "")
Add a column to a table. Returns true if it was succesfull, false if it wasn't. Note that it doesn't create a new table if the table doesn't exist. It also doesn't check if the column exists or not. Trying to add an existing column will print
Example usages:
Code:

if (!db_col_exists("users", "password"))
    db_col_add("users", "password", "VARCHAR(128) NOT NULL", "ID"); //Adds 'password' after column 'ID'

if (!db_col_exists("users", "adminlevel"))
    db_col_add("users", "adminlevel", "INT NOT NULL DEFAULT 0"); //Add 'adminlevel' as last column

Not sure if it's actualy usefull. I'm using this for an auto-updater script. Thought I might share it.


Sidenotes
- Queries are non-threaded. You should not use them after gamemode init.
- Strings are not escaped. If you're gonna use it, use it properly
- If people are actually interrested in this I might create more functions (on request too)

Download
https://pastebin.com/4fCHQv7H

error 017: undefined symbol "vehicleid"

$
0
0
Hey any help ??

Code:

Error, i know what its mean.. but in code i got it..

error 017: undefined symbol "vehicleid"

Modules:

#include "..\gamemodes\modules\CarMainINFO.pwn"

enum v_info
{
    owner [ 50 ],
    gas,
    Float:miles,
    colorcar[ 2 ],
    paintjob,
    lock,
    bool:destroyed,
    numplate[ 12 ],
    Jobid,
    lastSeat [ 154 ],
    //MiniJobs
    Text3D:SiuksliuLabel,
    vehTrash
}

new VehicleInfo[MAX_VEHICLES][v_info];

//MiniJobs
#include "..\gamemodes\modules\TrashBinMiniJob.pwn"       

line: VehicleInfo[vehicleid][vehTrash] += playerDB[playerid][bTrash];

Streamer problem

$
0
0
How fix error Streamer Plugin: Streamer_GetIntData: Invalid ID specified?
code: https://pastebin.com/XEdZaCa7

And i have a question, my gamemode is modular and i have information in my principal .pwn after i edited an information or something in game have not effect.
Exemple:
I edit an SendClientMessage( playerid, "Hello world"); into SendClientMessage( playerid, "hello world x2");
In game i got the Hello World... wtf.
Viewing all 18226 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>