Having issues loading ammo. MYSQL.
#2

Quote:
Originally Posted by Dokins
Посмотреть сообщение
I save them like you would save vehicles etc.
Which in all honestly is a terrible way to do it. If you need to add a number to a field name then you're doing it wrong. In no occasion should you ever need to format a field name. I might write a full fledged tutorial later today on how to do it properly, which will be an extension on my previous tutorial on the subject.

For instance, my weapons table (yes, a separate table) currently looks like this:

Fairly simple to understand how it works, I think. Get a weapon = insert a row, lose a weapon = delete a row.
Reply


Messages In This Thread
Having issues loading ammo. MYSQL. - by Dokins - 06.04.2014, 09:08
Re: Having issues loading ammo. MYSQL. - by Vince - 06.04.2014, 10:23
Re: Having issues loading ammo. MYSQL. - by Dokins - 06.04.2014, 14:26

Forum Jump:


Users browsing this thread: 2 Guest(s)