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

[Ajuda] Sistema de mudança de nick

$
0
0
Tipo alguém poderia me explicar ou me manda uma base de um sistema de mudar nick com historico em mysql.
tipo quando alguém trocar de nick irá ficar salvo o nick antigo na conta dele.

[Ajuda] /status em DIALOG

$
0
0
Quero colocar o /status em forma de dialog, alguem poderia transforma-lo?

Code:

if(strcmp("/status", cmd, true) == 0)
{
new plid;

if(sscanf(cmdtext, "s[8]u", cmd, plid))
{
SendClientMessage(playerid, COLOR_GREEN, "Use /status [id]");
return 1;
}
if(IsPlayerConnected(plid))
{
new string222[512];

format(string222, sizeof(string222), "......:::::: - %s: [ID: %d] - ::::::.....", GetPlayerNameEx(plid), plid);
SendClientMessage(playerid, -1, string222);

format(string, sizeof(string), "{CCFF00}» EXP: %d/%d {CCFF00}» Grana na Mão: $%d", PlayerInfo[plid][_EXP], MAX_PLAYER_EXP, GetPlayerGrana(plid));
SendClientMessage(playerid, -1, string);

format(string, sizeof(string), "{00BFFF}» Level: %d/%d {00BFFF}» Saldo Bancário: $%d", PlayerInfo[plid][_Level], MAX_PLAYER_LEVEL, PlayerInfo[plid][_SaldoBancario]);
SendClientMessage(playerid, -1, string);

format(string, sizeof(string), "{CCFF00}» Estudo: %d/%d {CCFF00}» Casou Com: %s", PlayerInfo[plid][_Faculdade], MAX_PLAYER_ESTUDO, PlayerInfo[plid][_CasouCom]);
SendClientMessage(playerid, -1, string);

format(string, sizeof(string), "{00BFFF}» Profissão ID: %d {00BFFF}» Skin ID: %d", PlayerInfo[plid][_Profissao], PlayerInfo[plid][_Skin]);
SendClientMessage(playerid, -1, string);

format(string, sizeof(string), "{CCFF00}» Matou: %d {CCFF00}» Morreu: %d", matou[plid], morreu[plid]);
SendClientMessage(playerid, -1, string);

format(string, sizeof(string), "{00BFFF}» Dias Vip: %d", GetVIPDays(plid));
SendClientMessage(playerid, -1, string);

SendClientMessage(playerid, -1, string222);

format(string, sizeof(string), "%s está vendo seu status. ( /status )", GetPlayerNameEx(playerid));
SendClientMessage(plid, COLOR_GREEN, string);
}
else
{
SendClientMessage(playerid, Vermelho, "Valor inválido, tente novamente!");
}
return 1;
}

[Map] CH Exterior For RP

MySQL Error.

$
0
0
Hello dears.
How can i fix this? i'm using CZ cnr gamemode And Ultra-h host.
Quote:

[20:50:38] Server Plugins
[20:50:38] --------------
[20:50:38] Loading plugin: crashdetect.so
[20:50:38] CrashDetect v4.15.1 is OK.
[20:50:38] Loaded.
[20:50:38] Loading plugin: streamer.so
[20:50:38] Loaded.
[20:50:38] Loading plugin: mysql.so
[20:50:38] SA:MP MySQL Plugin v2.1.1 Loaded.
[20:50:38] Loaded.
[20:50:38] [MySQL] Thread running. Threadsafe: Yes.
[20:50:38] Loading plugin: socket.so
[20:50:38] Socket plugin v0.2b loaded.
[20:50:38] Loaded.
[20:50:38] Loading plugin: MapAndreas.so
[20:50:38] Loaded.
[20:50:38] Loading plugin: audio.so
[20:50:38]

*** Audio Plugin v0.5 R2 by Incognito loaded ***

