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

Vídeo do sistema

$
0
0
Vídeo mostrando um pouco do avanço no desenvolvimento do meu sistema de casas 100% feito do zero.
O que esse sistema vai ter de diferente, é a sua optimização em relação a quantidade de linhas necessárias no GM.
Serão necessárias menos linhas que os demais sistemas, pois esse sistema vai ser 100% automático no que diz respeito ao carregamento e criação das casas / empresas no servidor.

O desenvolvimento do sistema está em 40%.
Ainda resta desenvolver os comandos :

/vender casa
/alugar casa
/definir aluguel
/cofre casa

Dentre outros comandos.
Mas a parte principal do código, o "esqueleto" do sistema está praticamente todo programado, restando apenas algumas adições.

Até o próximo update


update 2 https://youtu.be/h6LEKIsKVF0

update 1 https://youtu.be/OMB4FO9ZN84

Important features to have on release? Roleplay.

$
0
0
I would like to know what you guys think are important features to have on release for a Roleplay script? I'm thinking, Jobs, Vehicles (ownership, Rentable ETC), Houses, Factions, Businesses, drugs and weapons anything else?

Case Study Help in Dubai

$
0
0
For any academician, case studies are an integral part of their career. Most commonly, as students, they must submit their analyses of notable cases on a large variety of cases. These cases are usually relevant to their syllabus and extremely important to portray their understanding of the subject. This is especially a common trend in the UAE. Most colleges have some Case Study Help in Dubai as an integral part of the curriculum. These are often administered as examinations or assignments that carry a significant weightage when it comes to the overall grade of the student in the subject.

What is dugi's discord ID?

$
0
0
Hey,

Does anyone know dugi's discord ID? Mine is "linuxthefish#3084".

Thanks!

[Ajuda] Vida Samp

$
0
0
Há possibilidade da criação de uma vida secundária? e um colete secundário?

[HELP]3DText Geo-Location on Player name

$
0
0
I want to know how to do this, example:
Mark(id:0)(polish, male)

here's a pic (sorry for low quality).

weapon config error

$
0
0
When I put in the weapon config inc file, the pawno shows this error:

Code:

D:\Szerver\PAWNO\include\weapon-config.inc(2217) : error 017: undefined symbol "FreezeSyncPacket"
D:\Szerver\PAWNO\include\weapon-config.inc(2217) : warning 215: expression has no effect
D:\Szerver\PAWNO\include\weapon-config.inc(2217) : error 001: expected token: ";", but found ")"
D:\Szerver\PAWNO\include\weapon-config.inc(2217) : error 029: invalid expression, assumed zero
D:\Szerver\PAWNO\include\weapon-config.inc(2217) : fatal error 107: too many error messages on one line

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


4 Errors.

whats the problem?

[Off] Vídeo do sistema

$
0
0
Vídeo mostrando um pouco do avanço no desenvolvimento do meu sistema de casas 100% feito do zero.
O que esse sistema vai ter de diferente, é a sua optimização em relação a quantidade de linhas necessárias no GM.
Serão necessárias menos linhas que os demais sistemas, pois esse sistema vai ser 100% automático no que diz respeito ao carregamento e criação das casas / empresas no servidor.

O desenvolvimento do sistema está em 40%.
Ainda resta desenvolver os comandos :

/vender casa
/alugar casa
/definir aluguel
/cofre casa

Dentre outros comandos.
Mas a parte principal do código, o "esqueleto" do sistema está praticamente todo programado, restando apenas algumas adições.

Até o próximo update


update 2 https://youtu.be/h6LEKIsKVF0

update 1 https://youtu.be/OMB4FO9ZN84

MYSQL FIle.

$
0
0
When I try to compile my mysql.pwn I get those erros.

Quote:

