What's wrong here...
#1

pawn Код:
stock GetOppositeAngle(Float:angle)
{
    if(angle < 180.0) { return angle + 180.0; } // warning 213: tag mismatch
    return angle - 180.0; // warning 213: tag mismatch
}
Please help, thanks.
Reply
#2

Quote:
Originally Posted by Whizion
Посмотреть сообщение
pawn Код:
stock GetOppositeAngle(Float:angle)
{
    if(angle < 180.0) { return angle + 180.0; } // warning 213: tag mismatch
    return angle - 180.0; // warning 213: tag mismatch
}
Please help, thanks.
You need to declare the stock using a float tag as it is returning a float. Additionally you don't need those extra brackets

pawn Код:
stock Float: GetOppositeAngle(Float:angle)
{
    if(angle < 180.0) return angle + 180.0; // warning 213: tag mismatch
    return angle - 180.0; // warning 213: tag mismatch
}
Reply
#3

Thanks.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)