SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.04 seconds.
Search: Posts Made By: Y_Less
Forum: Scripting Help 25/05/2018, 01:27 PM
Replies: 15
Views: 385
Posted By Y_Less
Re: Pawno compiler Zeex's

No. If that solved it, chances are another include also defines them, so find and remove that one instead.
Forum: Scripting Help 25/05/2018, 12:22 PM
Replies: 9
Views: 155
Posted By Y_Less
Re: Problem with y_ini

You'll probably need to reregister.
Forum: Scripting Help 25/05/2018, 12:04 PM
Replies: 9
Views: 155
Posted By Y_Less
Re: Problem with y_ini

Maybe. I saw a problem in your code, fix it and see if the bug continues - that's generally how debugging works...
Forum: Scripting Help 25/05/2018, 10:18 AM
Replies: 9
Views: 155
Posted By Y_Less
Re: Problem with y_ini

You can't have spaces in tags.
Forum: Scripting Help 23/05/2018, 04:31 PM
Replies: 15
Views: 385
Posted By Y_Less
Re: Pawno compiler Zeex's

I'm not sure how you could include a_samp twice either. You may no longer have implicit include guards, but that file always had explicit ones.
Forum: Scripting Help 23/05/2018, 08:44 AM
Replies: 4
Views: 188
Posted By Y_Less
Re: Will this codes work?

You need unit tests.
Forum: Scripting Help 22/05/2018, 03:40 PM
Replies: 15
Views: 307
Posted By Y_Less
Re: Callbacks with a limited scope

Yeah, you just can't do that. You'll have to stick to making them visible. Or use y_timers, which can be static.
Forum: Scripting Help 22/05/2018, 03:18 PM
Replies: 15
Views: 307
Posted By Y_Less
Re: Callbacks with a limited scope

That's different to what you posted before, where you were just talking about direct calls. In that case, the function by "main" being called was correct. This code is something different, and...
Forum: Scripting Help 22/05/2018, 01:34 PM
Replies: 15
Views: 307
Posted By Y_Less
Re: Callbacks with a limited scope

That seems pretty clear and correct to me. It calls the one visible in the current scope (0000001c in the assembly).
Forum: Scripting Help 22/05/2018, 12:00 PM
Replies: 5
Views: 157
Posted By Y_Less
Re: Y Hooks (Order of the callbacks)

The order is strictly:

Special hooks (aka pre-hooks), check fixes.inc for examples of these.
y_hooks, in included order.
ALS and main public. ALS has explicit chaining, so there's no way to know...
Forum: Scripting Help 22/05/2018, 11:54 AM
Replies: 15
Views: 385
Posted By Y_Less
Re: Pawno compiler Zeex's

^ Ignore that post entirely! That is pure gibberish.
Forum: Scripting Help 22/05/2018, 11:51 AM
Replies: 15
Views: 307
Posted By Y_Less
Re: Callbacks with a limited scope

They wanted it public static, but that isn't possible. I had never tried the syntax you just wrote but Southclaws tested it on discord and it didn't work. I've also wanted this before, but no it...
Forum: Tutorials 22/05/2018, 11:27 AM
Replies: 5
[Tutorial] yield
Views: 881
Posted By Y_Less
Re: yield

It's an extension to pawn, you can use it however you want to write modes. In theory you can use nothing but callbacks and "if" to write a mode, it just isn't easy.
Forum: Discussion 21/05/2018, 09:24 AM
Replies: 2
Views: 279
Posted By Y_Less
Re: Confusion SA-MP Plugins on Linux Branches

And most come with source, so you can just build you own version.
Forum: Scripting Help 21/05/2018, 09:22 AM
Replies: 4
Views: 102
Posted By Y_Less
Re: YSI error

Which compiler are you using? If you have issues, try Zeex's.
Forum: Scripting Help 21/05/2018, 09:20 AM
Replies: 3
Views: 69
Posted By Y_Less
Re: How to use PreviewModelDialog for YSI?

What does that have to do with YSI sorry?
Forum: Scripting Help 21/05/2018, 09:18 AM
Replies: 15
Views: 267
Posted By Y_Less
Re: Not Working

Check the sscanf topic, there's a `k<vehicle>` specifier.
Forum: Scripting Help 21/05/2018, 09:13 AM
Replies: 3
Views: 136
Posted By Y_Less
Re: Optimizing this code

Generally, you don't need to square-root the number.

This:

`sqrt(distance) < 5.0`

Is the same as:

`distance < 25.0`
Forum: Scripting Help 20/05/2018, 07:46 PM
Replies: 7
Views: 174
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: 495
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: 495
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: 117
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: 116
Posted By Y_Less
Forum: Scripting Help 19/05/2018, 09:00 PM
Replies: 5
Views: 175
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: 22
Views: 645
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.
Showing results 1 to 25 of 500

 

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


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