16.05.2018, 12:39
Код:
printf("%s %s %s", dest[0], dest[1], dest[2]);
printf("%s %s %s", dest[0], dest[1], dest[2]);
$source = "123,456,789";
$dest = explode(",", $source);
printf("%s %s %s", $dest[0][1], $dest[0][2], $dest[1][2]);
2 3 6 |
[22:17:28] [debug] Run time error 10: "Native function failed" [22:17:28] [debug] strins [22:17:28] [debug] AMX backtrace: [22:17:28] [debug] #0 00000930 in str_ireplace (sSearch[]=@0031fbb0 ",Test", sReplace[]=@002864f0 "", sSubject[]=@00101d0c "Test,Test,Test,Test,Test,", &iCount=@00316ad8 2) at J:\Desktop\PAWN\SA-MP\X\pawno\include\strlib.inc:124 |
#define _strlib_med_string 256 new sTemp[128], sReturn[_strlib_med_string]; // ... strins(sReturn, sReplace, iIndex, iLengthReplace); // Line #124