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

A question

$
0
0
I store player data in enums which receive data from MySQL on player login. My question is, do I need to clear the enums after player disconnect? I don't remember having issues with that but just to make sure.

Server doesn't start backtrence error

$
0
0
Hello, Its been a while that I started this server, but I updated the server to 0.3.7 and compiled it without warnings/errors but server doesn't start please take a look at the server logs

Code:

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[17:14:21] filterscripts = ""  (string)
[17:14:21]
[17:14:21] Server Plugins
[17:14:21] --------------
[17:14:21]  Loading plugin: crashdetect
[17:14:21]  CrashDetect v4.18.1 is OK.
[17:14:21]  Loaded.
[17:14:21]  Loading plugin: streamer
[17:14:21]

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[17:14:21]  Loaded.
[17:14:21]  Loading plugin: sscanf
[17:14:21]

[17:14:21]  ===============================

[17:14:21]      sscanf plugin loaded.   

[17:14:21]    (c) 2009 Alex "Y_Less" Cole

[17:14:21]    0.3d-R2 500 Players "dnee"

[17:14:21]  ===============================

[17:14:21]  Loaded.
[17:14:21]  Loading plugin: mysql
[17:14:21]

  > MySQL plugin R7 successfully loaded.

[17:14:21]  Loaded.
[17:14:21]  Loading plugin: Whirlpool
[17:14:21] 
[17:14:21]  ==================
[17:14:21] 
[17:14:21]  Whirlpool loaded
[17:14:21] 
[17:14:21]  ==================
[17:14:21] 
[17:14:21]  Loaded.
[17:14:21]  Loaded 5 plugins.

[17:14:21]
[17:14:21] Ban list
[17:14:21] --------
[17:14:21]  Loaded: samp.ban
[17:14:21]
[17:14:21]
[17:14:21] Filterscripts
[17:14:21] ---------------
[17:14:21]  Loaded 0 filterscripts.