[20:50:38] Loaded.
[20:50:38] Loading plugin: mysql_static.so
[20:50:38] SA:MP MySQL Plugin v2.1.1 Loaded.
[20:50:38] Loaded.
[20:50:38] Loading plugin: libRegEx.so
[20:50:38] [MySQL] Thread running. Threadsafe: Yes.
[20:50:38]
[20:50:38] ------------------------------
[20:50:38] |
[20:50:38] | -> Regular Expression Plugin v0.2
[20:50:38] | -> Using Oniguruma v5.9.1
[20:50:38] |
[20:50:38] ------ (c) 2014, Koala -------
[20:50:38]
[20:50:38] Loaded.
[20:50:38] Loading plugin: whirlpool.so
[20:50:38]
[20:50:38] ==================
[20:50:38]
[20:50:38] Whirlpool loaded
[20:50:38]
[20:50:38] ==================
[20:50:38]
[20:50:38] Loaded.
[20:50:38] Loading plugin: libRegEx_static.so
[20:50:38]
[20:50:38] ------------------------------
[20:50:38] |
[20:50:38] | -> Regular Expression Plugin v0.2
[20:50:38] | -> Using Oniguruma v5.9.5
[20:50:38] |
[20:50:38] ------ (c) 2014, Koala -------
[20:50:38]
[20:50:38] Loaded.
[20:50:38] Loading plugin: sscanf.so
[20:50:38]

[20:50:38] ===============================

[20:50:38] sscanf plugin loaded.

[20:50:38] Version: 2.8.1

[20:50:38] (c) 2012 Alex "Y_Less" Cole

[20:50:38] ===============================

[20:50:38] Loaded.
[20:50:38] Loaded 11 plugins.

[20:50:38]
[20:50:38] Filterscripts
[20:50:38] ---------------
[20:50:38] Loading filterscript 'UltraHost.amx'...
[20:50:38] Loading filterscript 'gps.amx'...
[20:50:38]
--------------------------------------
[20:50:38] GPS System Loaded
[20:50:38] 0, -2438.551025, 741.183044, 35.107868, Supa Save
[20:50:38] 1, -1795.019897, 576.496948, 35.166793, VIP Lounge
[20:50:38] 2, -1927.602294, 261.575897, 40.718589, Vehicle Dealership SF
[20:50:38] 3, -2621.093017, 217.150161, 4.283658, Ammunation
[20:50:38] 4, -2632.546142, 619.860168, 14.132818, Hospital
[20:50:38] 5, -1890.214599, 813.722656, 35.422653, Job Center
[20:50:38] 6, -1777.782958, 1201.687133, 24.803468, Bomb Shop
[20:50:38] 7, -1566.389892, 1170.356201, 7.187500, Mini-Games
[20:50:38] 8, -1508.060424, 923.515014, 6.869043, San Fierro Bank
[20:50:38] 12, -1424.326660, -292.509002, 14.148400, Airport SF
[20:50:38] GPS System Loaded...
[20:50:38] --------------------------------------

[20:50:38] Loading filterscript 'shouryamaps.amx'...
[20:50:38] Loading filterscript 'antirapidfire.amx'...
[20:50:38] Loading filterscript 'vehiclename.amx'...
[20:50:38]
--------------------------------------
[20:50:38] Loaded Vehicle Names v1.1
[20:50:38] by biltong
[20:50:38] --------------------------------------

[20:50:38] Loading filterscript 'Helmet.amx'...
[20:50:38] Loading filterscript 'FarmerJob.amx'...
[20:50:38]
----------------------------
[20:50:38] Farmer Job FS Made by Virusa1
[20:50:38] ----------------------------

[20:50:38] Loaded 7 filterscripts.

[20:50:38]
[20:50:38]
[20:50:38]
[20:50:38] =======================================
[20:50:38] | |
[20:50:38] | YSI version 3.09.0684 |
[20:50:38] | By Alex "Y_Less" Cole |
[20:50:38] | |
[20:50:38] =======================================
[20:50:38]
[20:50:38] [MySQL] Error (0): Failed to connect. Access denied for user 'server_142'@'localhost' to database 'server_142'.
[20:50:38] Failed to connect. Access denied for user 'server_142'@'localhost' to database 'server_142'.
[20:50:38] Loading Vehicles
[20:50:38] (1) Loaded! Owner: 24
[20:50:38] (2) Loaded! Owner: 24
[20:50:38] (3) Loaded! Owner: 24
[20:50:38] (4) Loaded! Owner: 24
[20:50:38] (5) Loaded! Owner: 24
[20:50:38] (6) Loaded! Owner: 24
[20:50:38] (7) Loaded! Owner: 24
[20:50:38] (8) Loaded! Owner: 110781
[20:50:38] (9) Loaded! Owner: 110781
[20:50:38] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Access denied for user 'server_142'@'localhost' to database 'server_142'.
[20:50:38] Function: mysql_query called when not connected to any database. Access denied for user 'server_142'@'localhost' to database 'server_142'.
[20:50:38]
-----------------------------------
[20:50:38] Cops and Robbers, by shourya

