SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 326
Search took 0.01 seconds.
Search: Posts Made By: DarkSkull
Forum: Scripting Help 24/08/2018, 01:44 PM
Replies: 4
Views: 229
Posted By DarkSkull
Re: VALUE = VALUE on dialog

Use strcmp():
http://wiki.sa-mp.com/wiki/Strcmp
Forum: Scripting Help 11/06/2018, 12:24 AM
Replies: 13
Views: 670
Posted By DarkSkull
Re: goto cmds

You don't need else there.


This should work just fine.
CMD:gotols(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_RED, NOTADMIN);
...
Forum: Scripting Help 02/06/2018, 12:27 AM
Replies: 20
Views: 1,271
Posted By DarkSkull
Re: Need help with House Search in gps

Yes. That will happen as what your code does is that if the houseid is not found, It will break the loop. For example, if houseid 0 doesn't exists and 1 exists, It will stop the loop at 0. Try this
...
Forum: Scripting Help 02/06/2018, 12:18 AM
Replies: 4
Views: 246
Posted By DarkSkull
Re: What's the problem here?

That is a multi-dimensional array. Make sure you have defined it properly. Show the pInfo definition.

I think it's supposed to be like this:

new j1text[30];
switch(pInfo[targetid][pJob])
{...
Forum: Scripting Help 25/05/2018, 02:36 PM
Replies: 3
Views: 437
Posted By DarkSkull
Re: Set Nearest Checkpoint

Create 3 variables. Get the distance from the three airports. Then compare which the lowest and then Set Checkpoint. Use 3 if statements.
Forum: Scripting Help 22/05/2018, 06:11 AM
Replies: 5
Views: 366
Posted By DarkSkull
Re: Interior

Okay, So I made a little error in the previous code. I misread your help.

Add this on top of your script.

#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
...
Forum: Scripting Help 22/05/2018, 06:04 AM
Replies: 1
Views: 265
Posted By DarkSkull
Re: AMX Backtrace help

You'll find your fix here.

http://forum.sa-mp.com/showthread.php?t=654036

Also, Try using debug level 3, so it shows you the exact lines that produce the crash.
If you don't know how to do...
Forum: Scripting Help 22/05/2018, 06:00 AM
Replies: 21
Views: 1,264
Posted By DarkSkull
Re: Not Working

Yeah, that code doesn't do that. Post your VehicleInfo enum, And I'll try to fix it.
Forum: Scripting Help 22/05/2018, 05:57 AM
Replies: 1
Views: 331
Posted By DarkSkull
Re: Help with clan system.

Can you show your load code under OnPlayerConnect? Are the files saving properly?
Forum: Scripting Help 21/05/2018, 04:39 PM
Replies: 5
Views: 366
Posted By DarkSkull
Re: Interior

Do you know anything about scripting?
Forum: Scripting Help 21/05/2018, 04:37 PM
Replies: 13
Views: 1,024
Posted By DarkSkull
Re: Weapon holding & player running speed

What script are you using. Can you should your OnGameModeInit(); part.
Forum: Scripting Help 21/05/2018, 04:09 PM
Replies: 1
Views: 206
Posted By DarkSkull
Re: dialog injection

SQL injection has nothing to do with Dialog. After processing in Dialog:whatever part, Before inserting into the DB, You have implement measure against SQL injection.
Forum: Scripting Help 21/05/2018, 04:07 PM
Replies: 5
Views: 366
Posted By DarkSkull
Re: Interior

This is how you do it. Under the command called /enter, Check if the player is near a bank.

You can do this by using the function IsPlayerInRangeOfPoint();...
Forum: Scripting Help 21/05/2018, 01:54 PM
Replies: 21
Views: 1,264
Posted By DarkSkull
Re: Not Working

CMD:searchcar(playerid,params[])
{
new idvp,ncar[128],StringSECH[1140],STRCCHAR[1140];
if(sscanf(params,"s[128]",ncar)) return SendClientMessage(playerid,red,"Use: /searchcar [carname]");...
Forum: Scripting Help 21/05/2018, 01:02 PM
Replies: 3
Views: 287
Posted By DarkSkull
Re: Logical OR || Operator doesn't work properly

It should be like this:
if(!IsPlayerAdmin(playerid) || pInfo[playerid][Admin] != 6) return SendClientMessage(playerid, 0xFFFFFFFF, "[HPRP]: You don't have enough permissions to use this command");
...
Forum: Scripting Help 21/05/2018, 12:51 PM
Replies: 21
Views: 1,264
Posted By DarkSkull
Re: Not Working

You had an extra i at the end. Replace that line with this.

format(StringSECH,sizeof(StringSECH),"{FFFAFA}Vehicle:{00FF00} %s | {FFFAFA}Owner:{00FF00}...
Forum: Scripting Help 20/05/2018, 06:05 PM
Replies: 13
Views: 1,024
Posted By DarkSkull
Re: Weapon holding & player running speed

Just add the below code under OnGameModeInit();

UsePlayerPedAnims();
Forum: Filterscripts 20/05/2018, 06:02 PM
Replies: 12
Views: 6,726
Posted By DarkSkull
Re: [E.V.O] Elite Vehicle Ownership [V1.0] [Dynamic Vehicle System]

Thank You!



Can you check once again? It was working for me just fine when I tested it. I looked at the code and it does seem alright.
Forum: Scripting Help 20/05/2018, 06:00 PM
Replies: 6
Views: 474
Posted By DarkSkull
Re: Hash passwords are different

You can only BUMP your post after 24 hours. Please be patient as something called timezones interfere with frequent helping.

I don't know if this will fix your problem, But try putting the...
Forum: Scripting Help 20/05/2018, 05:55 PM
Replies: 5
Views: 411
Posted By DarkSkull
Re: Job help

I won't advise you to do that. Because that will mess up the script, as it will interfere with the way that the script works. Unless You wan't to re-script the thing, I may have a solution. And that...
Forum: Scripting Help 20/05/2018, 05:29 PM
Replies: 3
Views: 293
Posted By DarkSkull
Re: Saving / Unsaving

Look for the part in the code that processes the Player dying/evacing part. There you are likely to see the saving part. You just remove that. That's all.

We can only do soo little without you not...
Forum: Scripting Help 19/05/2018, 02:44 PM
Replies: 7
Views: 535
Posted By DarkSkull
Re: Getting Whirlpool hashes in PHP

The main point of hashing password is not to be able to unhash it :|
Forum: Scripting Help 19/05/2018, 01:08 PM
Replies: 24
Views: 1,308
Posted By DarkSkull
Re: Array out of bounds

string = "value";

You can't assign strings like that in PAWN. You should use format, or you can use a nice little snippet.

#if !defined strcpy
#define strcpy(%0,%1,%2) strcat((%0[0] = '\0',...
Forum: Scripting Help 19/05/2018, 12:03 AM
Replies: 24
Views: 1,308
Posted By DarkSkull
Re: Array out of bounds

Try using debug level 3, so it shows you the exact lines that produce the crash.
If you don't know how to do that, here's how:
You should create a file called pawn.cfg in your pawno folder, inside...
Forum: Scripting Help 15/05/2018, 06:56 AM
Replies: 14
Views: 513
Posted By DarkSkull
Re: Filterscript to GM conversion

Just copy pasting all the things correctly should work. Make sure you have all the includes that it mentioned on top of the filterscript and also like enzulikeS said, the only difference is put...
Showing results 1 to 25 of 326

 

All times are GMT. The time now is 08:06 AM.


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