[17:14:22] 
[17:14:22]  =======================================
[17:14:22]  |                                    |
[17:14:22]  |        YSI version 3.01.0002        |
[17:14:22]  |        By Alex "Y_Less" Cole        |
[17:14:22]  |                                    |
[17:14:22]  =======================================
[17:14:22] 
[17:14:22] [debug] Server crashed while executing HRP_main.amx
[17:14:22] [debug] AMX backtrace:
[17:14:22] [debug] #0 native fread () from samp-server.exe
[17:14:22] [debug] #1 0002dcb4 in ?? () from HRP_main.amx
[17:14:22] [debug] #2 000bfbf0 in public zcmd_OnGameModeInit () from HRP_main.amx
[17:14:22] [debug] #3 native CallLocalFunction () from samp-server.exe
[17:14:22] [debug] #4 0001f4f4 in public S@@_OnGameModeInit () from HRP_main.amx
[17:14:22] [debug] #5 native CallLocalFunction () from samp-server.exe
[17:14:22] [debug] #6 000140d4 in public S@@_OnGameModeInit () from HRP_main.amx
[17:14:22] [debug] #7 native CallLocalFunction () from samp-server.exe
[17:14:22] [debug] #8 0000e828 in public Itter_OnGameModeInit () from HRP_main.amx
[17:14:22] [debug] #9 native CallLocalFunction () from samp-server.exe
[17:14:22] [debug] #10 00007bd4 in public SSCANF_OnGameModeInit () from HRP_main.amx
[17:14:22] [debug] #11 native CallLocalFunction () from samp-server.exe
[17:14:22] [debug] #12 00001358 in public Streamer_OnGameModeInit () from HRP_main.amx
[17:14:22] [debug] #13 native CallLocalFunction () from samp-server.exe
[17:14:22] [debug] #14 00000aa4 in public OnGameModeInit () from HRP_main.amx
[17:14:22] [debug] Native backtrace:
[17:14:22] [debug] #0 777ea225 in ?? () from C:\Windows\SYSTEM32\ntdll.dll
[17:14:22] [debug] #1 00498bb8 in ?? () from samp-server.exe
[17:14:22] [debug] #2 004991e0 in ?? () from samp-server.exe
[17:14:22] [debug] #3 00404f14 in ?? () from samp-server.exe
[17:14:22] [debug] Registers:
[17:14:22] [debug] EAX: 00000024 EBX: 00000080 ECX: 00000020 EDX: 00304000
[17:14:22] [debug] ESI: 083024fc EDI: 08302514 EBP: 00000000 ESP: 0019d43c
[17:14:22] [debug] EIP: 00404f14 EFLAGS: 00010206
[17:14:22] [debug] Stack:
[17:14:22] [debug] ESP+00000000: 00000000 0019d458 083024fc 00000080
[17:14:22] [debug] ESP+00000020: 00000020 00405802 00000000 00000080
[17:14:22] [debug] ESP+00000040: 004a5a3b 0019d4a4 777e13ee 00000014
[17:14:22] [debug] ESP+00000060: 0488b238 004a5a71 0019d4c4 50870269
[17:14:22] [debug] ESP+00000080: 54349824 0619d010 0019d4e0 5087233b
[17:14:22] [debug] ESP+000000a0: 54349838 004057a0 04eda9f0 02165504
[17:14:22] [debug] ESP+000000c0: 00000000 0019d630 004010b6 04eda9f0
[17:14:22] [debug] ESP+000000e0: 0000004c 0019d6a4 083024fc ef3c646c
[17:14:22] [debug] ESP+00000100: 04eda9f0 00000000 02165b88 0002dcb4
[17:14:22] [debug] ESP+00000120: 04880000 0019d610 00000001 0019d8f8
[17:14:22] [debug] ESP+00000140: 00000020 00000001 0000000a 026a0000
[17:14:22] [debug] ESP+00000160: 048861e0 04885e28 00000014 00000000
[17:14:22] [debug] ESP+00000180: 00000000 026a08f8 01000020 0019d608
[17:14:22] [debug] ESP+000001a0: 04880000 0019fe9c 04eda9f0 00000000
[17:14:22] [debug] ESP+000001c0: 0019d6a4 00000000 04eda9f0 05d3ca48
[17:14:22] [debug] ESP+000001e0: 04886248 ef3c646c 0019dc98 5433b8d5
[17:14:22] [debug] ESP+00000200: 0019d6a4 083024fc 0019d69c 54324078
[17:14:22] [debug] ESP+00000220: 00000479 00000000 0488acf0 0048e27c
[17:14:22] [debug] ESP+00000240: 05d0ed94 012238ec 02165c48 0619d010
[17:14:22] [debug] ESP+00000260: 0019d700 5431a767 00000000 0019db64
[17:14:22] [debug] ESP+00000280: 04eda9f0 616d0074 00000000 00000479
[17:14:22] [debug] ESP+000002a0: 00000001 02165c54 0001f4f4 00000479
[17:14:22] [debug] ESP+000002c0: 0019d710 0019d710 5431d65a 0019db64
[17:14:22] [debug] ESP+000002e0: 0019db64 00000479 646d637a 476e4f5f
[17:14:22] [debug] ESP+00000300: 04eda9f0 00000001 00000000 00000000
[17:14:22] [debug] ESP+00000320: 00000000 00000000 00000000 00000000
[17:14:22] [debug] ESP+00000340: 00000000 00000000 00000000 0049cf72
[17:14:22] [debug] ESP+00000360: 0049d0e0 027e0b50 0019d7e4 00498bfe
[17:14:22] [debug] ESP+00000380: 0299816c 02998180 00000000 00000000
[17:14:22] [debug] ESP+000003a0: 004ba128 ffffffff 00498ab9 0048c9dc
[17:14:22] [debug] ESP+000003c0: 32005d31 32005d31 32005d31 32005d31
[17:14:22] [debug] ESP+000003e0: 00001008 00000000 0019d844 00001000
[17:14:22] [debug] Loaded modules:
[17:14:22] [debug] 00400000 - 00519000 samp-server.exe
[17:14:22] [debug] 777a0000 - 7792d000 ntdll.dll
[17:14:22] [debug] 74ad0000 - 74ba0000 KERNEL32.DLL
[17:14:22] [debug] 72080000 - 720af000 aswhookx.dll
[17:14:22] [debug] 74740000 - 74917000 KERNELBASE.dll
[17:14:22] [debug] 75910000 - 76c43000 SHELL32.dll
[17:14:22] [debug] 75440000 - 754fd000 msvcrt.dll
[17:14:22] [debug] 74700000 - 74738000 cfgmgr32.dll
[17:14:22] [debug] 742e0000 - 743f7000 ucrtbase.dll
[17:14:22] [debug] 74630000 - 746b8000 shcore.dll
[17:14:22] [debug] 74210000 - 742ce000 RPCRT4.dll
[17:14:22] [debug] 741c0000 - 741e0000 SspiCli.dll
[17:14:22] [debug] 741b0000 - 741ba000 CRYPTBASE.dll
[17:14:22] [debug] 75500000 - 75557000 bcryptPrimitives.dll
[17:14:22] [debug] 74a80000 - 74ac3000 sechost.dll
[17:14:22] [debug] 75570000 - 757b6000 combase.dll
[17:14:22] [debug] 74dc0000 - 75386000 windows.storage.dll
[17:14:22] [debug] 77470000 - 774e8000 advapi32.dll
[17:14:22] [debug] 77550000 - 77595000 shlwapi.dll
[17:14:22] [debug] 746d0000 - 746f2000 GDI32.dll
[17:14:22] [debug] 74bb0000 - 74d0e000 gdi32full.dll
[17:14:22] [debug] 773d0000 - 7744c000 msvcp_win.dll
[17:14:22] [debug] 74400000 - 74575000 USER32.dll
[17:14:22] [debug] 77450000 - 77466000 win32u.dll
[17:14:22] [debug] 74db0000 - 74dbe000 kernel.appcore.dll
[17:14:22] [debug] 76c50000 - 76c95000 powrprof.dll
[17:14:22] [debug] 76df0000 - 76e04000 profapi.dll
[17:14:22] [debug] 73ee0000 - 73ee8000 WSOCK32.dll
[17:14:22] [debug] 76ca0000 - 76d06000 WS2_32.dll
[17:14:22] [debug] 72050000 - 72074000 WINMM.dll
[17:14:22] [debug] 72000000 - 72023000 WINMMBASE.dll
[17:14:22] [debug] 741e0000 - 74205000 IMM32.DLL
[17:14:22] [debug] 54300000 - 54350000 crashdetect.DLL
[17:14:22] [debug] 52510000 - 52579000 MSVCP100.dll
[17:14:22] [debug] 50860000 - 5091f000 MSVCR100.dll
[17:14:22] [debug] 5ac30000 - 5ac6f000 streamer.DLL
[17:14:22] [debug] 10000000 - 1000c000 sscanf.DLL
[17:14:22] [debug] 02900000 - 02915000 mysql.DLL
[17:14:22] [debug] 507b0000 - 50853000 MSVCR90.dll
[17:14:22] [debug] 50720000 - 507ae000 MSVCP90.dll
[17:14:22] [debug] 046b0000 - 047f1000 LIBMYSQL.dll
[17:14:22] [debug] 70a80000 - 70a91000 napinsp.dll
[17:14:22] [debug] 70440000 - 70456000 pnrpnsp.dll
[17:14:22] [debug] 70420000 - 70433000 NLAapi.dll
[17:14:22] [debug] 70a20000 - 70a75000 mswsock.dll
[17:14:22] [debug] 73560000 - 735f4000 DNSAPI.dll
[17:14:22] [debug] 746c0000 - 746c7000 NSI.dll
[17:14:22] [debug] 73a90000 - 73ac0000 IPHLPAPI.DLL
[17:14:22] [debug] 705b0000 - 705bc000 winrnr.dll
[17:14:22] [debug] 705a0000 - 705a8000 rasadhlp.dll
[17:14:22] [debug] 02990000 - 0299c000 Whirlpool.DLL
[17:14:22] [debug] 6f130000 - 6f2bc000 urlmon.dll
[17:14:22] [debug] 74610000 - 74629000 imagehlp.dll
[17:14:22] [debug] 6ef10000 - 6f12a000 iertutil.dll
[17:14:22] [debug] 74920000 - 74a17000 ole32.dll
[17:14:22] [debug] 66b80000 - 66bde000 msiso.dll
[17:14:22] [debug] 71ea0000 - 71f19000 uxtheme.dll
[17:14:22] [debug] 711f0000 - 71213000 dwmapi.dll
[17:14:22] [debug] 73600000 - 738c4000 WININET.dll
[17:14:22] [debug] 6d720000 - 6d732000 ondemandconnroutehelper.dll
[17:14:22] [debug] 739e0000 - 73a8d000 winhttp.dll
[17:14:22] [debug] 70670000 - 70678000 WINNSI.DLL
[17:14:22] [debug] 74d10000 - 74da3000 OLEAUT32.dll
[17:14:22] [debug] 70550000 - 7059e000 fwpuclnt.dll
[17:14:22] [debug] 73230000 - 73249000 bcrypt.dll

