Jayz Posted August 26, 2022 Posted August 26, 2022 (edited) Hello, how to add multiplier on query this is the example of script input .@amount; query_sql("INSERT INTO `mapreg` (`varname`, `index`, `value`) VALUES ('$Events', 0, '5*.@amount') ON DUPLICATE KEY UPDATE `value` = `value` + 5*.@amount"); '5*.@amount' is not working instead they put on the value the whole text Thank you EDIT: SOLVED It will be 1*"+.@amount+" Thanks @Balfear Edited August 26, 2022 by Jayz Quote
0 Emistry Posted August 27, 2022 Posted August 27, 2022 you can just do like this $Events = 5 * .@amount; Quote
Question
Jayz
Hello, how to add multiplier on query this is the example of script
input .@amount; query_sql("INSERT INTO `mapreg` (`varname`, `index`, `value`) VALUES ('$Events', 0, '5*.@amount') ON DUPLICATE KEY UPDATE `value` = `value` + 5*.@amount");
'5*.@amount' is not working instead they put on the value the whole text
Thank you
EDIT: SOLVED
It will be 1*"+.@amount+"
Thanks @Balfear
Edited by Jayz1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.