Help me please +REP for helpers - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me please +REP for helpers (
/showthread.php?tid=485863)
Help me please +REP for helpers -
maaz - 06.01.2014
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
Re: Help me please +REP for helpers -
Eth - 06.01.2014
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