unreachable code

$
0
0
Code:

CMD:gotojob(playerid, params[])
{
        if(gPlayerLogged[playerid] == 0) return SCM(playerid, COLOR_LIGHTRED, "You need to log in first.");
        if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COLOR_LIGHTRED, "Nu ai acces la aceasta comanda.");
        {
                ShowPlayerDialog(playerid, DIALOG_GOTOJOB, DIALOG_STYLE_LIST,"Gotojob", "Detective\nDrugs Dealer\nPizza Boy\nBus Driver\nArms Dealer\nGarbageman\nFisherman\nTrucker\nFarmer");
                return 1;
        }
        return 1;
}

D:\server\gamemodes\ExtremeGame.pwn(23571) : warning 225: unreachable code

[Ajuda] Tirar sistema de Casas com Carros

$
0
0
Ola Rapaziada , preciso da ajuda de vcs , estou editando uma gm e ela tem um sistema muito brega pra Rpg

todas as casas tem 1 carro na garagem , quando vc compra 1 casa vc tem acesso ao carro

Único código Que achei

//====================================[CARROS CASAS '-']================================================
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hAtiva] == 1)
{
HouseInfo[h][hVeiculo] = CreateVehicle(HouseInfo[h][hVec], HouseInfo[h][hSpawnX], HouseInfo[h][hSpawnY], HouseInfo[h][hSpawnZ], HouseInfo[h][hSpawnA], HouseInfo[h][hVcol1], HouseInfo[h][hVcol2], 6000000);
VTrancado[HouseInfo[h][hVeiculo]] = 1;
LockCar(HouseInfo[h][hVeiculo]);
SetVehicleToRespawn(HouseInfo[h][hVeiculo]);
}
}//100

[Ajuda] Empresa só é vendida quando da /gmx

$
0
0
Eu pensei que o sistema tava ruim ontem mas hj eu percebi que esta funcionando perfeitamente o unico problema é que quando compram a empresa o nome só atualiza quando da /gmx no servidor como faço pro nome aparecer na hora que o player comprar sem ter que dar /gmx no servidor ?
e também quando dou /comprarempresa diz que o comando não existe como faço pra parar de dar essa mensagem já que o comando está funcionando?


o salvamento da minha casa / empresa / mini empresa / fazenda :

SaveCasa(h);
SalvarEmpresa(b);
SalvarSEmpresa(sb);
SalvarFEmpresa(fb);

https://pastebin.com/AHkLRVY8



https://uploaddeimagens.com.br/image...9-f6c400039b44

Gamemode isn't saving stats (Y_Less & Kush's tutorial)

$
0
0
Hey,

I am using the latest SA-MP (DL version); and I can't get the system to write the stats in the text file that I created a folder for..

Here is my script:

Code:

#include <a_samp>
#include <YSI\y_ini>

main( ) { }

//======= DEFINITIONS =========

//Registration System
#define PATH "/Accounts/%s.ini"

#define DIALOG_REGISTER 1
#define DIALOG_LOGIN 2
#define DIALOG_SUCCESS_1 3
#define DIALOG_SUCCESS_2 4

#define COL_WHITE "{FFFFFF}"
#define COL_RED "{F81414}"
#define COL_GREEN "{00FF22}"
#define COL_LIGHTBLUE "{00CED1}"
//---------------------------

//====== END OF DEFINITIONS =========

//========= ENUMS =============

