An issue with #define
#8

Quote:
Originally Posted by Dziugsas
Посмотреть сообщение
COMMANDercentage(playerid, params[], amount, percentage) this is the line where you get warning?
Correction it isthis line; 1525


Again proving its this issue.



Note: If you're planning on reply to this thread please actually READ the topic first.
Error: warning 236: unknown parameter in substitution You know this? that's what the thread is about. --> (incorrect #define pattern) <-- You know this? that's what the thread is about.


Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
If you use ZCMD, then you shouldn't use other arguments as kamiliuxliuxliux said because the include calls the cmd_... with 2 arguments only (playerid and params).

Anyways, the problem is with the #define pattern and not at the line is used. For example, doing:
pawn Код:
#define WorkOutPercentage(%0, %1) ... SOMETHING HERE ...
will give that warning because you cannot use space at the first part. The correct would be:
pawn Код:
#define WorkOutPercentage(%0,%1) ... SOMETHING HERE ...
At-least someone helped out, and nothing else if the problem. +1 Repped.
Reply


Messages In This Thread
An issue with #define - by zT KiNgKoNg - 30.06.2014, 18:02
Re: An issue with #define - by kamiliuxliuxliux - 30.06.2014, 18:04
Re: An issue with #define - by zT KiNgKoNg - 30.06.2014, 18:06
Re: An issue with #define - by Dziugsas - 30.06.2014, 18:08
Re: An issue with #define - by zT KiNgKoNg - 30.06.2014, 18:10
Re: An issue with #define - by Dziugsas - 30.06.2014, 18:11
Re: An issue with #define - by Konstantinos - 30.06.2014, 18:18
Re: An issue with #define - by zT KiNgKoNg - 30.06.2014, 18:20

Forum Jump:


Users browsing this thread: 6 Guest(s)