\gamemodes\modules\server\connection.pwn(15) : error 017: undefined symbol "mysql_connect"
\gamemodes\modules\server\connection.pwn(16) : error 017: undefined symbol "mysql_log"
\gamemodes\modules\server\connection.pwn(17) : warning 217: loose indentation
\gamemodes\modules\server\connection.pwn(17) : error 017: undefined symbol "mysql_errno"
\gamemodes\modules\server\connection.pwn(19) : error 017: undefined symbol "mysql_log"
\gamemodes\modules\server\connection.pwn(20) : error 017: undefined symbol "printf"
\gamemodes\modules\server\connection.pwn(21) : warning 217: loose indentation
\gamemodes\modules\server\connection.pwn(21) : error 017: undefined symbol "printf"
\gamemodes\modules\server\connection.pwn(22) : warning 217: loose indentation
\gamemodes\modules\server\connection.pwn(22) : error 017: undefined symbol "printf"
\gamemodes\modules\server\connection.pwn(26) : error 017: undefined symbol "printf"
\gamemodes\modules\server\connection.pwn(27) : warning 217: loose indentation
\gamemodes\modules\server\connection.pwn(27) : error 017: undefined symbol "printf"
\gamemodes\modules\server\connection.pwn(28) : warning 217: loose indentation
\gamemodes\modules\server\connection.pwn(28) : error 017: undefined symbol "printf"
\gamemodes\modules\server\connection.pwn(31) : warning 217: loose indentation
\gamemodes\modules\server\connection.pwn(34) : warning 235: public function lacks forward declaration (symbol "OnQueryError")
\gamemodes\modules\server\connection.pwn(38) : error 017: undefined symbol "CR_SERVER_GONE_ERROR"
\gamemodes\modules\server\connection.pwn(40) : error 017: undefined symbol "printf"
\gamemodes\modules\server\connection.pwn(41) : error 017: undefined symbol "mysql_reconnect"
\gamemodes\modules\server\connection.pwn(43) : error 017: undefined symbol "ER_SYNTAX_ERROR"
\gamemodes\modules\server\connection.pwn(45) : error 017: undefined symbol "printf"
\gamemodes\modules\server\connection.pwn(49) : error 017: undefined symbol "format"
\gamemodes\modules\server\connection.pwn(49) : warning 202: number of arguments does not match definition
\gamemodes\modules\server\connection.pwn(49) : warning 202: number of arguments does not match definition
\gamemodes\modules\server\connection.pwn(49) : warning 202: number of arguments does not match definition
\gamemodes\modules\server\connection.pwn(50) : error 017: undefined symbol "SendAdminsMessage"
\gamemodes\modules\server\connection.pwn(51) : error 017: undefined symbol "print"
\gamemodes\modules\server\connection.pwn(52) : error 017: undefined symbol "format"
\gamemodes\modules\server\connection.pwn(52) : warning 202: number of arguments does not match definition
\gamemodes\modules\server\connection.pwn(52) : warning 202: number of arguments does not match definition
\gamemodes\modules\server\connection.pwn(52) : warning 202: number of arguments does not match definition
\gamemodes\modules\server\connection.pwn(53) : error 017: undefined symbol "SendAdminsMessage"
\gamemodes\modules\server\connection.pwn(54) : error 017: undefined symbol "print"
\gamemodes\modules\server\connection.pwn(55) : error 017: undefined symbol "format"
\gamemodes\modules\server\connection.pwn(55) : warning 202: number of arguments does not match definition
\gamemodes\modules\server\connection.pwn(55) : warning 202: number of arguments does not match definition
\gamemodes\modules\server\connection.pwn(55) : warning 202: number of arguments does not match definition
\gamemodes\modules\server\connection.pwn(56) : error 017: undefined symbol "SendAdminsMessage"
\gamemodes\modules\server\connection.pwn(57) : error 017: undefined symbol "print"
\gamemodes\modules\server\connection.pwn(15) : warning 204: symbol is assigned a value that is never used: "SQL_CONNECTION"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

