SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 218
Search took 0.00 seconds.
Search: Posts Made By: GRiMMREAPER
Forum: Everything and Nothing 11/09/2018, 07:11 PM
Replies: 80
Views: 4,558
Posted By GRiMMREAPER
Re: Welcome back, Y_Less!

Welcome back, big guy. Such a great addition to the team. Now get Southclaws on board, provided he's interested.
Forum: Scripting Help 26/08/2018, 04:15 PM
Replies: 6
Views: 129
Posted By GRiMMREAPER
Re: Sscanf warning: Strings without a length are deprecated, please add a destination size.

Can you show us the whole scope of the code which integrates the code you posted (be it a callback, a function or a command)? This error is well documented and easy to fix but the issue lies within...
Forum: Scripting Help 22/08/2018, 08:57 AM
Replies: 4
Views: 167
Posted By GRiMMREAPER
Re: OnFilterScriptInit not initializing properly

That's weird. I dos talk to Southclaws about the possibility of this being a sampctl issue but I scrapped that idea since the filterscript was being loaded.
Forum: Scripting Help 21/08/2018, 11:39 PM
Replies: 6
Views: 191
Posted By GRiMMREAPER
Re: check if gang name is already taken

Print the result of the query.
Forum: Scripting Help 21/08/2018, 11:21 PM
Replies: 6
Views: 191
Posted By GRiMMREAPER
Re: check if gang name is already taken

http://wiki.sa-mp.com/wiki/MySQL/R33#cache_get_row_count

