Help with #define into sendclientmessage - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with #define into sendclientmessage (
/showthread.php?tid=356693)
Help with #define into sendclientmessage -
scott1 - 04.07.2012
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
Re: Help with #define into sendclientmessage -
SuperViper - 04.07.2012
Try "#db_name".
Re : Help with #define into sendclientmessage -
scott1 - 04.07.2012
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
Re : Help with #define into sendclientmessage -
scott1 - 07.07.2012
Up?
Max