An error with a macro - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: An error with a macro (
/showthread.php?tid=403123)
An error with a macro -
JavoDiaz - 29.12.2012
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!
Re: An error with a macro -
JavoDiaz - 29.12.2012
Up
Re : An error with a macro -
[HRD]Mar1 - 29.12.2012
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"); }
Re: An error with a macro -
JavoDiaz - 29.12.2012
The same errors with that.