Clothing System Workout -
Kyle - 26.05.2012
I'm trying to create some kind of clothing thing for players to use, sometimes people have two or three of the same clothing object how can I identify the number they pressed if they got two / three of the same clothing objects as if I use the modelid it will return the lowest and they may of picked the higher number one?
Thanks
Re: Clothing System Workout -
Unte99 - 26.05.2012
Quote:
some kind of clothing thing
|
Very descriptive...
Quote:
how can I identify the number they pressed
|
Should explain that more.
Re: Clothing System Workout -
Kyle - 26.05.2012
Quote:
Originally Posted by Unte99
Very descriptive...
Should explain that more.
|
I'm making a clothing system where it stores there clothes and they can pick what one to wear.
They get a menu of their clothes in there inventory and can press a number and that will wear the object.
But how do I know what object they picked if they had 3+ clothing of the same ids.
Re: Clothing System Workout -
TheDominator - 26.05.2012
Why would the players have 3+ of the same ID clothes?
Re: Clothing System Workout -
Unte99 - 26.05.2012
Make variables for each clothing.
pawn Код:
clothing1[MAX_PLAYERS],clothing2[MAX_PLAYERS],clothing3[MAX_PLAYERS]....;
When you store clothes for a player, set the clothing variables.
Re: Clothing System Workout -
Kyle - 26.05.2012
Quote:
Originally Posted by TheDominator
Why would the players have 3+ of the same ID clothes?
|
Why not? They can go to a store and buy lots of the same product.
Quote:
Originally Posted by Unte99
Make variables for each clothing.
pawn Код:
clothing1[MAX_PLAYERS],clothing2[MAX_PLAYERS],clothing3[MAX_PLAYERS]....;
When you store clothes for a player, set the clothing variables.
|
You failed to listen to my question, I've already said I know how to do the variables but unsure how to work out the ID they pressed / the array id if there are multipule models.
Re: Clothing System Workout -
Unte99 - 26.05.2012
So what kind of a menu is it ? A GUI menu, a textdraw menu or a simple menu ?
Re: Clothing System Workout -
Kyle - 26.05.2012
Quote:
Originally Posted by Unte99
So what kind of a menu is it ? A GUI menu, a textdraw menu or a simple menu ?
|
A textdraw, so when they press a number e.g 6 it called onplayertext but then I need to workout what object is needed when number 6 is called.
Re: Clothing System Workout -
MP2 - 26.05.2012
Crazybobs much? :P
Not sure exactly what you want. Please explain clearly. Can't you just make item 6 edit attached object 6..?
Quote:
Originally Posted by Unte99
Make variables for each clothing.
pawn Код:
clothing1[MAX_PLAYERS],clothing2[MAX_PLAYERS],clothing3[MAX_PLAYERS]....;
When you store clothes for a player, set the clothing variables.
|
I suggest you read up on arrays.
Re: Clothing System Workout -
Kyle - 26.05.2012
"Not sure exactly what you want. Please explain clearly. Can't you just make item 6 edit attached object 6..?"
Not possible as I allow 15 clothing in the inventory and allow 5 items on show at 1 time.
Also as for crazybobs, the clothing objects are there added to be used. There is practically no way else to use them.