Auto enum creator ?
#1

Hello !

I would like to create a big array like this
pawn Код:
enum enumObject { english[32], french[32] }
new objectName[21000][enumObject] = {
/* 0 */ {"CJ SKIN", "SKIN DE CJ"},
/* 1 */ {"OTHER SKIN", "AUTRE SKIN"},
/* 2 */ {"OTHER SKIN", "AUTRE SKIN"},
/* 3 */ {"OTHER SKIN", "AUTRE SKIN"},
....
...
}
Am I forced to create one by one, or there is a programme to create multiple ligne with auto increment ?
" /* %d <- ligne number */ {" ", " "}, "


Thanks for your help
Reply
#2

What do you want to make with it?
Reply
#3

Not sure what you're asking.
Reply
#4

I think he is asking if he can make the script automaticly "work" on the enum. For example make the enum for him with all objects or something. Not sure.

Basicaly like the enum putting stuff in on it's own. Placing all object into enum automaticly.
Reply
#5

I think I now understand what you're asking. You want to add names for every skin, in two different languages; that is apparent.

I assume what you're after is a way to create all the lines with line numbers automatically so you can just go down and fill them in.

Just make a quick script with fwrite() and a loop of 300 (as there's 300 skins, 0-299).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)