« first day (2416 days earlier)      last day (2900 days later) » 
05:00 - 22:0022:00 - 23:00

22:00
maybe
Alright cool, so I am making a puzzle for a game where you have to put 4 objects in 4 slots in a wall in a specific order for a door to open. I already have the code that checks for the closest slot and when you press a certain button the object you're holding will be placed in the nearest slot. This is the code: pastebin.com/XvTCGm9C
I just need to make a check that checks if a slot is already occupied
2 games on greenlight... ain't no one else here with 2 games on greelight
haha
sorry man i'm happy, lmao
22:16
2perky
@S.Neut you should probably create a Slot class
and have a list of Slots rather than a list of GameObjects
the slots are empty gameobjects, I only use them to link the transform of the objects to the transform of the "slot"
but you want to see if a slot is occupied, yes?
a GameObject doesn't have that behaviour
so create a Slot class with a variable that you can set when you add an item to it
hmm that could work with some bools I guess
22:23
nah, not bools - you'd want to set a GameObject, or more ideally some other class so you know exactly what you're holding and moving around
rather than relying on gameObject.tags
22:35
does anybody see syntax error here ?
mysql.PstmtQuery("SELECT * FROM character WHERE userid=? LIMIT 1");
mysql syntax
for some reason its trows me exception
are you binding the ? somewhere? does that need to be a second parameter or something?
mysql.PstmtQuery("SELECT * FROM character WHERE userid=? LIMIT 1");
mysql.SetInt(1, id);
2017/3/17 22:37 Mysql Error code :1064
2017/3/17 22:37 Mysql State:42000
2017/3/17 22:37 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'character WHERE userid=? LIMIT 1' at line 1
i got this
05:00 - 22:0022:00 - 23:00

« first day (2416 days earlier)      last day (2900 days later) »