SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.01 seconds.
Search: Posts Made By: GoldenLion
Forum: Scripting Help 22/10/2017, 02:26 PM
Replies: 10
Views: 133
Posted By GoldenLion
Re: array sizes do not match, or destination array is too small

Yes, I tried removing it and I add a size when I want to store the array like this
ItemInfo[i][iName] = name;
so I don't need to use strcat or format, etc. If I removed the size it would give me...
Forum: Scripting Help 22/10/2017, 02:21 PM
Replies: 10
Views: 133
Posted By GoldenLion
Re: array sizes do not match, or destination array is too small

CreateItem(name[20], model, Float:x, Float:y, Float:z, world, interior)
And yes, I just printed iName and iModel and they are fine.
Forum: Scripting Help 22/10/2017, 02:13 PM
Replies: 10
Views: 133
Posted By GoldenLion
Re: array sizes do not match, or destination array is too small

I know and the code you gave wouldn't give an error, it wouldn't just store all of the text in that array.

This is not really how I would use static and stock and CreateItem is fine it works...
Forum: Scripting Help 22/10/2017, 01:54 PM
Replies: 10
Views: 133
Posted By GoldenLion
array sizes do not match, or destination array is too small

Hi. I started working on a new gamemode and now I came to the part where I need to add random loot spawns. What I made is an array with all positions and an array of items which contains items'...
Forum: Scripting Help 21/10/2017, 07:17 PM
Replies: 10
Views: 189
Posted By GoldenLion
Re: /taser

What you can do is return 0 at OnPlayerWeaponShot to desync the bullet so it won't take any damage or set everyone to the same team and create your own weapon damages.
Forum: Scripting Help 23/09/2017, 08:55 PM
Replies: 32
Views: 1,043
Posted By GoldenLion
Re: Anti ammo hack

I believe it's something to do with GetPlayerAmmo as it returns the old ammo so you need to subtract 1 from GetPlayerAmmo to get the new ammo. Also you should create a variable for the ammo and...
Forum: Scripting Help 23/09/2017, 08:42 PM
Replies: 1
Views: 75
Posted By GoldenLion
Re: little help

Well, you can't see something that you are not showing.
http://wiki.sa-mp.com/wiki/Function:GameTextForPlayer
Forum: Scripting Help 16/09/2017, 10:00 PM
Replies: 7
Views: 168
Posted By GoldenLion
Re: Textdraw is overriding the HUD

That's not possible.
Forum: Scripting Help 15/09/2017, 02:00 PM
Replies: 7
Views: 333
Posted By GoldenLion
Re: RGBA(HEX) Color

You could save it as an integer, but I believe it's also possible to save it as a string and then use sscanf and the "x" specifier when you load it.
Forum: Scripting Help 11/09/2017, 03:41 PM
Replies: 8
Views: 194
Posted By GoldenLion
Re: SetCameraBehindPlayer(playerid); bug

I'm pretty sure the issue is that you are using SpawnPlayer instead of TogglePlayerSpectating here.

EDIT: Forgot to mention that JasonRiggs said that above already.
Forum: Screenshots and Videos 10/09/2017, 07:06 PM
Replies: 7
Views: 482
Posted By GoldenLion
Re: Intervention Roleplay - Script Showcase - Part 1

This (http://forum.sa-mp.com/showthread.php?t=538107) is what it is.
Forum: Scripting Help 02/09/2017, 09:16 PM
Replies: 3
Views: 100
Posted By GoldenLion
Re: Why is this keep happening

if(Afk(i) == 1)
You need square brackets there instead.

EDIT: Seems like Meller and I posted at the same time.
Forum: Scripting Help 25/08/2017, 01:35 PM
Replies: 18
Views: 516
Posted By GoldenLion
Re: Wrong Passwords

The log seems to be fine for me as well. You could try Arthur Kane's way.
Forum: Scripting Help 24/08/2017, 08:21 PM
Replies: 18
Views: 516
Posted By GoldenLion
Re: Wrong Passwords

Well, I don't know what could be the problem because the code looks fine for me. Can you post your latest MySQL logs here after the two players connect?
Forum: Scripting Help 23/08/2017, 11:53 PM
Replies: 18
Views: 516
Posted By GoldenLion
Re: Wrong Passwords

Try printing the passwords (the hashed ones of course, the pPass). Are they the same as in the database?
Forum: Scripting Help 23/08/2017, 11:48 PM
Replies: 18
Views: 516
Posted By GoldenLion
Re: Wrong Passwords

Can you also show the line where you set the timer for LoggingTimer? By the way you don't need to escape players' names because they can't have any apostrophes in them. Not that it would change...
Forum: Scripting Help 23/08/2017, 10:21 PM
Replies: 18
Views: 516
Posted By GoldenLion
Re: Wrong Passwords

Show the line where you send the OnAccountCheck query. My guess is that you forgot to pass playerid to OnAccountCheck and the playerid is always 0 there, that happened to me once.
Forum: General 22/08/2017, 02:38 PM
Replies: 25
Views: 955
Posted By GoldenLion
Re: Which Area for RP Server?

I'd say San Fierro would be interesting because there are so few servers based in San Fierro (if there are any at all). That's my opinion.
Forum: Scripting Help 20/08/2017, 05:25 PM
Replies: 22
Views: 412
Posted By GoldenLion
Re: Callback

They may be slower than normal variables, but the difference of speed between them is in nanoseconds, you can't even notice that. You can only notice some difference if you use them like 100k times...
Forum: Filterscripts 19/08/2017, 03:05 PM
Replies: 29
[FilterScript] Weapons on body
Views: 5,878
Posted By GoldenLion
Forum: Filterscripts 18/08/2017, 09:55 PM
Replies: 29
[FilterScript] Weapons on body
Views: 5,878
Posted By GoldenLion
Re: Weapons on body

Well, can't say it's unique or new because there is one big server that has something like this and it gave me the idea. I think we all know what server I'm talking about, but there are really few...
Forum: Scripting Help 17/08/2017, 02:54 PM
Replies: 5
Views: 126
Posted By GoldenLion
Forum: Filterscripts 16/08/2017, 11:29 PM
Replies: 29
[FilterScript] Weapons on body
Views: 5,878
Posted By GoldenLion
Re: Weapons on body

You don't need to know SQL to set it up. Just create the database, paste the code and execute it. And I tried y_ini and dini, but the weapon settings were mixing. Someone could have someone else's...
Forum: Filterscripts 16/08/2017, 10:05 PM
Replies: 29
[FilterScript] Weapons on body
Views: 5,878
Posted By GoldenLion
Re: Weapons on body

Decided to update this after a long time.

Using OnPlayerUpdate now instead of timers for each player.
Removed Command Processor, added the commands under OnPlayerCommandText.
Removed...
Forum: Scripting Help 15/08/2017, 11:57 AM
Replies: 1
Views: 75
Posted By GoldenLion
Re: Small help

I found this yesterday: http://forum.sa-mp.com/showthread.php?t=273263
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 02:20 AM.


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