//Registration System
enum pInfo
{
    pPass,
    pCash,
    pAdmin,
    pKills,
    pDeaths
}
new PlayerInfo[MAX_PLAYERS][pInfo];
//--------------------------------------

//======== END OF ENUMS =========


//======== FUNCTIONS ========================
//Registration System
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
        INI_Int("Password",PlayerInfo[playerid][pPass]);
        INI_Int("Cash",PlayerInfo[playerid][pCash]);
        INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
        INI_Int("Kills",PlayerInfo[playerid][pKills]);
    INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
        return 1;
}
//---------------------------------
//========== END OF FUNCTIONS ===============

//========== STOCKS ==============
//REGISTRATION SYSTEM
stock UserPath(playerid)
{
        new string[128],playername[MAX_PLAYER_NAME];
        GetPlayerName(playerid,playername,sizeof(playername));
        format(string,sizeof(string),PATH,playername);
        return string;
}
/*Credits to Dracoblue*/
stock udb_hash(buf[]) {
        new length=strlen(buf);
    new s1 = 1;
    new s2 = 0;
    new n;
    for (n=0; n<length; n++)
    {
      s1 = (s1 + buf[n]) % 65521;
      s2 = (s2 + s1)    % 65521;
    }
    return (s2 << 16) + s1;
}
//--------------------------------------
//============= END OF STOCKS =================


public OnGameModeInit()
{
        // Don't use these lines if it's a filterscript
        SetGameModeText("Life of Fort Carson");
        AddPlayerClass(76,-177.3635,1110.9661,19.7422,132.1115,0,0,0,0,0,0); // FORTCARSONSPAWN
        return 1;
}

public OnGameModeExit()
{
        return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
        SetPlayerPos(playerid, -199.6335, 1104.6046, 19.5938);
        SetPlayerCameraPos(playerid, -193.4531, 1101.3687, 19.5938);
        SetPlayerCameraLookAt(playerid, -196.6335, 1103.3114, 19.5938);
        return 1;
}

public OnPlayerConnect(playerid)
{
        if(fexist(UserPath(playerid)))
        {
                new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
            GetPlayerName(playerid, pname, sizeof(pname));
            format(string, sizeof(string), "%s has joined the server", pname);
            SendClientMessageToAll(0xAAAAAAAA, string);
           
                INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                  ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
        }
        else
        {
                ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
        }
        return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
        new INI:File = INI_Open(UserPath(playerid));
        INI_SetTag(File,"data");
        INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
        INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
        INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
        INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
        INI_Close(File);
       
        new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    switch(reason)
    {
        case 0: format(string, sizeof(string), "%s has left the server. (Lost Connection)", pname);
        case 1: format(string, sizeof(string), "%s has left the server. (Leaving)", pname);
        case 2: format(string, sizeof(string), "%s has left the server. (Kicked)", pname);
    }
    SendClientMessageToAll(0xAAAAAAAA, string);
   
        return 1;
}

public OnPlayerSpawn(playerid)
{
        return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
        PlayerInfo[killerid][pKills]++;
        PlayerInfo[playerid][pDeaths]++;
        return 1;
}

public OnVehicleSpawn(vehicleid)
{
        return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
        return 1;
}

public OnPlayerText(playerid, text[])
{
        return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
        if (strcmp("/savemyshit", cmdtext, true, 10) == 0)
        {
                new INI:File = INI_Open(UserPath(playerid));
                INI_SetTag(File,"data");
                INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
                INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
                INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
                INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
                INI_Close(File);
                SendClientMessage(playerid, 0x00FF00FF, "SAVEMYSHIT WORKS!");
                return 1;
        }
       
        return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
        return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
        return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
        return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
        return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
        return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
        return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
        return 1;
}

public OnRconCommand(cmd[])
{
        return 1;
}

public OnPlayerRequestSpawn(playerid)
{
        return 1;
}

public OnObjectMoved(objectid)
{
        return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
        return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
        return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
        return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
        return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
        return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
        return 1;
}

public OnPlayerExitedMenu(playerid)
{
        return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
        return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
        return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
        return 1;
}

