somone understands enum? just a question
#1

so heres basicly my code
pawn Код:
enum TICKET_INFO{
    Sender[MAX_PLAYER_NAME],
    Amout
}
new Ticket[TICKET_INFO][MAX_PLAYERS];
now I want to write something in
pawn Код:
Ticket[Sender][playerid]
so I use the command "format" I usualy use "sizeof(" to get the size of the string, but now its gives an erorr message, I tried alot, and searched for examples, but found nothing, I know I can use just "MAX_PLAYER_NAME" as the size, but there are other problems that need the same solution, so is there anyway to get the size of "Sender"? I will happy to get an answer...

PS
I did serched, I read PAWN PDF and WIKI, but they didn't showed me how to solve this.
Reply


Messages In This Thread
somone understands enum? just a question - by Fima - 04.12.2009, 08:32
Re: somone understands enum? just a question - by Abernethy - 04.12.2009, 08:34
Re: somone understands enum? just a question - by Finn - 04.12.2009, 10:10
Re: somone understands enum? just a question - by Abernethy - 04.12.2009, 10:13
Re: somone understands enum? just a question - by Fima - 06.12.2009, 11:40

Forum Jump:


Users browsing this thread: 1 Guest(s)