SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 34
Search took 0.00 seconds.
Search: Posts Made By: Vasco
Forum: Português/Portuguese 01/06/2020, 08:35 AM
Replies: 1
[Ajuda] Debug servidor
Views: 105
Posted By Vasco
Re: Debug servidor

algo nesse "public" tens um pedaço de código em que queres aceder a um elemento no numero 900 quando o máximo é so 12
Forum: Português/Portuguese 26/05/2020, 08:01 AM
Replies: 4
[Ajuda] pragma dynamic
Views: 149
Posted By Vasco
Re: pragma dynamic

os valores exato do dynamic nao sei, sempre que aprece isso eu limpo o código e por norma o aviso desaparece. ideal seria fazer uma limpeza geral no código
Forum: Português/Portuguese 25/05/2020, 01:02 PM
Replies: 4
[Ajuda] pragma dynamic
Views: 149
Posted By Vasco
Re: pragma dynamic

Há muito espaço desnecessário no teu código, tenta limpá-lo

https://forum.sa-mp.com/showthread.php?t=569978
Forum: Português/Portuguese 15/05/2020, 01:58 AM
Replies: 4
[Ajuda] [ERRO]
Views: 170
Posted By Vasco
Re: [ERRO]

Ainda melhor:

forward CheckSeconds();
public CheckSeconds()
{
new Hours, Minutes, Seconds;
gettime(Hours, Minutes, Seconds);
if(Minutes == 0 && (Seconds == 0 && 0 <= Hours <= 23))...
Forum: Scripting Help 14/05/2020, 02:26 AM
Replies: 4
Views: 144
Posted By Vasco
Re: Problem with sorting arrays

That fixed it, thanks!!!
Forum: Scripting Help 14/05/2020, 12:02 AM
Replies: 4
Views: 144
Posted By Vasco
Re: Problem with sorting arrays

What? SORT_DESC is an option to determine which order should the arrays be sorted
Forum: Scripting Help 13/05/2020, 08:53 PM
Replies: 3
Views: 80
Posted By Vasco
Re: error 001: expected token: ";", but found "-identifier-"

vielals = CreatePickup(1314, 23, 2122.3989,-2269.3054,20.6719, -1); //Viela LS
vielasls = CreatePickup(1318, 23, -938.3290,1863.8239,5.0000, -1);// Viela Saida Ls
vielaSf = CreatePickup(1313, 23,...
Forum: Scripting Help 13/05/2020, 08:51 PM
Replies: 3
Views: 153
Posted By Vasco
Re: How to call this callback

this is wrong

mysql_tquery(HSQL, gQuery, "RefferalNameCheck", playerid, inputtext);


it's supposed to be

mysql_tquery(HSQL, gQuery, "RefferalNameCheck", "is", playerid, inputtext);
Forum: Scripting Help 13/05/2020, 08:42 PM
Replies: 4
Views: 144
Posted By Vasco
Problem with sorting arrays

Hey,

I've been using Slice's sorting arrays (https://forum.sa-mp.com/showthread.php?t=343172) and it's been very useful. It works fine when I script it like this:

new array_check[10][2];
...
Forum: Português/Portuguese 10/05/2020, 01:10 AM
Replies: 2
Views: 214
Posted By Vasco
Re: /membros - Response dialog

OnDialogResponse (https://wiki.sa-mp.com/wiki/OnDialogResponse)
O parâmetro "inputtext" no teu caso dá perfeitamente porque sempre que selecionares um jogador, o inputtext busca o primeiro valor da...
Forum: Português/Portuguese 27/04/2020, 06:11 PM
Replies: 1
Views: 173
Posted By Vasco
Re: OnPlayerKeyStateChange crash

O teu código está mesmo confuso e tens sempre "if... if... if...", utilizar isso num OnPlayerKeyStateChange resulta quando só está a jogar um ou dois jogadores mas com vários jogadores ao mesmo tempo...
Forum: Português/Portuguese 24/04/2020, 06:46 PM
Replies: 8
Views: 316
Posted By Vasco
Re: não salva a mensagem

Para gravar como: Player[playerid][MensagemR]

o enum tem que estar assim:

enum PlayerData
{
MensagemR[128]
}
new Player[MAX_PLAYERS][PlayerData];
Forum: Português/Portuguese 24/04/2020, 06:42 PM
Replies: 3
Views: 210
Posted By Vasco
Re: Como chamar algo com um comando.

Que include é que usas para os comandos?

Tenta isto


CMD:mudartime(playerid, params[])
{
ForceClassSelection(playerid);
return 1;
}
Forum: Scripting Help 23/02/2020, 04:38 PM
Replies: 1
Views: 176
Posted By Vasco
Re: No Active Cache [MYSQL]

I'm not sure about that code so I'll just give you an "edited" version of that with a version I have that works


SetJobLevelSkill(&joblevelid, jobskill)
{
joblevelid = (0 <= jobskill <= 50)...
Forum: Tutorials 01/05/2015, 09:13 PM
Replies: 31
[Tutorial] Actors!(0.3.7 RC6)
Views: 31,021
Posted By Vasco
Re: Actors!(0.3.7 RC6)

This is actually pretty useful, thanks man, REP+
Forum: Filterscripts 14/02/2015, 11:25 PM
Replies: 23
Views: 3,359
Posted By Vasco
Re: Air Ballon remote control v1.00

This is awesome, fantastic job you did here ;)
+1 Rep
Forum: News and Updates 17/01/2015, 02:00 PM
Replies: 815
Views: 269,267
Posted By Vasco
Forum: Português/Portuguese 01/01/2015, 09:22 PM
Replies: 1
Views: 356
Posted By Vasco
Re: Seleção de skins ao entrar no servidor

AddPlayerClass: http://wiki.sa-mp.com/wiki/AddPlayerClass
Forum: Português/Portuguese 31/12/2014, 01:14 PM
Replies: 2
[Ajuda] Matou e Morreu
Views: 429
Posted By Vasco
Re: Matou e Morreu

Não sei mas isto:
Player[killerid][Morreu] +=1;

Não era para ser?
Player[playerid][Morreu] +=1;
Forum: Português/Portuguese 31/12/2014, 02:02 AM
Replies: 24
[Projeto] GM Era Medieval :D
Views: 2,498
Posted By Vasco
Re: GM Era Medieval :D

Este projecto é:

Fantástico/Altamente/Brutal
Fantástico/Altamente/Brutal
Fantástico/Altamente/Brutal
Fantástico/Altamente/Brutal
Ah.. Eu já disse que isto é Fantástico/Altamente/Brutal?...
Forum: Filterscripts 31/12/2014, 01:51 AM
Replies: 8
[FilterScript] Radioactive Zone
Views: 3,644
Posted By Vasco
Re: Radioactive Zone

Nice and simple filterscript

Also, your translations to english are a little wrong :P

Fix:
GameTextForPlayer(playerid, "~w~You have entered a radioactive zone,~n~~r~be careful!", 4000, 3);...
Forum: Português/Portuguese 24/12/2014, 02:41 PM
Replies: 9
[Ajuda] /pm
Views: 399
Posted By Vasco
Re: /pm

@Dolphin, o seu script tem errors na mesma

@luccagomes15, Tente este script:

CMD:pm(playerid, params[])
{
new string[128], ID, Mensagem[128];
if(sscanf(params, "us[128]", ID, Mensagem))...
Forum: Português/Portuguese 21/12/2014, 05:09 PM
Replies: 2
[Pedido] ID de objeto
Views: 381
Posted By Vasco
Forum: Lançamentos/Releases 20/12/2014, 01:30 AM
Replies: 3,452
Views: 804,717
Posted By Vasco
Re: Códigos Úteis #1

Como teleportar para dentro de um AT-400

stock BuscarAviaoProximo(playerid, Float:MaxDist)
{
new Float:pos[3];
for(new x = 0; x < MAX_VEHICLES; ++x)
{
if(GetVehicleModel(x) != 577)...
Forum: Português/Portuguese 19/12/2014, 11:43 PM
Replies: 2
Views: 478
Posted By Vasco
Re: Problema com atrelados

EDIT: Não faz mal, já descobri o problema, eu estava a fazer "return 0;" em OnTrailerUpdate
Showing results 1 to 25 of 34

 

All times are GMT. The time now is 03:01 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.