Ever since 3c server
#7

I'm saying this;

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    new string[128];
    format(string, sizeof(string), "Whateveryouformatitto");
}
Is NOT good. It creates a 128 long string * 500 = (64000), which eats up memory.
If you have something LIKE this you should alter It for;

pawn Код:
new string[128];
for(new i = 0; i < MAX_PLAYERS; i++)
{
    format(string, sizeof(string), "Whateveryouformatitto");
}
Which only creates the 128 long string that you need instead.
Reply


Messages In This Thread
Ever since 3c server - by ihatetn931 - 23.01.2011, 15:34
Re: Ever since 3c server - by Mike Garber - 23.01.2011, 15:53
Re: Ever since 3c server - by ihatetn931 - 23.01.2011, 17:16
Re: Ever since 3c server - by Hal - 23.01.2011, 17:21
Re: Ever since 3c server - by snoob - 23.01.2011, 17:26
Re: Ever since 3c server - by ihatetn931 - 23.01.2011, 17:42
Re: Ever since 3c server - by Mike Garber - 23.01.2011, 18:29
Re: Ever since 3c server - by casjupaya - 23.01.2011, 19:10
Re: Ever since 3c server - by ihatetn931 - 23.01.2011, 19:23

Forum Jump:


Users browsing this thread: 1 Guest(s)