public OnPlayerUpdate(playerid)
{
        return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
        return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
        return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
        return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
        return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch( dialogid )
    {
        case DIALOG_REGISTER:
        {
            if (!response) return Kick(playerid);
            if(response)
            {
                if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_WHITE"Registering...",""COL_RED"You have entered an invalid password.\n"COL_WHITE"Type your password below to register a new account.","Register","Quit");
                new INI:File = INI_Open(UserPath(playerid));
                INI_SetTag(File,"data");
                INI_WriteInt(File,"Password",udb_hash(inputtext));
                INI_WriteInt(File,"Cash",0);
                INI_WriteInt(File,"Admin",0);
                INI_WriteInt(File,"Kills",0);
                INI_WriteInt(File,"Deaths",0);
                INI_Close(File);
               
                SetSpawnInfo(playerid, 0, 0, -177.36, 1110.96, 19.74, 132.11, 0, 0, 0, 0, 0, 0);
                //SpawnPlayer(playerid);
                ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX,""COL_WHITE"Welcome to Fort Carson",""COL_GREEN"Thank you for registering your database","Ok","");
                        }
        }

        case DIALOG_LOGIN:
        {
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
                {
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
                                        ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_GREEN"You have successfully logged in!","Ok","");
                }
                else
                {
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"You have entered an incorrect password.\n"COL_WHITE"Type your password below to login.","Login","Quit");
                }
                return 1;
            }
        }
    }
    return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
        return 1;
}

I even tried to make a command that forces the INI file to open and save, but it didn't work either.

Code:

public OnPlayerCommandText(playerid, cmdtext[])
{
        if (strcmp("/savemyshit", cmdtext, true, 10) == 0)
        {
                new INI:File = INI_Open(UserPath(playerid));
                INI_SetTag(File,"data");
                INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
                INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
                INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
                INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
                INI_Close(File);
                SendClientMessage(playerid, 0x00FF00FF, "SAVEMYSHIT WORKS!");
                return 1;
        }
       
        return 0;
}


Help?

$
0
0
I started writing some code and I used Kush's tutorial on how to create a registration system and he's using Y_Less' stuff.. The whole thing works okay, but it never saves stats.. One question, is it a SA-MP 0.3DL-related problem? Do we need something new to use to make a registration system?

[Pedido] Procuro Scripter $$$

$
0
0
Olá, Boa madruga, eu estou com um projeto de lançar um servidor no estilo Survival, eu tenho a GM e tudo, esse servidor já ficou online uma vez, estou querendo voltar com ele, porém com mais atualizações e novos sistemas, eu mexo um pouco no pawno, mas não sei fazer tudo que eu quero, queria poder estudar mais a linguagem e trazer eu mesmo sistemas e etc, porém eu trabalho o dia todo e também não quero mais me estressar com isso, estou a procura de um Scripter bom, estarei negociando com interessados, pretendo pagar em dinheiro, interessados deixe um meio de contato ai, Skype, ******** qualquer coisa, algo do tipo, para irmos afundo ao assunto e eu falar mais sobre a GM e tudo mais.

hi how to fix this

$
0
0
hi when player joined to my server hes account bugged and cant join and this message showed on server log:

[18:05:10] [debug] Run time error 4: "Array index out of bounds"
[18:05:10] [debug] Accessing element at negative index -400
[18:05:10] [debug] AMX backtrace:
[18:05:10] [debug] #0 001290cc in public OnPlayerLogin (1, 82243768) from server.amx
[18:05:10] [debug] #1 002a8dac in public OnDialogResponse (1, 2, 1, -1, 81906156) from server.amx

Pawn Compiler for MAC

$
0
0
i see that there are compilers for Windows & Linux, there are times that my PC gets broken down and needs to rest for weeks or much and the only PC i can use is our Family MacBook, is there a way to compile pwn scripts from macbook?

Help with dialogs.inc (TextDraws)

$
0
0
Hi guys

I need help with Dialogs.inc,I need to increase textdraw size but i don't know how to find it textdraw in include(I'm not good with textdraws :/ )

I use this inc: https://pastebin.com/tpt9WC3W

I need to increase this textdraw:

