Fancy defines
#1

what is wrong with this code and how to fix it?

Код:
#include <a_samp>

#define ha_%0::%1.%2(%3) (2*%3)
#define lol:%0) ha_%0)

main() {
    printf("%i", onConnect(42));
}

onConnect(lol:lol)
{
//  return (2*6);
    return ha_lol::ha.hi(6); // line 12
}
Код:
input(12) : error 1: expected token: ";", but found "::"
input(12) : error 29: invalid expression, assumed zero
input(12) : error 17: undefined symbol "ha"
input(12) : fatal error 107: too many error messages on one line
Error: The compiler failed. (no error code)
Reply


Messages In This Thread
Fancy defines - by theYiin - 11.08.2013, 10:14
Re: Fancy defines - by Misiur - 11.08.2013, 10:20

Forum Jump:


Users browsing this thread: 1 Guest(s)