[Tutorial] MySQL Calculations and more in a single query.
#4

Nice tutorial, but there's a thing I don't understand. Your function returns r, which I don't see being a declared variable. I have not been in any decent contact with these functions and thereby cannot tell if it is a mistaken on your side or a predefined variable on the server side :P

Also, take note that the MySQL plugin actually creates only one thread which processes all the pooled queries. A new query does not initiate a new thread, the queries are just ran in another thread to avoid cluttering the main script thread.

Anyways, in the case you present here, adding a value to a value which you get from the DB using a custom function, wouldn't you lose all the hassle by storing the money value in your GM (I suppose it gets accessed quite often or no?).

// EDIT: lol Vince
Reply


Messages In This Thread
MySQL Calculations and more in a single query. - by Roel - 24.10.2012, 17:58
Re: MySQL Calculations and more in a single query. - by Jarnu - 24.10.2012, 18:00
Re: MySQL Calculations and more in a single query. - by burnuk - 24.10.2012, 21:45
Re: MySQL Calculations and more in a single query. - by AndreT - 25.10.2012, 16:34
Re: MySQL Calculations and more in a single query. - by Vince - 25.10.2012, 17:03
Re: MySQL Calculations and more in a single query. - by Roel - 25.10.2012, 17:25
Re: MySQL Calculations and more in a single query. - by BMB1 - 25.10.2012, 18:16
Re: MySQL Calculations and more in a single query. - by Roel - 25.10.2012, 19:21
Re: MySQL Calculations and more in a single query. - by playbox12 - 27.10.2012, 09:51

Forum Jump:


Users browsing this thread: 1 Guest(s)