#define macro
#1

Basically, i need same macro in different type, just like this:
#define Player: Player_
#define Player:%0[%1] Player[%1][_%0]

I tried to do this but i got error.
Code:
#define Player:%0 PLAYER|||SECOND|||_%0|||
#define PLAYER|||SECOND|||%0[_%1]||| Player[%1][%0]
#define PLAYER|||SECOND|||_%0||| Player_
Code:
Player/player/header.pwn(27) : warning 201: redefinition of constant/macro (symbol "PLAYER|||SECOND|||_%0|||")
Reply
#2

I just don't get what you want to do exactly, can you put an example?
Reply
#3

Example is there, i want make "Player:" in 2 different method,
First method: Player:count will be transform to Player_count
Second method: Player:name[playerid] will be transform to Player[playerid][name]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)