somone understands enum? just a question
#5

pawn Код:
new cool=sizeof(Ticket[playerid][Sender]);
and the erorrs:
Код:
E:\Prison Break\SA-MP 0.3\Prison.PWN(582) : error 001: expected token: "]", but found "-identifier-"
E:\Prison Break\SA-MP 0.3\Prison.PWN(582) : warning 215: expression has no effect
E:\Prison Break\SA-MP 0.3\Prison.PWN(582) : error 001: expected token: ";", but found "]"
E:\Prison Break\SA-MP 0.3\Prison.PWN(582) : error 029: invalid expression, assumed zero
E:\Prison Break\SA-MP 0.3\Prison.PWN(582) : fatal error 107: too many error messages on one line
same for:
pawn Код:
new cool=sizeof(Ticket[][Sender]);
its like I have to get the size somehow using "TICKET_INFO" and not "Ticket"
like now I use another variable
pawn Код:
new TicketTemp[TICKET_INFO];
and thats how it works[for now]:
pawn Код:
format(Ticket[playerid][Sender],sizeof(TicketTemp[Sender]),"NULL");
and from some strange reason
pawn Код:
format(Ticket[playerid][Sender],sizeof(Ticket[][]),"NULL");
compiles without erorr, but as soo as I add something bettwen any [][] its gives an erorr like its should stay empty... I don't understand what size does he gets from this, but I don't think its the size I need

and when I try
pawn Код:
format(Ticket[playerid][Sender],sizeof(Sender),"NULL");
the erorr is:
Код:
E:\Prison Break\SA-MP 0.3\Prison.PWN(584) : error 039: constant symbol has no size
its very strange
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)