[Tutorial] Making a simple Organization Script (Noob-Friendly).
#7

No offence, but you should be careful with the arrays. Because 256 is pretty memory wasting

pawn Код:
new file[_256_];
format(file, sizeof(file), "%s_ORG.ini", name);
A name is max. 24, _ORG.ini = 8, (24 + 8 = 32), 32 is needed. So I recommend it to set it to 40
And the other thing
pawn Код:
new cmd[_256_];
while the max command is < 20 in the script, I bet you don't need a command like:
pawn Код:
/3u2846273487385743859347r8hdsfyr8yfhew879hy3ryw8eyfew8uvb9uqr9423u09rue0[vcnutq34nuq434u38jerf8q43jtqug8h5w8rjf8qhg879hw54etrf8hw5t8ghjw95hgw8y5h9wer9fypw834fh3w94ht9whgfhq347tyew9rhp3u2846273487385743859347r8hdsfyr8yfhew879hy3ryw8eyfew8uvb9uqr9423u09rue0
That are 256 letters ^^

But the rest is good, well done
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)