Returning strings in a public
#10

Quote:
Originally Posted by Djole1337
Посмотреть сообщение
How come that it's "horribly" inefficient?
Technically, the longer the string, the more function calls. It's a great method, but personally I think that calling a remote function several times isn't ideal.

Edit: Actually, your code does infact give me an idea for something!

pawn Код:
stock GetRemoteString(function[], dest[], size)
{
    for (new i = 0; (dest[i] = CallRemoteFunction(function, "d", i)) && i < size; i ++) {}
    return 1;
}
^ There's more to it, though. That's just a function. ^
Reply


Messages In This Thread
Returning strings in a public - by LeLeTe - 20.12.2013, 23:22
Re: Returning strings in a public - by PowerPC603 - 20.12.2013, 23:32
Re: Returning strings in a public - by LeLeTe - 20.12.2013, 23:40
Re: Returning strings in a public - by Jefff - 21.12.2013, 00:08
Re: Returning strings in a public - by Djole1337 - 21.12.2013, 00:17
Re: Returning strings in a public - by PowerPC603 - 21.12.2013, 18:40
Re: Returning strings in a public - by Konstantinos - 21.12.2013, 18:42
Re: Returning strings in a public - by Emmet_ - 21.12.2013, 19:10
Re: Returning strings in a public - by Djole1337 - 21.12.2013, 20:58
Re: Returning strings in a public - by Emmet_ - 21.12.2013, 21:18

Forum Jump:


Users browsing this thread: 3 Guest(s)