IsGangNameTaken(gangName[]) {
new query[100];

mysql_format(g_SQL, query, sizeof query, "SELECT * FROM gangs WHERE GangName =...
Forum: Scripting Help 21/08/2018, 10:55 PM
Replies: 4
Views: 167
Posted By GRiMMREAPER
Re: OnFilterScriptInit not initializing properly

Printing before or after that MySQL line shouldn't make a difference. Regardless, I did go and double check and no, it does print anything.
Forum: Scripting Help 21/08/2018, 10:38 PM
Replies: 4
Views: 167
Posted By GRiMMREAPER
OnFilterScriptInit not initializing properly

I've created a filterscript that's loading properly. However, I want a message to print upon the initialization of said filterscript:

public OnFilterScriptInit() {
cursor =...
Forum: Plugin Development 20/08/2018, 11:19 PM
Replies: 47
Views: 9,827
Posted By GRiMMREAPER
Forum: Português/Portuguese 18/08/2018, 08:30 AM
Replies: 8,836
Sticky: [Ajuda] Dúvidas Curtas #1
Views: 915,324
Posted By GRiMMREAPER
Re: Dúvidas Curtas #1

Se estás a falar do que eu estou a pensar, podes aplicar o mesmo conceito. Utiliza a função GetDynamicObjectRot para obter a rotação do objeto A e guarda numa variável; Compara as diferença de...
Forum: Scripting Help 17/08/2018, 09:36 AM
Replies: 5
Views: 159
Posted By GRiMMREAPER
Re: how to detect player map position

You can use the list of zones below. To check the player's zone, you can loop through all the areas and compare the player's position with the coordinates that delimit a certain area.

static const...
Forum: Português/Portuguese 16/08/2018, 12:45 AM
Replies: 7
Views: 192
Posted By GRiMMREAPER
Re: Luzes A51 / Veículos Invisíveis

Esse código que postaste não funciona? Com esta callback, não precisas de verificar se ele atinge em alguém, porque se ele tira alguém (OnPlayerGiveDamage), essa condicionante já está abrangida.
Forum: Scripting Help 16/08/2018, 12:41 AM
Replies: 2
Views: 96
Posted By GRiMMREAPER
Re: If player name includes '_'..

strfind (http://wiki.sa-mp.com/wiki/Strfind) is all you need.


new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof pName);

if(strfind(pName, "_") != -1) {
...
Forum: Português/Portuguese 16/08/2018, 12:13 AM
Replies: 7
Views: 192
Posted By GRiMMREAPER
Re: Luzes A51 / Veículos Invisíveis

Não precisas de fazer nenhum sistema e utilizar newkeys nem nada disso. Se simplesmente queres verificar se um jogador atinge outro com um soco, utilizas a callback OnPlayerGiveDamage...
Forum: Scripting Help 15/08/2018, 11:33 PM
Replies: 1
Views: 84
Posted By GRiMMREAPER
Re: Command help

I have my sincere doubts you've read sscanf's documentation (http://forum.sa-mp.com/showthread.php?t=570927), therefore do it before you post your doubts here.

Regardless, try this code. You had a...
Forum: Scripting Help 15/08/2018, 11:26 PM
Replies: 4
Views: 149
Posted By GRiMMREAPER
Re: about foreach

1. If you're using iterators, as you've mentioned, you need to include y_iterate.
2. Why not stick to one syntax? Needless to say, stick to the syntax of the latest version.
Forum: Português/Portuguese 15/08/2018, 11:17 PM
Replies: 7
Views: 192
Posted By GRiMMREAPER
Re: Luzes A51 / Veículos Invisíveis

1. Impossível. Os cones de luz não são um objeto, portanto não podem ser removidos.
2. DisableRemoteVehicleCollisions (http://wiki.sa-mp.com/wiki/DisableRemoteVehicleCollisions)
Forum: Plugin Development 15/08/2018, 11:12 PM
Replies: 47
Views: 9,827
Posted By GRiMMREAPER
Re: HTTP(S) Requests+JSON Plugin - Make HTTP(S) Requests with JSON

I absolutely love this plugin. Coming from Python and being a huge fan/user of requests and requests-html (did you get inspired by the earlier?), this is a gift from heaven.

To whoever comes...
Forum: Scripting Help 15/08/2018, 02:02 PM
Replies: 2
Views: 93
Posted By GRiMMREAPER
Re: A doubt

This is cleaner:
Player[playerid][MarijuanaSeeds] -= 10;

This is not as clean:
Player[playerid][MarijuanaSeeds] = Player[playerid][MarijuanaSeeds] - 10;

However, they do produce the same...
Forum: Português/Portuguese 15/08/2018, 12:36 PM
Replies: 8,836
Sticky: [Ajuda] Dúvidas Curtas #1
Views: 915,324
Posted By GRiMMREAPER
Re: Dúvidas Curtas #1

Editei a minha resposta.
Forum: Português/Portuguese 14/08/2018, 11:44 PM
Replies: 8,836
Sticky: [Ajuda] Dúvidas Curtas #1
Views: 915,324
Posted By GRiMMREAPER
Re: Dúvidas Curtas #1

Vamos admitir que A e B são dois pontos no espaço 3D, tais que:

A = [a1, a2, a3]
B =

[B]k[k1, k2, k3], sendo k o vetor que define o movimento dos pontos A e B no espaço 3D.

C e D...
Forum: Discussion 11/08/2018, 11:39 PM
Replies: 782
Views: 155,907
Posted By GRiMMREAPER
Re: Today I learned - Share your newly found knowledge!

Well, I really should've added an explanation as to why it happened.
Forum: Discussion 11/08/2018, 11:08 PM
Replies: 782
Views: 155,907
Posted By GRiMMREAPER
Re: Today I learned - Share your newly found knowledge!

Today I learned but I also almost lost my mind trying to figure what I was doing wrong before I finally realized the fuckup.

a.pwn
enum {
D_LOGIN,
D_REGISTER
}

// Handle response...
Forum: Português/Portuguese 11/08/2018, 08:14 AM
Replies: 5
Views: 288
Posted By GRiMMREAPER
Re: Sistema de Desbanir Player

Para começar, atualiza o teu plugin MySQL para a versão mais recente (R40 (http://forum.sa-mp.com/showthread.php?t=56564)). Segundo, faz o que te disse em relação a print(query).
Forum: Português/Portuguese 10/08/2018, 11:14 PM
Replies: 5
Views: 288
Posted By GRiMMREAPER
Re: Sistema de Desbanir Player

Se sabes fazer o comando de banir, sabes fazer o comando de desbanir, amigo. A base é algo assim:

cmd:desbanir(playerid, params[]) {
new pName[MAX_PLAYER_NAME],
query[74];

...
Forum: Scripting Help 10/08/2018, 09:55 PM
Replies: 14
Views: 370
Posted By GRiMMREAPER
Re: Textdraw question

Check the first comment.

EDIT: Didn't see the earlier replies, sorry.
Showing results 1 to 25 of 218

 

All times are GMT. The time now is 11:31 PM.


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