[Help] Macro String
#1

Hello, Could you help me please ?? I want to create Macro GameTextForPlayer (Multilanguage), but i have a problem

Код:
#define GTLFP(%0,%1,%2,%3,%4) GameTextForPlayer(%0, (PlayerInfo[(%0)][Language]) ? %2 : %1,%3,%4)
Using:

Код:
GTLFP(playerid,"~g~Uspesne Zaregistrovany!!","~g~Successfully Registered!!",4000,3);
error:

Код:
error 001: expected token: "-string end-", but found "-identifier-"
Код:
enum PlayerData{
	bool:Language = false
};

new PlayerInfo[MAX_PLAYERS_EX][PlayerData];
Reply
#2

Quote:

GMLFP

The name of macro is different than you're using.
Reply
#3

sorry , itґs only my mistake in that post. ,
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)