Using char on variables
#1

All the examples I've seen on this forum about using a 8 bit variable, and from what I've read here, you cannot use negative values and you cannot go beyond the value 255 on using char arrays. Also that the char arrays use less bytes compared to normal variable (which is 4 bytes perhaps?) When I try to compile the script using a example variable: new maxy[MAX_PLAYERS char]; using -d3 compiler flag, it somehow gives the same data size and everything else as the same variable without char does. I think I'm doing something wrong. I haven't set the value for maxy afterwards because that's not essential, since bytes should be made when I create a variable.
Reply


Messages In This Thread
Using char on variables - by ||123|| - 24.11.2013, 11:37
Re: Using char on variables - by Patrick - 24.11.2013, 11:42
Re: Using char on variables - by Konstantinos - 24.11.2013, 11:59
Re: Using char on variables - by Djole1337 - 24.11.2013, 13:37
Re: Using char on variables - by Ada32 - 24.11.2013, 13:46

Forum Jump:


Users browsing this thread: 2 Guest(s)