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 21/03/2019, 11:08 PM
Replies: 1
Views: 46
Posted By Y_Less
Re: Help

Stop bumping your own posts/topics. Stop deleting them. And stop using meaningless titles. If you want help describe your problem in the title, listen to what people say, and don't just say...
Forum: Everything and Nothing 21/03/2019, 10:31 PM
Replies: 5
Views: 106
Posted By Y_Less
Re: Clucker Levels

This many:

https://forum.sa-mp.com/memberlist.php?order=DESC&sort=posts&pp=50
Forum: Scripting Help 21/03/2019, 10:29 PM
Replies: 3
Views: 63
Posted By Y_Less
Re: Custom Server time

Set the time.
Forum: Everything and Nothing 21/03/2019, 09:25 PM
Replies: 5
Views: 106
Posted By Y_Less
Re: Clucker Levels

0 - Newbie
1 - Little Clucker
50 - Big Clucker
200 - Huge Clucker
500 - Gangsta
1000 - High-roller
5000 - Godfather
10000 - Spam Machine
Forum: Scripting Help 21/03/2019, 09:19 PM
Replies: 1
Views: 42
Posted By Y_Less
Re: CreateObject Problem

Don't delete the problem, post the solution so that others can learn.
Forum: Scripting Help 21/03/2019, 09:17 PM
Replies: 1
Views: 50
Posted By Y_Less
Forum: Scripting Help 21/03/2019, 09:14 PM
Replies: 3
Views: 63
Posted By Y_Less
Re: Custom Server time

Just enable the clock:

https://wiki.sa-mp.com/wiki/TogglePlayerClock
Forum: Server Support 21/03/2019, 12:57 AM
Replies: 32
Views: 6,839
Posted By Y_Less
Re: Servers are getting attacked

Could you make queries TCP? Those are much harder to IP spoof, which means that only legitimate clients could make them. Then for regular connections you can refuse connections from IPs that...
Forum: Scripting Help 20/03/2019, 10:10 PM
Replies: 7
Views: 1,996
Posted By Y_Less
Re: Get random string

Don't use that one, it is unbalanced compared to this one.
Forum: Scripting Help 20/03/2019, 12:05 PM
Replies: 5
Views: 98
Posted By Y_Less
Re: Textdraw problem

Use normal text draws not player text draws.
Forum: Scripting Help 20/03/2019, 12:12 AM
Replies: 5
Views: 98
Posted By Y_Less
Re: Textdraw problem

Have you tried a global TD? This should be one since it never changes.
Forum: Scripting Help 19/03/2019, 11:14 PM
Replies: 6
Views: 128
Posted By Y_Less
Re: Question about the zeek compiler

[03:59:48] [profiler] Started profiling gamemodes/GM

_________Freeze 2-4 seconds___________

[04:00:21]


That's not 2-4 seconds. 4:00:21 - 3:59:48 = 33 seconds.
Forum: Scripting Help 19/03/2019, 11:11 PM
Replies: 3
Views: 87
Posted By Y_Less
Re: strtok equivalent in this situation

Just use an array or loop, don't duplicate code like that. And you can do:


sscanf(text[4], "i", id)


To get the number after the command.
Forum: Scripting Help 19/03/2019, 08:17 PM
Replies: 7
Views: 95
Posted By Y_Less
Re: Function error

Again, it's clear to you. Even if someone could figure out what the letters stand for, "Extended" is also the least useful description ever. It just means "and something else", but that "something"...
Forum: Scripting Help 19/03/2019, 07:05 PM
Replies: 3
Views: 87
Posted By Y_Less
Re: strtok equivalent in this situation

You don't need strtok or sscanf, just compare the input string directly and specify a maximum length.
Forum: Scripting Help 19/03/2019, 02:57 PM
Replies: 7
Views: 95
Posted By Y_Less
Re: Function error

The problem isn't YOU knowing what they do, it's everyone else. Especially when you need them to read your code and assist.
Forum: Scripting Help 19/03/2019, 02:41 PM
Replies: 7
Views: 95
Posted By Y_Less
Re: Function error

Name it something else, like `isOn`. Also, why are you using `switch` for true/false, and not using `bool:`? And `SCMTAEX` is the worst function name I've ever seen. Most functions should include...
Forum: Scripting Help 19/03/2019, 02:32 PM
Replies: 7
Views: 95
Posted By Y_Less
Re: Function error

You can't use keywords as variable names.
Forum: Scripting Help 19/03/2019, 12:36 PM
Replies: 3
Views: 84
Posted By Y_Less
Re: Quick question

Callbacks happen when something in the game happens. After you spawn you're just stood there - that's not an interesting thing to inform the server of. What do you want to detect exactly?
Forum: Scripting Help 19/03/2019, 11:21 AM
Replies: 3
Views: 93
Posted By Y_Less
Re: detect a player in front

Check if the player is in range. This is very easy with GetPlayerPos and IsPlayerInRangeOfPoint. Basically:


IsPlayerInRangeOfPlayer(p0, p1, Float:range)
{
new Float:x, Float:y, Float:z;...
Forum: Scripting Help 19/03/2019, 10:09 AM
Replies: 6
Views: 128
Posted By Y_Less
Re: Question about the zeek compiler

The generated code is mostly the same, the compiler doesn't affect that unless you're doing something very unusual. When you say "seems" to take longer, have you tested it?
Forum: Scripting Help 18/03/2019, 06:54 PM
Replies: 6
Views: 119
Posted By Y_Less
Re: Voice chat in SAMP, a good idea...?

That doesn’t make it good.
Forum: Scripting Help 18/03/2019, 06:28 PM
Replies: 6
Views: 119
Posted By Y_Less
Re: Voice chat in SAMP, a good idea...?

Because then you'd be able to hear other people screaming down the mic, playing awful music overly loud, or sitting inside what sounds like a jet engine. It can be done, it shouldn't be done (IMHO).
Forum: Scripting Help 18/03/2019, 05:13 PM
Replies: 11
Views: 216
Posted By Y_Less
Forum: Scripting Help 17/03/2019, 09:48 PM
Replies: 11
Views: 216
Posted By Y_Less
Re: Y_Ini writes any file = server crash

Does the file open? Does the target directory exist? From the sounds of it you are on YSI 3, which is very old.
Showing results 1 to 25 of 500

 

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


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