Prospect Roleplay - A new medium roleplay community.

$
0
0


Server IP: 5.253.86.232:4581




We have built our community on the idea that anything is possible.
After watching many servers both succeed and fail, we've taken the
time to look into the problems of each community and try our best to prevent them on ours.
We can only hope that you give us the opportunity to provide a safe
and enjoyable community for you to share your ideas and roleplay the
way you want to. We encourage new and old players alike to share in the
creativity and suggest things that would enhance the roleplay experience
for both themselves and other. Gaming Nation Roleplay, known for its grandeur place and friendly
players Different roles of every players must be
kept preserved and acted well upon contact with other players. Make sure to
join us for tons and tons of fun and events! Join us and Register for a splendid
experience alongside with different shenanigans of many suitable players.





Our Administration team is friendly, professional and actually know what
they're doing. You won't be left hanging when you join the server and ask
for help, our staff is always there for you, all you need to do is call them!

Owner and the Lead Developers have a long experience in the roleplay scenario
and they have been working hard in order to make the server work the way it
should and the way it will. We take criticism seriously, so if you have any
suggestions or ideas, leave them to us on the Forums!



Server IP: 5.253.86.232:4581

Discord Server: https://discord.gg/kBXhSdm

Website: www.prospectroleplay.com (under development)

Server Location: Los Santos and County

Version: SA-MP 0.3.7

We are currently looking for community helpers
few staff members, faction members and gang leaders!

So, what are you waiting for? Join us today and pay us a visit!
We're expecting you





We update our script on a weekly basis, after taking
every player's feedback into consideration. We also have some unique features,
combined with custom mappings and helpful personnel! with a lot of jobs, from
trucking to pizzaman job! We have started from a base script/bugged script,
we spend a lot time in fixing the bugs, around 3-4 months in development.

How I do this?

$
0
0
What I want to do is make object 70 go to object 131 without all those if (InfoSuelo

Code:

if (EstaEnSuelo[i][DropID] == 70) SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
Example of what I don't want
Code:

if (InfoSuelo[i][DropID] == 71) SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
if (InfoSuelo[i][DropID] == 72) SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
if (InfoSuelo[i][DropID] == 73) SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);

Thanks Community :p:p

Weapon Wrong Spawn Bug

$
0
0
Hi there!

I got trouble in my weapon system. So, this weapon system aren't load properly.

Firstly, i use /givewep command to ID 0 (which is me, Josh_Rone)

And then, i relog. The next guy who logged in as ID 0 will get my weapon. "BUT" not only ID 0. The next ID and all ID will get this, too. Because I've been reset ID 0 weapon after Josh_Rone disconnect.

