Raised This Month: $18 Target: $400
 4% 

Showing results 1 to 25 of 124
Search took 0.01 seconds.
Search: Posts Made By: Shadows In Rain
Forum: Module Coding 02-08-2013, 08:14
Replies: 7
Views: 1,383
Posted By Shadows In Rain
Re: Can't set state in AddToFullPack

In this translation unit (*.cpp file) you need to #include header file, which defines entity_state_s, i.e. common/entity_state.h.
Forum: Module Coding 01-06-2013, 06:10
Replies: 7
Views: 1,757
Posted By Shadows In Rain
Re: Dynamic Link Library Exports

In Windows/MSVC, same approach is used for exporting either functions or variables, i.e. _declspec(dllexport).
http://support.microsoft.com/kb/90530/en-us?fr=1
Forum: Module Coding 01-05-2013, 01:35
Replies: 9
Views: 2,250
Posted By Shadows In Rain
Re: some errors recompiling amxx

Probably because you compiling "Debug" configuration.
http://stackoverflow.com/questions/933739/what-is-difference-between-release-and-debug-modes-in-visual-studio
Forum: Module Coding 12-12-2012, 05:15
Replies: 33
Views: 5,915
Posted By Shadows In Rain
Re: Zombie plague module

@Tirant
After reading lots of books and spending uncounted hours on sites like StackOverflow, I became very frustrated about communities like Allied Mods. Modularity, Interfaces, Encapsulation,...
Forum: Off-Topic 11-06-2012, 13:03
Replies: 33
Views: 3,004
Posted By Shadows In Rain
Re: AMXX fun: shortest script ever.

Oopsie.... It was a typo. (fixed now)

@mabaclu
Can you find there something about "operator @"? Because it has been mentioned in sourcecode. Or may be I will just ask Pawn maintainer.
Forum: Off-Topic 11-05-2012, 19:36
Replies: 33
Views: 3,004
Posted By Shadows In Rain
Re: AMXX fun: shortest script ever.

In compiler sources it is written that "@" alone (i.e. when not attached to other characters) treated as operator (just like "+" or "-" etc).

pawn-4.0.4733/source/compiler/sc2.c, line 2125:

...
Forum: Off-Topic 11-05-2012, 19:10
Replies: 33
Views: 3,004
Posted By Shadows In Rain
Re: AMXX fun: shortest script ever.

Actually I wonder how operator "@" is used. Because I can't find anything about it, even in compiler sources.
Forum: Off-Topic 11-05-2012, 19:01
Replies: 33
Views: 3,004
Posted By Shadows In Rain
Re: AMXX fun: shortest script ever.

If you call "@@", it will yield stack overflow.
Forum: Off-Topic 11-05-2012, 18:58
Replies: 33
Views: 3,004
Posted By Shadows In Rain
Re: AMXX fun: shortest script ever.

Pawn stares at YOU!
@@()@@
Forum: Off-Topic 11-05-2012, 18:55
Replies: 33
Views: 3,004
Posted By Shadows In Rain
Re: AMXX fun: shortest script ever.

Okay then. Just 8 characters? I can do it with 6.
My current results:
@@()@@
My previous (hashed) results:
@@()@@()//...$a|t...
@@(){}//...$a|t...

Why it's possible? If symbol starts with...
Forum: Off-Topic 11-05-2012, 18:45
Replies: 33
Views: 3,004
Posted By Shadows In Rain
Re: AMXX fun: shortest script ever.

Also, thanx to mabaclu for reminding that feature, now i know even better result.

@YamiKaitou
My result is shorter. Wait 5 minutes.
Forum: Off-Topic 11-05-2012, 18:41
Replies: 33
Views: 3,004
Posted By Shadows In Rain
Forum: Off-Topic 11-05-2012, 18:38
Replies: 33
Views: 3,004
Posted By Shadows In Rain
Re: AMXX fun: shortest script ever.

@mabaclu
Almost. But it can be even shorter.

