Help me please +REP for helpers
#1

Error

Код:
C:\Users\Mehroz ahmed\Desktop\samp\gamemodes\Fire~SATDM.pwn(27776) : error 047: array sizes do not match, or destination array is too small
C:\Users\Mehroz ahmed\Desktop\samp\gamemodes\Fire~SATDM.pwn(27786) : error 047: array sizes do not match, or destination array is too small
C:\Users\Mehroz ahmed\Desktop\samp\gamemodes\Fire~SATDM.pwn(27905) : error 047: array sizes do not match, or destination array is too small
C:\Users\Mehroz ahmed\Desktop\samp\gamemodes\Fire~SATDM.pwn(27925) : error 047: array sizes do not match, or destination array is too small
C:\Users\Mehroz ahmed\Desktop\samp\gamemodes\Fire~SATDM.pwn(27932) : error 047: array sizes do not match, or destination array is too small
C:\Users\Mehroz ahmed\Desktop\samp\gamemodes\Fire~SATDM.pwn(27991) : error 047: array sizes do not match, or destination array is too small
C:\Users\Mehroz ahmed\Desktop\samp\gamemodes\Fire~SATDM.pwn(28818) : error 047: array sizes do not match, or destination array is too small
C:\Users\Mehroz ahmed\Desktop\samp\gamemodes\Fire~SATDM.pwn(28818) : error 047: array sizes do not match, or destination array is too small
C:\Users\Mehroz ahmed\Desktop\samp\gamemodes\Fire~SATDM.pwn(28836) : error 047: array sizes do not match, or destination array is too small
C:\Users\Mehroz ahmed\Desktop\samp\gamemodes\Fire~SATDM.pwn(28836) : error 047: array sizes do not match, or destination array is too small
C:\Users\Mehroz ahmed\Desktop\samp\gamemodes\Fire~SATDM.pwn(28852) : error 047: array sizes do not match, or destination array is too small
C:\Users\Mehroz ahmed\Desktop\samp\gamemodes\Fire~SATDM.pwn(28852) : error 047: array sizes do not match, or destination array is too small
C:\Users\Mehroz ahmed\Desktop\samp\gamemodes\Fire~SATDM.pwn(28868) : error 047: array sizes do not match, or destination array is too small
C:\Users\Mehroz ahmed\Desktop\samp\gamemodes\Fire~SATDM.pwn(28868) : error 047: array sizes do not match, or destination array is too small
C:\Users\Mehroz ahmed\Desktop\samp\gamemodes\Fire~SATDM.pwn(28883) : error 047: array sizes do not match, or destination array is too small
C:\Users\Mehroz ahmed\Desktop\samp\gamemodes\Fire~SATDM.pwn(28883) : error 047: array sizes do not match, or destination array is too small
C:\Users\Mehroz ahmed\Desktop\samp\gamemodes\Fire~SATDM.pwn(28898) : error 047: array sizes do not match, or destination array is too small
C:\Users\Mehroz ahmed\Desktop\samp\gamemodes\Fire~SATDM.pwn(28898) : error 047: array sizes do not match, or destination array is too small
Lines

Код:
27776: TBuilder=strtok(templine,idx); // read off RACEBUILDER
27786: TempLapper=strtok(templine,idx);
27905: CBuilder=strtok(templine,i); // read off RACEBUILDER
27925: 	TopRacers[j]=strtok(templine,i);
27932: 			TopLappers[j]=strtok(templine,i);
27991: 		rracenames[rraces]=strtok(templine,idx);
28818: new tmp[128], tmp2[128], tmp3[128], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index), tmp3 = strtok(params,Index);
28836: new tmp[128], tmp2[128], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
28852: strtok(params,Index), tmp2 = strtok(params,Index);
28868: 	    new tmp[128], tmp2[128], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
28883: 	    new tmp[128], tmp2[128], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
28898: 	    new tmp[128], tmp2[128], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
Please help me
Reply
#2

have you defined strtok


pawn Код:
strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }

    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}
else replace all temp[128]; to temp[196]; and temp2[128]; to temp2[196]; and temp3[128]; to temp3[196]; and templine[128]; to templine[196] or something more
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)