Please, guide me about this. I have no idea anymore. :(

Code:


hook OnPlayerDisconnect(playerid, reason) {
        if((GetPlayerSQLID(playerid) != -1)) {

                foreach(new i : Player) if(view_weapon[i] == playerid) {
                        view_weapon[i] = INVALID_PLAYER_ID;
                }
                view_weapon[playerid] = INVALID_PLAYER_ID;

                SavePlayerWeapon(playerid);

                for (new i = 0; i < MAX_WEAPON_SLOT; i ++) if(PlayerGuns[playerid][i][weapon_id])
            {
                PlayerGuns[playerid][i][weapon_id]          = 0;
                PlayerGuns[playerid][i][weapon_ammo]        = 0;
                PlayerGuns[playerid][i][weapon_slot]        = 0;
                PlayerGuns[playerid][i][weapon_durability]  = 0;
            }
            ResetPlayerWeapons(playerid);
        }
}

SavePlayerWeapon(playerid) {
        for(new i = 1; i < MAX_WEAPON_SLOT; i++)
        {
                new
                        query[300]
                ;

                if(!PlayerGuns[playerid][i][weapon_id]) continue;
               
                mysql_format(g_iHandle, query, sizeof(query), "INSERT INTO weapon_players VALUES ('%d', '%d', '%d', '%d', '%d', '%d') ON DUPLICATE KEY UPDATE ammo = %d, durability = %d, created = %d", GetPlayerSQLID(playerid), i, PlayerGuns[playerid][i][weapon_id], PlayerGuns[playerid][i][weapon_ammo], PlayerGuns[playerid][i][weapon_durability], gettime(), PlayerGuns[playerid][i][weapon_ammo], PlayerGuns[playerid][i][weapon_durability], gettime());
                mysql_pquery(g_iHandle, query);
        }
        return 1;
}

hook OnPlayerSpawn (playerid)

RefreshWeapon(playerid);

RefreshWeapon(playerid)
{
        ResetPlayerWeapons(playerid);

        for(new i = 1; i != MAX_WEAPON_SLOT; i++) { //if(PlayerGuns[playerid][i][weapon_id]) {
        GivePlayerWeapon(playerid, PlayerGuns[playerid][i][weapon_id], 999999);
    }
}

Kaclor Read Plz

$
0
0
Hi Kalсor I want to learn how to become a seller tabs Hosted I have been playing GTA San Andreas Multiplayer since 2010 And I would like to become a seller about myself I am 17 I live in Georgia and I’m a crazy GTA San Andreas Multiplayer fan There are days when I sit in sump and play watching new things, etc. Thank you if you answer and give permission


Sorry again, I don’t speak English. It was all translated by ****** Translate

Robbery

$
0
0
Can someone show me how to create a robbery with commands?
Like, /createact which create a NPC and when you aim at it, you start robbery.

[HELP] Tag Mismatch and other errors

$
0
0
Hello... I've some errors with my script for gate opening...
Can anyone help me?

PHP Code:

new Gate[][gates] =
    
//El Corona's gate
    
{
        
20,
        
7657,
        {
1812.9089, -2067.444314.3881}, {0.00000.0000, -90.0000}, //Closed
        
{1812.9089, -2057.220314.3881}, {0.00000.0000, -90.0000}, //Open

        
INVALID_OBJECT_ID,
        
false,
    }
}; 

PHP Code:

CMD:gopen(playeridparams[])
{
    if(
PlayerInfo[playerid][Gang] == INVALID_GANG_ID) return SendClientMessage(playerid, -1""COL_RED"You don't belong to any gang.");

    new 
gateid FindClosestGate(playerid);
    if(
gateid == INVALID_GATE_ID) return SendClientMessage(playerid, -1""COL_RED"You are not near any zone gate.");
    if(
ZoneInfo[Gate[gateid][gArea]][zOwner] != PlayerInfo[playerid][Gang])
    {
        new 
str[156];
        
format(strsizeof(str), ""COL_RED"Your gang doesn't own this gate. Capture "COL_WHITE"%s "COL_RED"to open it."ZoneInfo[Gate[gateid][gArea]][zName]);
        
SendClientMessage(playerid, -1str);
        return 
1;
    }
    if(
Gate[gateid][gIsOpen]) return SendClientMessage(playerid, -1""COL_RED"This gate is already open.");
    if(!
IsValidDynamicObject(Gate[gateid][gObjectID])) return SendClientMessage(playerid, -1""COL_RED"ERROR: Invalid gate object."); //This message should never appear but leave it for debugging

    
Gate[gateid][gIsOpen] = true;

    
MoveDynamicObject(Gate[gateid][gObjectID], Gate[gateid][gOpenPos][0], Gate[gateid][gOpenPos][1], Gate[gateid][gOpenPos][2], 5.0);
    return 
1;
}

