working with defines
#1

will something like this work with a define?

pawn Code:
#define MyDefine 25000 + random(25001)
i didnt add a ";" because i never saw one on the dcmd define.

and of course the output should be 25000 plus a random of 25000
Reply
#2

Easiest way would be to have tested it before asking...

pawn Code:
#include <a_samp>
#define MyDefine 25000 + random(25001)

public OnFilterScriptInit()
{
    printf("lol %d", MyDefine);
    return 1;
}
The answer: Yes it does work.
Reply
#3

Quote:
Originally Posted by Weirdosport
Easiest way would be to have tested it before asking...
never thought of doing that

Thanks Though.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)