craiga
08-23-2009, 01:39 PM
Hello
I have a facebook game, one part of which users fight each other with weapons. Currently the code I have will find and list all weapons that a user owns, however i want to limit it based on the best weapons (each weapon has an ID) and also how many team members the user has. So if they have 15 crew, then they should use 15 of the best weapons that they have. (ie. if user has 6a, 5b, 10c then the weapons used should be 6a, 5b, 4c)
Can anyone point me in the right direction on what I need to add to the query?
Thanks
I have a facebook game, one part of which users fight each other with weapons. Currently the code I have will find and list all weapons that a user owns, however i want to limit it based on the best weapons (each weapon has an ID) and also how many team members the user has. So if they have 15 crew, then they should use 15 of the best weapons that they have. (ie. if user has 6a, 5b, 10c then the weapons used should be 6a, 5b, 4c)
Can anyone point me in the right direction on what I need to add to the query?
Thanks