Thread: Editing params
View Single Post
  #7  
Old 04-12-2007, 01:50 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Sometimes it is better to use more script lines when it improves the readibility of the script. So it would be better to write moneyValue = int(moneyValue); in the next line instead of adding some hacky way of manipulating it directly in the function header. In some programming languages you can define conditions for the input variables, although it is probably more easy to write those checks at the beginnig of the function.
Reply With Quote