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 18/11/2018, 10:16 PM
Replies: 2
Views: 31
Posted By Y_Less
Re: I have a question about data management

It is possible, but that doesn't mean it is a good idea. It will make it difficult to combine different bits of data from different places.
Forum: Scripting Help 18/11/2018, 07:40 PM
Replies: 10
Views: 146
Posted By Y_Less
Re: Updating YSI includes issue

Well the first warning is because you are doing `foreach (Player, i)` instead of `foreach (new i : Player)`.

The rest are probably because you have a global variable called `sip` somewhere.
Forum: Scripting Help 18/11/2018, 03:34 PM
Replies: 7
Views: 101
Posted By Y_Less
Re: Array index (proprocessor) ?

No, it isn't possible at compile time. But you might also want to look at using databases with keys. And you can always look up the index once at server start-up and store it.
Forum: Scripting Help 18/11/2018, 03:04 PM
Replies: 7
Views: 101
Posted By Y_Less
Re: Array index (proprocessor) ?

cmd:updates(playerid,params[])
{
new string[1024];
for(new i=LINES_OF_UPDATES;i--;)
{
strcat(string,ListOfUpdates[i]);
strcat(string,"\n");
}
...
Forum: Scripting Help 18/11/2018, 02:47 PM
Replies: 7
Views: 101
Posted By Y_Less
Re: Array index (proprocessor) ?

Why not add updates to the end instead?
Forum: Scripting Help 18/11/2018, 01:51 PM
Replies: 7
Views: 101
Posted By Y_Less
Re: Array index (proprocessor) ?

Why? If you need static access to it, put it in a separate variable.
Forum: Everything and Nothing 18/11/2018, 04:29 AM
Replies: 31
Views: 2,150
Posted By Y_Less
Re: Kalcor or a man with a capital letter.

Thatís not how it works. Stealing something and giving it to someone else doesnít magically entitle that other person to it.
Forum: Scripting Help 16/11/2018, 05:08 PM
Replies: 3
Views: 108
Posted By Y_Less
Re: Question on /updates

ErÖ The command is for updates - you have to edit your script to make updates, so why go out of your way to do the messages differently?

Of course, there is something to be said for going out of...
Forum: Scripting Help 16/11/2018, 02:39 PM
Replies: 10
Views: 146
Posted By Y_Less
Re: Updating YSI includes issue

Or use the 5.x branch. 4.x is still somewhat supported, but most of my effort is now on 5.x - I was specifically asked not to fix these warnings on the 4.x branch.
Forum: Scripting Help 16/11/2018, 02:36 PM
Replies: 4
Views: 104
Posted By Y_Less
Re: error 031: unknow directive

I fixed that locally but apparently forgot to push. Thanks for notifying me - it's fixed now.
Forum: Scripting Help 16/11/2018, 12:55 PM
Replies: 10
Views: 146
Posted By Y_Less
Re: Updating YSI includes issue

Have you also updated your compiler? Most of these warnings come from that.
Forum: General 16/11/2018, 12:43 PM
Replies: 234
Views: 39,465
Posted By Y_Less
Re: SA-MP Source Code Leaked

That isn't copyright theft. The SA-MP team have not taken any of Rockstar's code without permission. Nor have they ever been asked to stop. The same cannot be said for RW-MP:



No he isn't. I've...
Forum: General 16/11/2018, 12:16 AM
Replies: 234
Views: 39,465
Posted By Y_Less
Re: SA-MP Source Code Leaked

Yes, they did.

You're right that there's no problem writing something similar, but that's not what they did. Nor, FYI, is it what JC2:MP did.
Forum: Scripting Help 15/11/2018, 01:40 PM
Replies: 6
Views: 96
Posted By Y_Less
Re: Server version downgrade removed mapping

Check the limits. Make sure everything is going through the streamer.
Forum: Scripting Help 15/11/2018, 12:22 PM
Replies: 4
Views: 82
Posted By Y_Less
Re: pawncc.exe Application Error

I see you're using Windows 10 x64. This could be a compatibility issue. Try running in XP/Vista/7 compatibility modes.
Forum: Scripting Help 15/11/2018, 11:04 AM
Replies: 6
Views: 96
Posted By Y_Less
Re: Server version downgrade removed mapping

Are they custom models? Those are the whole difference between .7 and DL.
Forum: Scripting Help 15/11/2018, 03:09 AM
Replies: 5
Views: 166
Posted By Y_Less
Forum: Scripting Help 15/11/2018, 03:07 AM
Replies: 1
Views: 56
Posted By Y_Less
Re: Detect Q and E onfoot

You detect actions, such as "jump" or "fire", not specific keys.
Forum: Scripting Help 14/11/2018, 04:41 PM
Replies: 11
Views: 156
Posted By Y_Less
Re: Please help me on this

Except I donít understand this line:



Why pointlessly restrict yourself in what code can be used?
Forum: Scripting Help 14/11/2018, 02:12 PM
Replies: 3
Views: 122
Posted By Y_Less
Re: Selection Skin bug

That looks like a pair of jeans to me. It is showing the image, just insanely close up. I can't say why without your code.
Forum: Scripting Help 14/11/2018, 02:10 PM
Replies: 3
Views: 107
Posted By Y_Less
Re: How to load maps from website

That's utterly rubbish. Loading files is trivially easy, the only question is what format are they in. For example MTA maps can be loaded with YSI, more custom formats need a custom loader. But...
Forum: Scripting Help 14/11/2018, 02:07 PM
Replies: 2
Views: 71
Posted By Y_Less
Re: Colors in Dialog

Don't store colours as strings, they are numbers.
Forum: Scripting Help 14/11/2018, 02:05 PM
Replies: 11
Views: 156
Posted By Y_Less
Re: Please help me on this

Why do you not want to use random, how do you intend to select a number?
Forum: Scripting Help 14/11/2018, 02:02 PM
Replies: 3
Views: 72
Posted By Y_Less
Re: Error Compiling in VSCode

There are three possible reasons:

1) You're on the old compiler.
2) You're on an old YSI.
3) You forgot `-(+ -;+`.

Or of course any combination of those.

Edit: Looking more closely, it...
Forum: Scripting Help 14/11/2018, 12:21 AM
Replies: 6
Views: 126
Posted By Y_Less
Re: ShowPlayerDialog getting weird

I believe colours don't work after the 255th character.
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 10:23 PM.


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