http://prntscr.com/jdkjxk

Because my players on some resolutions don't see it...(it's dimly etc)

Thanks

Question

$
0
0
Hi all :)

How to type php codes...

Thank You...

[Ajuda] Mira sniper

$
0
0
Olá galera,
Gostaria de saber se têm algum jeito de tirar o objeto da mira.
Ex: Quando jogador têm um objeto pelo corpo dependendo do local ele fica na mira da sniper; Obrigado.
OBS¹: Não precisa ser código pronto, vlw!
OBS²:Já estou procurando um bom tempo e não encontrei.

[Ajuda] Comando /admins

$
0
0
Estou tendo um problema com o comando /admins, simplesmente mostra 1 administrador, não aparece os demais !


PHP Code:

CMD:admins(playeridparams[])
{
    new 
count 0;
    { 
        if(
jInfo[playerid][Logado] == true)
        {
            
            for (new 
0MAX_PLAYERSi++)
            {
                if(
IsPlayerConnected(i))
                {
                    if(
jInfo[i][Cargo] > 0)
                    {
                        new 
StrAdmins[1000];
                        new 
Str1[128];
                        
format(Strsizeof(Str), "{FFFFFF}Administrador Online no Momento !\n");
                        
format(Str1sizeof(Str1), "{FFFFFF}[ %s {FFFFFF}] {FF8000}%s (%d) {FFFFFF}está {00FF00}Online\n"LevelAdmin[jInfo[i][Cargo]], jNome(i), i); 
                        
strcat(StrAdminsStr1000);
                        
strcat(StrAdminsStr11000);
                        
ShowPlayerDialog(playeridDAdminsOnlineDIALOG_STYLE_MSGBOX"{FFA500}Administradores"StrAdmins"Fechar""");
                        
count++;
                    }
                }
            }
        }
        if(
count == 0)
        {
            
format(Strsizeof(Str), "{FF0000}Nenhum administrador Online no momento !");
            
ShowPlayerDialog(playeridDAdminsOnlineDIALOG_STYLE_MSGBOX"{FFA500}Administradores"Str"Fechar""");
        }
    }
    return 
1;


Screenshoot

https://prnt.sc/jdtaac

Object ID?

How to disable the sound of waves?

$
0
0
Is possible to disable sound of waves?

PlayerPlaySound
"Sound ID 1 can be used to disable the interior 0 (default) ambience track (wind noise). Hint: it can help to create more realistically fake interiors."

I'm using PlayerPlaySound id 1 but is not working, I'm still listening waves sounds.
SA-MP Version: 0.3.DL

[Off] Erro 0xc00007b

$
0
0
Bom primeiramente ja vi tutorial para tentar resolver os erros.

max payne 3 > da erro erro 0xc00007b

sniper ghost warrior 2 > erro 0xc00007b

samp > crasha podem me ajudar? oq qq eu atualizo '-' eu ja fiz de tudo e nd ;(

Help

$
0
0
I have problem wich cmd gulaz in gamemode dont show erros but in server.log when i use command gulaz write error in server.log

my script
Code:

CMD:gulaz(playerid, params[]) {
    new id = GetNearestGarage(playerid);
    if(id == -1) return Error(playerid, "Nema garaze u blizini.");
    new gtype = GarazaInfo[id][garageType];
        if(GarazaInfo[id][garageLocked] == true) return Error(playerid, "Ova garaza je zakljucana.");
        if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
                JBC_SetPlayerPos(playerid, GarageInteriors[gtype][0], GarageInteriors[gtype][1], GarageInteriors[gtype][2]);
                UsaoInt[playerid] = 1;
            GameTextForPlayer(playerid, "~g~Ucitavanje objekata", 2500, 4);
            SetTimerEx("UnfreezemeMacko", 2000, false, "i", playerid);
                TogglePlayerControllable(playerid, false);
                  SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid, floatround(GarageInteriors[gtype][4]));
                SetPlayerVirtualWorld(playerid, GarazaInfo[id][garageVW]);
                SetPlayerFacingAngle(playerid, GarageInteriors[gtype][3]);
                EnteredGarage[playerid] = id;
                SendInfoMessage(playerid, "Da izadjete iz garaze kucajte /gizlaz.");
        }
          else if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
                new vehicle = GetPlayerVehicleID(playerid);
                LinkVehicleToInterior(vehicle, floatround(GarageInteriors[gtype][4]));
                SetVehicleVirtualWorld(vehicle, GarazaInfo[id][garageVW]);
                JBC_SetVehiclePos(vehicle, GarageInteriors[gtype][0], GarageInteriors[gtype][1], GarageInteriors[gtype][2]);
        UsaoInt[playerid] = 1;
            GameTextForPlayer(playerid, "~g~Ucitavanje objekata", 2500, 4);
            SetTimerEx("UnfreezemeMacko", 2000, false, "i", playerid);
                TogglePlayerControllable(playerid, false);
                  SetCameraBehindPlayer(playerid);
                SetPlayerInterior(playerid, floatround(GarageInteriors[gtype][4]));
                SetPlayerVirtualWorld(playerid, GarazaInfo[id][garageVW]);
                SetVehicleZAngle(vehicle, GarageInteriors[gtype][3]);
                EnteredGarage[playerid] = id;
                SendInfoMessage(playerid, "Da izadjete iz garaze kucajte /gizlaz.");
        }
        else return Error(playerid, "Komandu mozes koristiti samo ako si na nogama ili na vozacevom mestu.");
        return true;
}

