30.08.2015, 16:08
Hi there,
I need a help about checks with params in format function.
So if is param "_od" == -1 I want to set instead _od param _staff and if is "_od" > -1 I want to set function _HRP_GetName(_od)... Can someone help? Thanks.
I need a help about checks with params in format function.
Код:
"INSERT INTO "_HRP_HST_DT_WARNS" (ID, Razlog, IP, Dao, DaoIP, Dan, Mjesec, Godina, Sat, Minuta, Sekunda) VALUES ('%d', '%e', '%e', '%e', '%e', '%d', '%d', '%d', '%d', '%d', '%d')" , Korisnik[_playerid][kID], _razlog, _HRP_GetIp(_playerid), _od ? -1);