Need help with format()
#5

@GiamPy
Integer values needn't be encapsulated in single quotes, also it is fairly good to stay consistent about your way of writing SQL queries. In your code, aside all the trouble about it not actually working, you switch from one writing schema to another, first having field names without `-quotes, but later on using them.

The issue with the first posted code seems to be a bit awkward to me as well, but it all comes down to GetPlayerHealth native not returning the health float, instead passing it by reference. Also the function requires 2 parameters to start with. scriptit, pay attention to warnings as well in the future.
Reply


Messages In This Thread
Need help with format() - by scriptit - 02.12.2012, 14:07
Re: Need help with format() - by Vince - 02.12.2012, 14:20
Re: Need help with format() - by scriptit - 02.12.2012, 15:13
Re: Need help with format() - by GiamPy. - 02.12.2012, 15:43
Re: Need help with format() - by AndreT - 02.12.2012, 15:49
Re: Need help with format() - by GiamPy. - 02.12.2012, 15:51

Forum Jump:


Users browsing this thread: 2 Guest(s)