Define error?
#1

I have just defined this:
PHP код:
#define Loop:(%0, %1) \
        
for(new = %0< %1i++) 
// /// // // / // / / / /
public OnPlayerSpawn(playerid)
{
    
Loop:(010){
        print(
"Print this text");
    }

And these are my errors:
Quote:

./Callbacks.pwn(2 : warning 236: unknown parameter in substitution (incorrect #define pattern)
./Callbacks.pwn(2 : warning 236: unknown parameter in substitution (incorrect #define pattern)
./Callbacks.pwn(2 : error 029: invalid expression, assumed zero
./Callbacks.pwn(2 : warning 215: expression has no effect
./Callbacks.pwn(2 : error 001: expected token: ";", but found ")"
./Callbacks.pwn(2 : error 029: invalid expression, assumed zero
./Callbacks.pwn(2 : fatal error 107: too many error messages on one line

Please help.
Reply
#2

PHP код:
#define Loop:(%0,%1) // No space between the comma and the percent sign. 
Reply
#3

Quote:
Originally Posted by Troydere
Посмотреть сообщение
PHP код:
#define Loop:(%0,%1) // No space between the comma and the percent sign. 
Worked! Thank you very much.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)