SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: NealPeteros
Forum: Scripting Help 10/07/2020, 10:14 AM
Replies: 23
Views: 424
Posted By NealPeteros
Re: Script error.

The /enter and /exit commands, did you try merging it to the main gamemode?
Forum: Scripting Help 10/07/2020, 08:11 AM
Replies: 5
Views: 176
Posted By NealPeteros
Re: Change char in string

I suggest using this

if(strlen(inputtext) <= 20 && strlen(inputtext) >= 4)
{
for (new i = 0, l = strlen(inputtext); i < l; i ++)
{
if (inputtext[i] == '_')
{
inputtext[i] = ' ';...
Forum: Scripting Help 10/07/2020, 08:09 AM
Replies: 23
Views: 424
Posted By NealPeteros
Re: Script error.

According to your recent post, you had a variable named lastPickup

if(strcmp("/enter", cmd, true) == 0) // enter property
{
if( lastPickup[playerid] != -1 ||...
Forum: Scripting Help 09/07/2020, 07:37 PM
Replies: 23
Views: 424
Posted By NealPeteros
Re: Script error.

Try changing this


public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_SECONDARY_ATTACK))
{
new params[128];
if(GetPlayerInterior(playerid) == 0)
...
Forum: Scripting Help 09/07/2020, 08:58 AM
Replies: 23
Views: 424
Posted By NealPeteros
Re: Script error.

Don't worry if you're asking too many questions, they help you learn more. If you need any personal help, I'm always active anytime. You can message me in Discord (PM me if you're interested) and...
Forum: Scripting Help 08/07/2020, 01:05 PM
Replies: 3
Views: 112
Posted By NealPeteros
Re: Command doesn't seem to work, wrong checks

Have you tried grouping them?

if((PlayerInfo[playerid][pJob] != 11 && !IsPlayerInRangeOfPoint(playerid, 30.0, -2959.0974,485.8969,4.9110)) ||
(PlayerInfo[playerid][pJob] != 17 &&...
Forum: Scripting Help 08/07/2020, 12:58 PM
Replies: 23
Views: 424
Posted By NealPeteros
Re: Script error.

Yeah, find the line that says CMD:enter(playerid, params[]) in your script and send it to us including its lines
Forum: Scripting Help 08/07/2020, 12:37 PM
Replies: 23
Views: 424
Posted By NealPeteros
Re: Script error.

I think he means your CMD:enter(playerid, params[])

Like..the actual command and its script
Forum: Scripting Help 07/07/2020, 02:42 PM
Replies: 3
Views: 105
Posted By NealPeteros
Re: Could someone help me with this?

Well, on the first lines, just right below the includes, you mentioned those defines under the #if defined FILTERSCRIPT. That means, if there was a #define FILTERSCRIPT on top of the includes, those...
Forum: Scripting Help 07/07/2020, 01:18 PM
Replies: 3
Views: 105
Posted By NealPeteros
Re: Could someone help me with this?

Is this a filterscript? If so, have you tried adding #define FILTERSCRIPT on top of the script?

Otherwise, if it's not a filterscript, revise your code to

#include <a_samp>
#include <a_mysql>...
Forum: Everything and Nothing 07/07/2020, 01:11 PM
Replies: 14
Views: 448
Posted By NealPeteros
Re: Can a 12 year old learn scripting?

You definitely can, learned it at 11. It took me some time, but with dedication and passion, I'm here now.
Forum: Scripting Help 15/06/2020, 01:54 AM
Replies: 1
Views: 59
Posted By NealPeteros
Re: estou com um erro e não resolver me ajuda!

SendClientMessage(playerid, -1, "Parabéns você acaba de comprar um novo carro na concessionaria!");
SendClientMessage(playerid, -1, "Lembra-se de salvar ele em algum local apropriado para este...
Forum: Scripting Help 11/06/2020, 04:20 AM
Replies: 9
Views: 229
Posted By NealPeteros
Re: how to detect the model of a weapon

GetPlayerWeapon (https://wiki.sa-mp.com/wiki/GetPlayerWeapon)

Is that the function you were looking for?

P.S.: I have a feeling that you're making one of these, so I'll just send it for your...
Forum: Scripting Help 11/06/2020, 04:09 AM
Replies: 23
Views: 586
Posted By NealPeteros
Re: [Help] A command please, thanks.

I can't do much rlly without your variables and pretty much everything related to your registration/login system.
Forum: Scripting Help 10/06/2020, 05:34 PM
Replies: 23
Views: 586
Posted By NealPeteros
Re: [Help] A command please, thanks.

Here's a revised version of the code


new HasChangedName[MAX_PLAYERS]; // Put this below your includes and above OnGameModeInit

HasChangedName[playerid] = 0; //Put this in OnPlayerConnect
...
Forum: Scripting Help 10/06/2020, 07:24 AM
Replies: 23
Views: 586
Posted By NealPeteros
Re: [Help] A command please, thanks.

Try this out. Added explanations per line, hoping you can learn a thing or two from it.

CMD:namechange(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 7.0,...
Forum: Scripting Help 10/06/2020, 06:30 AM
Replies: 23
Views: 586
Posted By NealPeteros
Re: [Help] A command please, thanks.

So...um, what you want is a system that offers players a name change upon arriving in a certain set of coordinates? Sorry, I'm just tryna' understand your situation.
Forum: Scripting Help 09/06/2020, 02:24 PM
Replies: 5
Views: 157
Posted By NealPeteros
Re: Dialog doesnt show

I'm not really sure where the problem is, sorry. But, just a few tips since you're gratefully accepting them...

When checking dialogids in OnDialogResponse, I'd suggest using switch-case...
Forum: Scripting Help 09/06/2020, 01:56 PM
Replies: 5
Views: 157
Posted By NealPeteros
Re: Dialog doesnt show

You haven't set up your MySQL database yet, therefore your account was never saved.
Forum: Scripting Help 08/06/2020, 12:06 PM
Replies: 10
Views: 327
Posted By NealPeteros
Re: Help me please

What you gave here is a script made by a player from the LSRP community using their variables. For a beginner, it would be hard to translate them, I'd suggest getting help from others [here...
Forum: Scripting Help 08/06/2020, 07:36 AM
Replies: 6
Views: 147
Posted By NealPeteros
Re: erro no IsPlayerInAnyVehicle

Have you tried other methods to check if the command is bugged and not something else? It's not a permanent solution, but maybe try this out.

CMD:tunar(playerid)
{
...
Forum: Scripting Help 08/06/2020, 07:28 AM
Replies: 1
Views: 85
Posted By NealPeteros
Re: I need a map for this place.

You can try using Map Editors or filterscripts that allow you to create objects ingame.
Forum: Server Support 08/06/2020, 06:04 AM
Replies: 14,758
Views: 1,884,629
Posted By NealPeteros
Re: Looking for scripters/helpers? Post here!

Available for minor scripting services, free of charge. I just need something to do while in quarantine.
Forum: Scripting Help 07/06/2020, 06:17 PM
Replies: 10
Views: 327
Posted By NealPeteros
Re: Help me please

Exactly. But if you don't have the cash for services, you can always find free filterscripts such as the [corpse system (https://forum.sa-mp.com/showthread.php?t=615932)] by cs_waller. For the damage...
Forum: Scripting Help 07/06/2020, 04:52 PM
Replies: 10
Views: 327
Posted By NealPeteros
Re: Help me please

I wouldn't recommend you using a buggy script like that. But if you insist, I'd recommend [this (https://forum.sa-mp.com/showthread.php?t=627520)] tutorial by Variable about MySQL Registration system.
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 06:28 PM.


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