array sizes do not match, or destination array is too small
#4

If I may say this, please use the search function
=> array sizes do not match, or destination array is too small

It's completely the same problem. The answers suggest to use strrest instead of strtok:
Quote:
Originally Posted by smeti
Посмотреть сообщение
strtok original code new result[20]; <-- 20 cell
new tmp[128], tmp2[128], <-- 128 cell

array size do not match tmp(128 cell) not equal result (20 cell)

Use strrest in gl_common.inc.

pawn Код:
#include "../include/gl_common.inc"

//...

new tmp[128], tmp2[128], Index; tmp = strrest(params,Index), tmp2 = strrest(params,Index);
Quote:
Originally Posted by Vince
Посмотреть сообщение
Pretty sure strtok returns only 256 size strings. Yet another reason why you should abolish this method ASAP.
I hope this helps.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)