Raised This Month: $51 Target: $400
 12% 

Showing results 1 to 25 of 51
Search took 0.00 seconds.
Search: Posts Made By: SpawnerF
Forum: Code Snippets/Tutorials 11-23-2018, 12:59
Replies: 28
Views: 16,996
Posted By SpawnerF
Re: Artificial intelligence (neural networks)

Intresting subject, thank's.
Forum: Suggestions / Requests 07-13-2017, 21:28
Replies: 3
Views: 810
Posted By SpawnerF
Re: get timeleft not working

what are you trying to achieve?
Forum: HL1 Servers (HLDS) 07-13-2017, 21:23
Replies: 4
Views: 1,378
Posted By SpawnerF
Re: kid hacker heat my server all time attack him

sometimes to lag it so none can connect


It's a query flood and it can be limited using some iptable rules.
Forum: Scripting Help 07-13-2017, 21:16
Replies: 3
Views: 775
Posted By SpawnerF
Re: allow/Block changing nick

what? You can't! because it's already blocked by returning FMRES_HANDLED and on each change name you call set_user_info again.

The only solution is to use a boolean.
Forum: New Plugin Submissions 07-12-2017, 18:52
Replies: 65
Views: 30,535
Posted By SpawnerF
Re: Element

The idea is good but the code is messy, you need to clean it first.
Forum: HL1 Servers (HLDS) 07-12-2017, 18:05
Replies: 4
Views: 1,378
Posted By SpawnerF
Re: kid hacker heat my server all time attack him

Stop the insult ...

Here you go :

/* First, save the file ! - Sublime AMXX Editor v1.9 */

#include <amxmodx>
#include <amxmisc>
#include <okapi>
Forum: Scripting Help 07-12-2017, 17:26
Replies: 16
Views: 2,080
Posted By SpawnerF
Re: [ H3LP ] Position by votes

@HamletEagle, it would be better if it's in a stock function and don't specify the array size.

You can use something like that:

stock sortedArray(arr[], size = sizeof arr)
{
new temp;
...
Forum: HL1 Servers (HLDS) 07-12-2017, 16:01
Replies: 85
Views: 35,158
Posted By SpawnerF
Re: Open Source Half-Life Engine

this should be okey until they fix it :

/* First, save the file ! - Sublime AMXX Editor v1.9 */

#include <amxmodx>

#pragma semicolon 1

new Trie:_hashList;
Forum: Scripting Help 07-11-2017, 18:20
Replies: 8
Views: 1,333
Posted By SpawnerF
Re: What is NULL?

He was talking about c++

KliPPy is right it's defined like that

#define NULL 0

Edit: ( Read also this )
Should I use NULL or 0?

In C++, the definition of NULL is 0, so there is only an...
Forum: Scripting Help 07-11-2017, 10:07
Replies: 3
Views: 1,001
Posted By SpawnerF
Re: I have a problem

add this:
#define MAX_PLAYERS 32
Forum: Scripting Help 07-11-2017, 09:41
Replies: 4
Views: 1,047
Posted By SpawnerF
Re: Integer division and modulo don't work correctly?

Ofc I was talking about %d since the result return a float num means that %d need to choose > .5 or < .5
Forum: Scripting Help 07-10-2017, 23:03
Replies: 14
Views: 3,230
Posted By SpawnerF
Re: Split string

Thanks but I searched yesterday on the new guide package didn't find anything intresting related to sizeof.

I just need to understand something, if it's a pre-processor directive then why it is...
Forum: Scripting Help 07-10-2017, 18:53
Replies: 4
Views: 1,047
Posted By SpawnerF
Re: Integer division and modulo don't work correctly?

Hmm ... seems like a negative operand produce an incorrect value.
Look what it's writting :

/* forbidden operations */
forward operator%(Float:oper1, Float:oper2);
forward...
Forum: Scripting Help 07-10-2017, 17:19
Replies: 7
Views: 2,122
Posted By SpawnerF
Re: %0.0f throwing compile error

It exist already but it accept only Integer type and honestly it makes no sense

forward operator%(Float:oper1, Float:oper2);
forward operator%(Float:oper1, oper2);
forward operator%(oper1,...
Forum: Scripting Help 07-10-2017, 10:51
Replies: 14
Views: 3,230
Posted By SpawnerF
Re: Split string

but is it really a pre-processor function?

Using -l argument in the compiler "-l create list file (preprocess only)"

using charsmax shows
new Size_of_myArray = (sizeof(myArray)-1)
...
Forum: Scripting Help 07-10-2017, 10:38
Replies: 7
Views: 2,122
Posted By SpawnerF
Re: %0.0f throwing compile error

Yes I told you it's from the modulus operator "%" ... You can't use modulus with floats so I did a small macro that do for you the job ...
Edit : I think you didn't even test my code.
Forum: Approved Plugins 07-10-2017, 10:30
Replies: 10
Views: 6,251
Posted By SpawnerF
Re: Buy Icon Fix

How did you manage to get this output?

I mean adding argument -a gave me :


CODE ; 0
;program exit point
halt 0
dump 74 65 73 74 0
Forum: Scripting Help 07-10-2017, 09:54
Replies: 7
Views: 2,122
Posted By SpawnerF
Re: %0.0f throwing compile error

It's not %0.0f it's modulus who caused this problem

use this :

#define floatmodulus(%0,%1) ((%0/%1)-floatround((%0/%1),floatround_floor))*%1

&

show_hudmessage(id, "[D7] Server FPS:...
Forum: Scripting Help 07-09-2017, 21:39
Replies: 14
Views: 3,230
Posted By SpawnerF
Re: Split string

Yes it's working. You can try it.

edit : sizeof is a pre-processor function?
Forum: Scripting Help 07-09-2017, 20:57
Replies: 14
Views: 3,230
Posted By SpawnerF
Re: Split string

Strings should never be returned from functions especially general purpose functions.

What do you suggest then?


I'm not sure what angle brackets do for creating an array but it's not wise to...
Forum: Scripting Help 07-09-2017, 19:57
Replies: 14
Views: 3,230
Posted By SpawnerF
Re: Split string

I never said that it's important, it's just my way of coding, sorry if it does bother you but I like it like that.
Forum: HL1 Servers (HLDS) 07-09-2017, 19:31
Replies: 2
Views: 1,059
Posted By SpawnerF
Re: Server not joinable

[DPROTO]: Done.

Done.
Forum: New Plugin Submissions 07-09-2017, 19:15
Replies: 3
Views: 2,208
Posted By SpawnerF
Re: Remember The Teams

Hi,

TBH, that's a bad indentation and bad practice.
In Task you don't need to store big numbers.
Don't use get_maxplayers to make a loop to check "something" always get the real number of...
Forum: Scripting Help 07-09-2017, 18:24
Replies: 11
Views: 2,717
Posted By SpawnerF
Re: Change light environment

Light entities

* light
* light_spot
* light_dynamic
* env_projectedtexture
* point_spotlight
* light_environment
* light_directional
Forum: Suggestions / Requests 07-09-2017, 16:45
Replies: 2
Views: 735
Posted By SpawnerF
Re: Create Menu with gaps ?

using ^n or menu_addblank
Showing results 1 to 25 of 51

 
Forum Jump

All times are GMT -4. The time now is 18:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode