How do you define more stuffs on 1 define ? (lol)
#2

Quote:
Originally Posted by wallen
Посмотреть сообщение
PHP код:
#define CLANBAN "[test], [test2], [test3]"
#define nicknameban "admin, lol" 
So i just made that little system on detecting tags, and names on the player connection and if they match he gets the ban, but i dont understand why it stops detect since i've added 2 more tags , and 1 more nick. Is there a way to define more tags and nick on just 1 line. ?
That's not possible. Defines are basically a place holders, it gets replaced with the actual content on compiling. So doing this:

PHP код:
#define CLANBAN "[test], [test2], [test3]"
if(!strcmp(clanCLANBAN)) 
Becomes:

PHP код:
if(!strcmp(clan"[test], [test2], [test3]")) 
Reply


Messages In This Thread
How do you define more stuffs on 1 define ? (lol) - by wallen - 24.02.2018, 13:56
Re: How do you define more stuffs on 1 define ? (lol) - by iKarim - 24.02.2018, 13:59
Re: How do you define more stuffs on 1 define ? (lol) - by wallen - 24.02.2018, 14:08

Forum Jump:


Users browsing this thread: 1 Guest(s)