CMD:gclose(playeridparams[])
{
    if(
PlayerInfo[playerid][Gang] == INVALID_GANG_ID) return SendClientMessage(playerid, -1""COL_RED"You don't belong to any gang.");

    new 
gateid FindClosestGate(playerid);
    if(
gateid == INVALID_GATE_ID) return SendClientMessage(playerid, -1""COL_RED"You are not near any zone gate.");
    if(
ZoneInfo[Gate[gateid][gArea]][zOwner] != PlayerInfo[playerid][Gang])
    {
        new 
str[156];
        
format(strsizeof(str), ""COL_RED"Your gang doesn't own this gate. Capture "COL_WHITE"%s "COL_RED"to close it."ZoneInfo[Gate[gateid][gArea]][zName]);
        
SendClientMessage(playerid, -1str);
        return 
1;
    }
    if(!
Gate[gateid][gIsOpen]) return SendClientMessage(playerid, -1""COL_RED"This gate is already closed.");
    if(!
IsValidDynamicObject(Gate[gateid][gObjectID])) return SendClientMessage(playerid, -1""COL_RED"ERROR: Invalid gate object."); //This message should never appear but leave it for debugging

    
Gate[gateid][gIsOpen] = false;

    
MoveDynamicObject(Gate[gateid][gObjectID], Gate[gateid][gClosePos][0], Gate[gateid][gClosePos][1], Gate[gateid][gClosePos][2], 5.0);
    return 
1;
}

FindClosestGate(playerid)
{
    for(new 
isizeof Gatei++)
    {
        if(
IsPlayerInRangeOfPoint(playerid20.0Gate[i][gClosePos][0], Gate[i][gClosePos][1], Gate[i][gClosePos][2])) //You can edit the range current (20.0) that range between this player and the closest gate
        
{
            return 
i;
        }
    }
    return 
INVALID_GATE_ID;



LINE 344
PHP Code:

{1812.9089, -2067.444314.3881}, {0.00000.0000, -90.0000}, //Closed 

(344) : warning 213: tag mismatch
(344) : warning 213: tag mismatch
(344) : warning 213: tag mismatch
(344) : warning 213: tag mismatch



LINE 345
PHP Code:

{1812.9089, -2057.220314.3881}, {0.00000.0000, -90.0000}, //Open 

(345) : warning 213: tag mismatch
(345) : warning 213: tag mismatch
(345) : warning 213: tag mismatch
(345) : warning 213: tag mismatch



LINE 349
PHP Code:

     

(349) : error 029: invalid expression, assumed zero


LINE 9180
PHP Code:

if(gateid == INVALID_GATE_ID) return SendClientMessage(playerid, -1""COL_RED"You are not near any zone gate."); 

(9180) : error 017: undefined symbol "INVALID_GATE_ID"



LINE 91202
PHP Code:

     if(gateid == INVALID_GATE_ID) return SendClientMessage(playerid, -1""COL_RED"You are not near any zone gate."); 

(9202) : error 017: undefined symbol "INVALID_GATE_ID"


LINE 91228
PHP Code:

     return INVALID_GATE_ID

(9228) : error 017: undefined symbol "INVALID_GATE_ID"

FCNPC Zombies attacking video

$
0
0
I scripted these in a couple hours. All the behavior shown in the video is intentional.

Cannot find photos with F8

$
0
0
Hi all!

So after years I back to play GTA SAMP, I have windows 10 and when I press the f8 screenshoot button - its show me the screen number and all, but I cant find it at User files-->samp-->screens

I also tried to search the word "sa-mp" or "screenshoot" in my PC, but no results.

can anyone help me please?

[Off] Aqui jaz uma comunidade!?

$
0
0
Em primeiro lugar, este tópico não tem intuito de ofender qualquer usuário, mas sim fazer uma reflexão!

Após o lançamento de um trabalho de um usuário cujo nome não se faz necessário revelar, venho fazer um desabado.

Depois de muitas críticas duras em cima do seu sistema, por ser simples e usar um sistema de salvamento obsoleto, preciso questioná-los.

Citem os nomes de usuários novos que, com alguns tópicos de ajuda, conseguiram montar um sistema sozinhos?
A maioria (e arriscaria dizer até esmagadora maioria) quer algo pronto e não é por falta de conhecimento, é de preguiça mesmo.

Fica uma pergunta pessoal:
Qual foi seu primeiro lançamento aqui na board ou código pessoal que você fez SOZINHO, após seu primeiro contato com esta linguagem?
Lembro até hoje que publiquei um sistema de super pulo, algo realmente simples e fácil de se fazer, mas que mudou meu semblante por completo!

Eu já cometi este mesmo erro de vocês.
Comecem a rever esses pensamentos, pelo amor de Deus.
A análise que vocês devem fazer no trabalho destes usuários é em cima do esforço e não do código!!!

Novamente, aos gentis usuários desta board, não venham poluir este tópico com elogios ou ataques, não preciso de suas opiniões.
Não criei pra discutir conceito de certo e errado, peço apenas que reflitam!

Furniture house showing as unknown

$
0
0
When I sell one of the furniture, it works but when i go to the furniture menu, it shows as unknown..

PHP Code:

                new getFurnitureIDmodelid );

                if ( ! 
Iter_Counthousefurniturehouseid ] ) )
                    return 