It compiles becuse Pawn allows to pass args in braceless style.


n1(c)
{
n1 c
}
Forum: Off-Topic 11-05-2012, 18:27
Replies: 33
Views: 3,004
Posted By Shadows In Rain
Re: AMXX fun: shortest script ever.

If no one will dare to conduct deeper research, after some period of time, I will show results.
Forum: Off-Topic 11-05-2012, 18:20
Replies: 33
Views: 3,004
Posted By Shadows In Rain
Re: AMXX fun: shortest script ever.

@.Dare Devil.
Sourcecode, i.e. sma.

@YamiKaitou
You have no acces to my results yet.

@BAILOPAN
Plugin without entry point won't compile.
Forum: Off-Topic 11-05-2012, 17:57
Replies: 33
Views: 3,004
Posted By Shadows In Rain
Re: AMXX fun: shortest script ever.

I have hashed my results. Later I will show them to prove that I'm not lying.

Dig deeper.

Or you can use rainbow dash tables and try to reverse my hashes.
Forum: Off-Topic 11-05-2012, 16:54
Replies: 33
Views: 3,004
Posted By Shadows In Rain
AMXX fun: shortest script ever.

I dare you to write shortest AMXX script ever. Conditions:
It must be Pawn sourcecode.
It must succesfully compile witout any warnings.
It can do something (no matter what).
Default...
Forum: Off-Topic 11-05-2012, 16:23
Replies: 20
Views: 3,096
Posted By Shadows In Rain
Re: Indentation Convention [A notepad++ tutorial]

'\t' is standardized.
X*spaces are not.

'\t' is configurable.
X*spaces are not.

Welcome to the future.
Forum: Module Coding 04-07-2012, 21:54
Replies: 23
Views: 9,356
Posted By Shadows In Rain
Re: Problem compiling with USE_METAMOD

Try my setup (http://forums.alliedmods.net/showpost.php?p=1672679&postcount=2) (step by step instructions). At least I have absolutely no problems with it.
Forum: Module Coding 03-21-2012, 04:47
Replies: 10
Views: 3,605
Posted By Shadows In Rain
Re: Compiling Modules

Env. vars are part of OS. Example (WinXP):
http://vlaurie.com/computers2/graphics/envvar.gifhttp://vlaurie.com/computers2/graphics/addreg.gif (http://vlaurie.com/computers2/Articles/environment.htm)...
Forum: Module Coding 03-20-2012, 16:02
Replies: 10
Views: 3,605
Posted By Shadows In Rain
Re: Compiling Modules

Try to...
1. close paths with backslash, e.g. C:\sdk_files\hlsdk\multiplayer\dlls\
2. add C:\sdk_files\hlsdk\multiplayer\pm_shared\

Or you can just follow my setup.

MSVC2010 -> Solution...
Forum: Module Coding 03-19-2012, 07:12
Replies: 1
Views: 1,106
Posted By Shadows In Rain
Re: Error compiling monster mod !

May be missing some includes.
Forum: Module Coding 02-15-2012, 07:36
Replies: 1
Views: 738
Posted By Shadows In Rain
Re: How to load another module?

Solved.
mutil_funcs_t :: pfnLoadPlugin
Forum: Module Coding 02-15-2012, 05:01
Replies: 1
Views: 738
Posted By Shadows In Rain
How to load another module?

Is there a way to instruct Metamod to load another Metamod-plugin (aka module) at runtime? How AMXX does it?
Thanks in advance for any help.
Forum: Module Coding 02-15-2012, 04:42
Replies: 5
Views: 4,834
Posted By Shadows In Rain
Re: How to parse a string in arguments?

be an elegant @ use std
const size_t bsz = 200;
char buffer[bsz], *src;
char name[bsz], password[bsz], user_flags[bsz], flags[bsz];

fstream config;
config.open(..., ios::in);...
Showing results 1 to 25 of 124

 
Forum Jump

All times are GMT -4. The time now is 11:27.


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