Hi there,
Does anyone have APP_SWITCHEQUIP and APP_SWITCHEQUIP_INFO for resdata.inc that will work with Ketchup 18.3 package?
The ones in the default Switch Equipment package are giving me an error when I try to open the client or use ATolls
Thanks
Printable View
Hi there,
Does anyone have APP_SWITCHEQUIP and APP_SWITCHEQUIP_INFO for resdata.inc that will work with Ketchup 18.3 package?
The ones in the default Switch Equipment package are giving me an error when I try to open the client or use ATolls
Thanks
Hi there, I found this: https://forum.ragezone.com/f483/help...5/#post9094735 , It works, no more errors
Just a complementary information, dont forget to escape the query otherwise you will get an SQL injection...
For example, if some player saves the macro as '; shutdown;-- then your database will shutdown.Code:strQuery.Format("{CALL uspSaveEquipSwitch ('%07d', '%02d', %d, '%s', %d, '%s')}", pMover->m_idPlayer, g_appInfo.dwSys, nIndex++, pEquip.strTitle, pEquip.nActivate, strObjIndex); if (!pQuery->Exec(strQuery))
{
Error("%s %d", __FUNCTION__, __LINE__); }
Otherwise reduce the strTitle length to 8 characters for example so injection would be hard to do + escape SQL query in all the cases anyway.
Sorry to bother you guys just wanna need some help about this rn hehe. Just wondering where to fix this?
https://i.ibb.co/9GKTMxQ/Untitled.png
Hello Guys,
My problem is that my DB after each restart the "Equip Switch Set's" resaves how can I tell the db that the entries are not always resaved?
Thanks in advance