SendErrorplayerid"There is no furniture left to sell." );

                if ( 
== -)
                    return 
SendErrorplayerid"Unable to sell furniture due to an unexpected error (0x8F)." );

                
DestroyDynamicObjectobjectid );
                
mysql_single_querysprintf"DELETE FROM `FURNITURE` WHERE `ID`=%d AND `HOUSE_ID`=%d"editing_furnitureediting_house ) );
                
Iter_Removehousefurniturehouseid ], );

                
GivePlayerCashplayeridg_houseFurniture] [ E_COST ] );
                
SendClientMessageFormattedplayerid, -1""COL_GREY"[FURNITURE]"COL_WHITE" You have successfully sold your "COL_WHITE"%s"COL_WHITE" for "COL_GOLD"%s"COL_WHITE"."g_houseFurniture] [ E_NAME ], cash_formatiNetProfit ) );
                
ShowPlayerDialogplayeridDIALOG_FURNITUREDIALOG_STYLE_LIST"{FFFFFF}Furniture""Purchase Furniture\n"COL_RED"Remove All Furniture""Confirm""Back" ); 

Furniture menu:
PHP Code:

    if ( Iter_Counthousefurniturehouseid ] ) > )
    {
        
szLargeString ""COL_WHITE"Furniture Item\n";
        foreach ( new 
fhandle housefurniturehouseid ] ) {
            new 
modelid Streamer_GetIntDataSTREAMER_TYPE_OBJECTg_houseFurnitureDatahouseid ] [ fhandle ], E_STREAMER_MODEL_ID );
            new 
furniture_item getFurnitureIDmodelid );
            if ( 
furniture_item != -) {
                
formatszLargeStringsizeofszLargeString ), "%s%s\n"szLargeStringg_houseFurniturefurniture_item ] [ E_NAME ] );
            } else {
                
strcatszLargeString"Unknown\n" );
            }
        }
        
ShowPlayerDialogplayeridDIALOG_FURNITURE_MAN_SELDIALOG_STYLE_TABLIST_HEADERS"Furniture"szLargeString"Select""Back" );
    } 

getFurnitureID
PHP Code:

stock getFurnitureIDmodelid )
{
    for( new 
0sizeofg_houseFurniture ); i++ )
        if ( 
modelid == g_houseFurniture] [ E_MODEL ] ) return i;

    return -
1;


any idea? i have tried many methods but fail anyway

OPTIMIZATION TIMERS!

$
0
0
What do you think lags on the server? Too many timers or many code in timers accessed too often?
For example, I now have a check in a global timer that checks if players are in jail to decrease their seconds, I can create a timer for each player who is in jail, and when they go out to destroy the timer? Is better?
My players base: 300/350.
Viewing all 18226 articles
Browse latest View live


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