SA-MP Forums Archive
error 033: array must be indexed (variable "-unk - 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: error 033: array must be indexed (variable "-unk (/showthread.php?tid=578838)



error 033: array must be indexed (variable "-unk - MW - 22.06.2015

deleted - found the answer by myself


Re: error 033: array must be indexed (variable "-unk - [XST]O_x - 22.06.2015

x_job needs to be a string (an array).
new x_job[64] = strtok(cmdtext, idx);

But why the hell would you use strtok when you can use sscanf?