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
#2

Up
Reply
#3

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"); }
Reply
#4

The same errors with that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)