SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: Y_Less
Forum: Scripting Help 20/05/2018, 07:46 PM
Replies: 6
Views: 114
Posted By Y_Less
Re: Hash passwords are different

PHP doesn't properly hash things, especially when using multiple rounds (which you should be doing). Just use BCrypt.
Forum: Scripting Help 20/05/2018, 07:00 AM
Replies: 29
Views: 445
Posted By Y_Less
Re: Array out of bounds

Yes, my point was an enum 50 lines long is terrible, so one 400 lines long must be horrific.
Forum: Scripting Help 19/05/2018, 11:57 PM
Replies: 29
Views: 445
Posted By Y_Less
Re: Array out of bounds

Probably the same as fixing your function. If a 50 line function is bad, a 50 line enum is so much worse! Split it up.
Forum: Scripting Help 19/05/2018, 11:55 PM
Replies: 5
Views: 101
Posted By Y_Less
Re: Dialog parameters

Make it a constant static global.
Forum: Scripting Help 19/05/2018, 10:44 PM
Replies: 5
Views: 95
Posted By Y_Less
Forum: Scripting Help 19/05/2018, 09:00 PM
Replies: 5
Views: 167
Posted By Y_Less
Re: about a question YSI and ' estimated max. usage: unknown, due to recursion'

This isn't a problem, its just an information message.
Forum: Tutorials 19/05/2018, 08:58 PM
Replies: 21
Views: 365
Posted By Y_Less
Re: Array index out of bounds problem! [How to acknowledge and fix]

That's wrong. Only strings need NULL terminators - arrays don't.
Forum: Scripting Help 19/05/2018, 04:52 PM
Replies: 4
Views: 103
Posted By Y_Less
Re: Player names being cut short

I'm going to take a bet that your player enum as you call it has a huge number of items in it, instead of correctly splitting and isolating data. This is undoubtedly the problem.
Forum: Scripting Help 19/05/2018, 04:32 PM
Replies: 29
Views: 445
Posted By Y_Less
Re: Array out of bounds

No. As I said, your function is way too long - split it up in to small parts and it will become much simpler to debug.
Forum: Scripting Help 19/05/2018, 04:24 PM
Replies: 29
Views: 445
Posted By Y_Less
Re: Array out of bounds

No. Arrays are fine in functions. My point was your function is too long.
Forum: Scripting Help 19/05/2018, 10:23 AM
Replies: 29
Views: 445
Posted By Y_Less
Re: Array out of bounds

I'm not surprised! That function is vast! Split it up in to lots of little functions and have the main function call all the other ones (or use lots of timers). If your function is over 50 lines long...
Forum: Scripting Help 18/05/2018, 04:25 PM
Replies: 11
Views: 179
Posted By Y_Less
Re: MySQL password hash

Use BCrypt. Nothing else.
Forum: Scripting Help 17/05/2018, 11:38 AM
Replies: 4
Views: 116
Posted By Y_Less
Re: How can I save this using Yini?

Because "y_ini" (not "Yini") is a file system. You give it data, it saves that data. It has no concept of clans or factions - if you want those, use "y_groups". Any y_ini tutorial covers how to...
Forum: Scripting Help 15/05/2018, 11:21 AM
Replies: 13
Views: 229
Posted By Y_Less
Re: Pawno Crash

Just don't use pawno. I personally use Notepad++, but there are some excellent tools for VSCode, sublime, and probably others.
Forum: Scripting Help 15/05/2018, 11:17 AM
Replies: 2
Views: 59
Posted By Y_Less
Re: Undefined Symbol

@FaLLenGirL That's not even valid PAWN syntax, looks more like JavaScript. Also, the lack of a "return" wouldn't affect this in any way.

@Hunud We need more context. Yes, you think the symbol...
Forum: Scripting Help 13/05/2018, 07:04 PM
Replies: 4
Views: 110
Posted By Y_Less
Re: search for scripters

You've said nothing about what code you need, what code you have already, how much you are paying, etc.
Forum: Scripting Help 13/05/2018, 05:27 PM
Replies: 8
Views: 174
Posted By Y_Less
Re: Problem with YSI\y_ini

That's explained in the tutorials. "LoadUser_data" will load every tag using the same callback, "LoadUser_%s" will create the callback name based on the current tag. So different tags will use...
Forum: Scripting Help 13/05/2018, 02:55 PM
Replies: 9
Views: 220
Posted By Y_Less
Re: Fixes2 problem

They aren't all written like that, just the badly written ones.

And no, but that's a good thing - you should not share global state even between files in your mode, let alone separate modes. Use...
Forum: Scripting Help 13/05/2018, 02:53 PM
Replies: 8
Views: 174
Posted By Y_Less
Re: Problem with YSI\y_ini

Because you set `bPassTag` but didn't provide a callback parameter for it.
Forum: Scripting Help 13/05/2018, 09:05 AM
Replies: 8
Views: 174
Posted By Y_Less
Re: Problem with YSI\y_ini

The callback is called once per value in the script, for you to save the data in global variables and use later. It isn't designed for using the values in the callback itself, since nothing after...
Forum: Scripting Help 13/05/2018, 08:58 AM
Replies: 9
Views: 220
Posted By Y_Less
Re: Fixes2 problem

Well one instant piece of advice I can give you is split it up in to many small parts. The fact that it is one 30000 line file is why I know it is badly written, because that by definition is bad...
Forum: Scripting Help 12/05/2018, 09:23 PM
Replies: 9
Views: 220
Posted By Y_Less
Re: Fixes2 problem

Right, I'll address the first issue first. We have three components here:

1) fixes.inc, written over several years by a whole selection of some of the best scripters in SA:MP, and tested on many...
Forum: Scripting Help 12/05/2018, 03:12 PM
Replies: 9
Views: 220
Posted By Y_Less
Re: Fixes2 problem

How many files is your code split up in to?
Forum: Everything and Nothing 11/05/2018, 11:28 AM
Replies: 7
Views: 286
Posted By Y_Less
Re: Weird Question

No-one has that ability. This is literally the worst possible advice. Includes exist for a reason:

1) They save you effort. Why spend two months creating something that already exists, when you...
Forum: Everything and Nothing 11/05/2018, 11:21 AM
Replies: 29
Views: 1,419
Posted By Y_Less
Re: Why is SAMP community like

Mediafire is awful - I have to enable JavaScript just to download a file, nothing hosted there has ever been worth that.
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 03:18 AM.


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