Is it possible? String by count ..
#1

That what I did -

PHP код:
new Count;
for(new 
0MAX_PLAYERSi++)
if(
IsPlayerConnected(i) && != playerid && !battle[i][InBattle] && GetPlayerMoneyEX(i) >= battle[playerid][MoneyBattle])
Count++;
new 
stringBig[Count*80]; 
Erros -

PHP код:
error 008must be a constant expressionassumed zero
error 009
invalid array size (negativezero or out of bounds)
error 036: empty statement
fatal error 107
too many error messages on one line 
On line -
PHP код:
new stringBig[Count*80]; 
Thanks
Reply
#2

No thats not possible.
Reply
#3

Quote:
Originally Posted by Niko_boy
Посмотреть сообщение
No thats not possible.
So.. how can I know how sizeof to set ? Can you know other way to do it ?
Reply
#4

It is not possible. Sizes of arrays must be known at compile time. Even if it would work, you could end up with a 40,000 cell string which would probably crash the server.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)