Code:

[22:36:57] [debug] Run time error 4: "Array index out of bounds"
[22:36:57] [debug]  Attempted to read/write array element at index 3 in array of size 3
[22:36:57] [debug] AMX backtrace:
[22:36:57] [debug] #0 0068f284 in public cmd_gulaz (0, 37433560) from JMRP.amx
[22:36:57] [debug] #1 native CallLocalFunction () from samp-server.exe
[22:36:57] [debug] #2 00002740 in public OnPlayerCommandText (0, 37433532) from JMRP.amx
[22:37:05] [debug] Run time error 4: "Array index out of bounds"
[22:37:05] [debug]  Attempted to read/write array element at index 3 in array of size 3
[22:37:05] [debug] AMX backtrace:
[22:37:05] [debug] #0 0068f284 in public cmd_gulaz (0, 37433560) from JMRP.amx
[22:37:05] [debug] #1 native CallLocalFunction () from samp-server.exe
[22:37:05] [debug] #2 00002740 in public OnPlayerCommandText (0, 37433532) from JMRP.amx
[22:37:07] [debug] Run time error 4: "Array index out of bounds"
[22:37:07] [debug]  Attempted to read/write array element at index 3 in array of size 3
[22:37:07] [debug] AMX backtrace:
[22:37:07] [debug] #0 0068f284 in public cmd_gulaz (0, 37433560) from JMRP.amx
[22:37:07] [debug] #1 native CallLocalFunction () from samp-server.exe
[22:37:07] [debug] #2 00002740 in public OnPlayerCommandText (0, 37433532) from JMRP.amx
[22:37:34] [debug] Run time error 4: "Array index out of bounds"
[22:37:34] [debug]  Attempted to read/write array element at index 3 in array of size 3
[22:37:34] [debug] AMX backtrace:
[22:37:34] [debug] #0 0068eec4 in public cmd_gulaz (0, 37433560) from JMRP.amx
[22:37:34] [debug] #1 native CallLocalFunction () from samp-server.exe
[22:37:34] [debug] #2 00002740 in public OnPlayerCommandText (0, 37433532) from JMRP.amx
[22:41:07] [debug] Run time error 4: "Array index out of bounds"
[22:41:07] [debug]  Attempted to read/write array element at index 3 in array of size 3
[22:41:07] [debug] AMX backtrace:
[22:41:07] [debug] #0 0068eec4 in public cmd_gulaz (0, 37433560) from JMRP.amx
[22:41:07] [debug] #1 native CallLocalFunction () from samp-server.exe
[22:41:07] [debug] #2 00002740 in public OnPlayerCommandText (0, 37433532) from JMRP.amx

Viewing all 18226 articles
Browse latest View live


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