Help with #define
#1

Ok sa I'm trying to make a /status script and I got a problem at the Faction part.

So I'm using YSI to save my accounts, on the player register they'll be automatically seted in the "Middlers" team

PHP код:
#define Middler 5 //Civilans
#define Havoc 6 // Havoc 
PHP код:
gTeam[playerid] = Middler
to skip any other useless words I'll say it directly. When the player types /status at Faction he sees the ID of the faction I defined and not the faction name. Is there any way to change that ID to with the original name or with a name? I mean can I #define Middlers "Middlers" or something like that?
Reply


Messages In This Thread
Help with #define - by ZeroTheScyther - 18.07.2013, 13:55
Re: Help with #define - by faff - 18.07.2013, 14:00
Re: Help with #define - by ZeroTheScyther - 18.07.2013, 14:03
Re: Help with #define - by faff - 18.07.2013, 14:08
Re: Help with #define - by ZeroTheScyther - 18.07.2013, 14:14
Re: Help with #define - by faff - 18.07.2013, 14:16

Forum Jump:


Users browsing this thread: 1 Guest(s)