18.03.2017, 14:34
I have just defined this:
And these are my errors:
Please help.
PHP код:
#define Loop:(%0, %1) \
for(new i = %0; i < %1; i++)
// /// // // / // / / / /
public OnPlayerSpawn(playerid)
{
Loop:(0, 10){
print("Print this text");
}
}
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 |