array problem
#1

What is the main cause of this error?
pawn Код:
C:\Program Files\PS\zombi\gamemodes\Gamer.pwn(9350) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\PS\zombi\gamemodes\Gamer.pwn(9360) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\PS\zombi\gamemodes\Gamer.pwn(9479) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\PS\zombi\gamemodes\Gamer.pwn(9499) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\PS\zombi\gamemodes\Gamer.pwn(9506) : error 047: array sizes do not match, or destination array is too small
And how to fix it? please help
Reply
#2

please help me.........
Reply
#3

post the code that causes this...
Reply
#4

This is from yagu race
pawn Код:
[line = 9350 ] Builder=strtok(templine,idx); // read off RACEBUILDER
[line = 9360 ] TempLapper=strtok(templine,idx);
[line = 9479 ] new File:f, i;
[line = 9499 ] TopRacers[j]=strtok(templine,i);
[line = 9506 ] TopLappers[j]=strtok(templine,i);
Reply
#5

help....
Reply
#6

How large is the templine array? I think it must be 256 to work with strtok.
Reply
#7

then how the code will be?
Reply
#8

new templine[256];

or

new other_variables_and_arrays, templine[256];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)