Clothing System Workout
#1

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
Reply
#2

Quote:

some kind of clothing thing

Very descriptive...

Quote:

how can I identify the number they pressed

Should explain that more.
Reply
#3

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.
Reply
#4

Why would the players have 3+ of the same ID clothes?
Reply
#5

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.
Reply
#6

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.
Reply
#7

So what kind of a menu is it ? A GUI menu, a textdraw menu or a simple menu ?
Reply
#8

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.
Reply
#9

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.
Reply
#10

"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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)