An error with a macro
#1

This macro when I use it give me these errors:

Код:
error 001: expected token: "-string end-", but found "-identifier-"
warning 215: expression has no effect
error 001: expected token: ";", but found "-string-"
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
fatal error 107: too many error messages on one line
This is the macro:

pawn Код:
#define Buy(%0)<%1>                             if(PlayerData[playerid][pMoney] < %0) { return NOTENOUGHMONEY } else { PlayerMoney(playerid, -%0); SendMessage(playerid, GREEN, "»» [ServerName] {FFFFFF}Compraste "%1" {FFFFFF}por "green"$"white""%0"."); }
and here the line of error:

pawn Код:
Buy(1500)<"un "red"color "green"al "blue"azar">

I hope you can help me!
Reply


Messages In This Thread
An error with a macro - by JavoDiaz - 29.12.2012, 07:01
Re: An error with a macro - by JavoDiaz - 29.12.2012, 22:04
Re : An error with a macro - by [HRD]Mar1 - 29.12.2012, 22:07
Re: An error with a macro - by JavoDiaz - 29.12.2012, 22:39

Forum Jump:


Users browsing this thread: 2 Guest(s)