17.05.2015, 04:30
Remove the ';' from the end of the #define line.
Example:
pawn Код:
#define SetPlayerHealthEx(%0,%1) pHealth[%0] = (%1), SetPlayerHealth(%0, (%1))
#define SetPlayerArmourEx(%0,%1) pArmour[%0] = (%1), SetPlayerArmour(%0, (%1))
pawn Код:
#define var(%0) Kick(%0);
public OnPlayerConnect(playerid)
{
var(playerid); // Becomes 'Kick(playerid);;'
}
pawn Код:
#define var(%0) Kick(%0)
public OnPlayerConnect(playerid)
{
var(playerid); // Becomes 'Kick(playerid);'
}