Mapping Help

$
0
0
Hello Guys!
My friend gave me some maps today
but each object is created 3-4 times.. can someone please seperate them? Reward: Name will be added in credits of that map+ Will share my new OFFLINE Ban command with him!
Here are maps:
Please Help me :)

settimerex.. killerid or playerid?

$
0
0
I'm making a textdraw when you kill someone,


so first of all

TextDrawShowForPlayer(killerid, gYouKilled);
SetTimerEx("YouKilledTD", 4000, false, "i", killerid);


on settimer ex

SetTimerEx("YouKilledTD", 4000, false, "i", killerid);

since its for the killerid do i put playerid here or killerid?

...

help please

$
0
0
Hello Please i Need Help For Script that i can see some players Country by using command by only admin can see i want that type of script Please If Have any post ...it

Siren sound on vehicles with horn

$
0
0
Its not working, and im doing this

CreateVehicle(411, 100, 100, 3, 0, 1, 1, 0, 1)

It says number of arguments do not match definition, what should i do?

Im using 0.3.DL server.

[Ajuda] Possibly the PAWN version?

$
0
0
Alguém poderia me ajuda neste erro?

PHP Code:

error fatal111user errorsscanf (possibly the PAWN versionalready defined

Erro na linha 39 da include:

PHP Code:

#if defined sscanf
    #error sscanf (possibly the PAWN version) already defined.
#endif 


[WASTELAND] Weapons Store

few errors

$
0
0
Code:

        gYouKilled[playerid] = CreatePlayerTextDraw(playerid,241.000000, 371.000000, "_");
        PlayerTextDrawBackgroundColor(playerid,gYouKilled[playerid], 227526655);
        PlayerTextDrawFont(playerid, gYouKilled[playerid], 3);
        PlayerTextDrawLetterSize(playerid, gYouKilled[playerid], 0.329999, 1.300000);
        PlayerTextDrawColor(playerid, gYouKilled[playerid], 255);
        PlayerTextDrawSetOutline(playerid,gYouKilled[playerid], 1);
        PlayerTextDrawSetProportional(playerid, gYouKilled[playerid], 1);

Code:

C:\Users\yan\Desktop\Battlegrounds\gamemodes\gw.pwn(43) : error 017: undefined symbol "playerid"
C:\Users\yan\Desktop\Battlegrounds\gamemodes\gw.pwn(44) : error 017: undefined symbol "playerid"
C:\Users\yan\Desktop\Battlegrounds\gamemodes\gw.pwn(45) : error 017: undefined symbol "playerid"
C:\Users\yan\Desktop\Battlegrounds\gamemodes\gw.pwn(46) : error 017: undefined symbol "playerid"
C:\Users\yan\Desktop\Battlegrounds\gamemodes\gw.pwn(47) : error 017: undefined symbol "playerid"
C:\Users\yan\Desktop\Battlegrounds\gamemodes\gw.pwn(48) : error 017: undefined symbol "playerid"
C:\Users\yan\Desktop\Battlegrounds\gamemodes\gw.pwn(49) : error 017: undefined symbol "playerid"
C:\Users\yan\Desktop\Battlegrounds\gamemodes\gw.pwn(204) : error 035: argument type mismatch (argument 2)
C:\Users\yan\Desktop\Battlegrounds\gamemodes\gw.pwn(205) : error 035: argument type mismatch (argument 2)
C:\Users\yan\Desktop\Battlegrounds\gamemodes\gw.pwn(353) : warning 203: symbol is never used: "gKilledBy"
Pawn compiler 3.2.3664                          Copyright (c) 1997-2006, ITB CompuPhase


9 Errors.

Code:

new PlayerText:gYouKilled[MAX_PLAYERS];

Bad show alpha

[Ajuda] Bug com DIALOG TABLIST HEADERS

$
0
0
Parece ser uma duvida inútil mas é muito chatinho trabalhar com essa dialog, to tentando adaptar a DIALOG TABLIST HEADERS ao meu sistema de relatos, mas não consigo, to quebrando a cabeça então resolvi pedir ajuda aqui, ficarei grato se alguém souber a solução ou o erro que está ocasionando isso :confused:







Codigo
PHP Code:

    if(rows)
    {
        for(new 
0rowsi++ )
        {
            
cache_get_field_content(i,"Jogador",NomePlayermysql);
            
cache_get_field_content(i,"Relato",Relatosmysql);
            
cache_get_field_content(i,"Hora"Horariomysql);
            
cache_get_field_content(i,"Minutos"Minutomysql);
            
cache_get_field_content(i,"Segundos"Segundomysql);
            
format(Resultado,sizeof(Resultado),"Player\tRelato\tHorario\t%s\n %s\t%s\t%d:%d:%d\n",ResultadoNomePlayerRelatosstrval(Horario), strval(Minuto), strval(Segundo));
        }
        
ShowPlayerDialog(playerid,666,DIALOG_STYLE_TABLIST_HEADERS,"Relatos",Resultado,"Ok","Sair");
    }
    else 
SendClientMessage(playerid, -1"sem relatos"); 

map doesnt change

$
0
0
I don't know what part of the code to show but Ill show u the tutorial
http://forum.sa-mp.com/showthread.php?t=269336


basically the map doesnt change.

(tell me what part i should show according from the tutorial)


heres the onplayerspawn though

Code:

public OnPlayerSpawn(playerid)
{
        switch( MapChange ) {
                case 0: {

                  new gMap1 = random( sizeof ( gMapSpawns1 ));
                 
                  SetPlayerPos(playerid, gMapSpawns1[gMap1][0], gMapSpawns1[gMap1][1], gMapSpawns1[gMap1][2]);
                 
                  SetPlayerFacingAngle(playerid, gMapSpawns1[gMap1][2]);
          }
          case 1: {
         
              new gMap2 = random( sizeof ( gMapSpawns2 ));

                  SetPlayerPos(playerid, gMapSpawns2[gMap2][0], gMapSpawns2[gMap2][1], gMapSpawns2[gMap2][2]);

                  SetPlayerFacingAngle(playerid, gMapSpawns2[gMap2][2]);
          }
  }
    return 1;
}

and the random positions for each map

Code:

new Float:gMapSpawns1[][]= {
{2161.4529,-1639.9576,14.2731},
{2250.9717,-1650.3555,15.4772},
{2245.1152,-1704.1963,22.8594},
{2317.3740,-1748.8496,13.3822},
{2352.1912,-1673.8510,13.5314},
{2427.8057,-1612.1277,26.6325},
{2513.1516,-1659.7305,13.6431},
{2522.6194,-1752.0939,13.5469},
{2463.5796,-1794.1737,13.6728}
};

new Float:gMapSpawns2[][]= {
{2229.6516,-1141.5068,25.7969},
{2197.3640,-1082.5574,39.3104},
{2223.5845,-1051.4462,48.1517},
{2207.5991,-1008.9668,61.5210},
{2143.5073,-1004.4036,61.9231},
{2427.8057,-1612.1277,26.6325},
{2081.8887,-1049.0695,30.9284},
{2052.9575,-1105.6431,24.4322},
{2040.0748,-1217.9811,22.8408}
};

Map does not load

.....


/class command help

$
0
0
Hey guys i need help how to make /class command.
I want to make when player type /class after 10 sec.
It should work similar like f4 to redirect you to class selection

problem with dialog skin

$
0
0
PHP Code:

    if(dialogid == 20){
          if(
response)
            {
                        new 
skinidmessage[64];
                        
skinid strval(inputtext);
                        if(
skinid || skinid 299)
                        {
                            
SendClientMessage(playerid, -1"{ff8000}(INFO) Skin id may be between 0 and 299.");
                        }
                        else
                        {
                            
skincmd[playerid] = true;
                            
SetPlayerSkin(playeridskinid);
                            
format(messagesizeof(message), "{ff8000}(INFO) You have changed your skin id to %d."skinid);
                            
SendClientMessage(playerid, -1message);
            }
           }
    } 

When i do /skin this dialog shows up, but when i input a skin id for example "23", it doesnt load neither shows any messages.

Problem with timer

$
0
0
Top:
PHP Code:

new statstimer

OnPlayerSpawn:
PHP Code:

    statstimer SetTimerEx("statsrefresh"1001"i"playerid); 

OnPlayerDisconnect:
PHP Code:

KillTimer(statstimer); 

So the timer works correctly, but it doesnt kill the timer for the ID that disconnected..

[Ajuda] Error gamemode

$
0
0
Tipo, eu mudei meu sistema de login e coloquei a criptografia pra sha256. So que agr fica dando debug quando iniciar o sampserver e dar um erro tmb
PHP Code:

[13:24:56] [debugRun time error 19"File or function is not found"
[13:24:56] [debug]  SHA256_PassHash
[13:24:56] [debugRun time error 19"File or function is not found"
[13:24:56] [debug]  SHA256_PassHash
[13:24:56Script[gamemodes/carp1.amx]: Run time error 19"File or function is not found"
[13:24:56Number of vehicle models

Help with one thing

$
0
0
Hey guys can you help my with one thing, so when i taking a box from pickup and i want bring him back when i step on same place for example on pickup where i taking it. This is my code how can i do that ?

HTML Code:

if( pickupid == gunpickup)
    {
            if(playerDB[playerid][jobrank] == 1)
        {
                SetPVarInt(playerid,"takingbox",true);
                SetPlayerSpecialAction(playerid,SPECIAL_ACTION_CARRY);
                SetPlayerAttachedObject( playerid, 0, 3052, 6, 0.018819, 0.079391, -0.248339, 254.016815, 355.439819, 262.296722, 1.000000, 1.000000, 1.000000 );
                return 1;
            }
    }

Viewing all 18226 articles
Browse latest View live


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