Help with #define into sendclientmessage
#1

I all,

i would like to know how can i put an define into an send client message

Like

#define db_name mysampsqldb

SendClientMessage(playerid,COLOR_ROUGE,"My db is "db_name".");

I got this

C:\DOCUME~1\Maxence\Bureau\WESTCO~1\GAMEMO~1\WCRP3 .pwn(2997) : error 001: expected token: "-string end-", but found "-identifier-"
C:\DOCUME~1\Maxence\Bureau\WESTCO~1\GAMEMO~1\WCRP3 .pwn(2997) : warning 215: expression has no effect
C:\DOCUME~1\Maxence\Bureau\WESTCO~1\GAMEMO~1\WCRP3 .pwn(2997) : error 001: expected token: ";", but found "-string-"
C:\DOCUME~1\Maxence\Bureau\WESTCO~1\GAMEMO~1\WCRP3 .pwn(2997) : warning 215: expression has no effect
C:\DOCUME~1\Maxence\Bureau\WESTCO~1\GAMEMO~1\WCRP3 .pwn(2997) : error 001: expected token: ";", but found ")"
C:\DOCUME~1\Maxence\Bureau\WESTCO~1\GAMEMO~1\WCRP3 .pwn(2997) : fatal error 107: too many error messages on one line


Thank You

Max
Reply
#2

Try "#db_name".
Reply
#3

Some times i think i m a big noob,

your way work perfectly,

but my way was right to, if i do like this

#define db_name "mysampsqldb"


Thank you

Max
Reply
#4

Up?

Max
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)