Parameters in a define
#1

Hello i dant to define a clientmessage with some parameter

Here is my define:
Код:
#define SendServerSikeres(%0,%1) \
	SendClientMessageEx(%0, COLOR_SIKERES, "(( "%1" ))")
I woud like call it like SendServerSikeres(playerid, "test");
and show this: "(( test ))". But i can't do this in a define. Any idea? Thanks.

Here are the errors:
Код:
error 035: argument type mismatch (argument 2)
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Reply


Messages In This Thread
Parameters in a define - by n00el - 02.08.2016, 01:52
Re: Parameters in a define - by Luicy. - 02.08.2016, 02:03
Re: Parameters in a define - by AndySedeyn - 02.08.2016, 02:08
Re: Parameters in a define - by n00el - 02.08.2016, 10:19
Re: Parameters in a define - by Luicy. - 02.08.2016, 11:16
Re: Parameters in a define - by n00el - 02.08.2016, 11:40
Re: Parameters in a define - by Stinged - 02.08.2016, 11:46
Re: Parameters in a define - by n00el - 02.08.2016, 11:48
Re: Parameters in a define - by n00el - 02.08.2016, 12:03
Re: Parameters in a define - by Nero_3D - 02.08.2016, 21:03

Forum Jump:


Users browsing this thread: 1 Guest(s)