SA-MP Forums Archive
error 006: must be assigned to an array - 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 006: must be assigned to an array (/showthread.php?tid=648849)



error 006: must be assigned to an array - Geza95 - 29.01.2018

How can i fix this error?
Код:
			 format(str1, sizeof str1, "/rRaceSystem/%s.RRACE", RaceName);
		    if(!strcmp(dini_Get(str1, "BestRacerTime_0"), "0", true)) format(str1, sizeof str1, "Race record time: "COL_RED"n/a"); // no record time
	//1831 line	else  TempTotalTime = dini_Get(str, "BestRacerTime_0");
			ConvertTime(var1, TempTotalTime, TempTime[0], TempTime[1], TempTime[2]);
			format(str1, sizeof str, ""COL_WHITE"["COL_GREY"Race Record time: "COL_GREY"%d.%d.%d", TempTotalTime,rTime2[0], rTime2[1], rTime2[2]);
		    SendClientMessageToAll(grey, str1);
(1831): error 006: must be assigned to an array


Re: error 006: must be assigned to an array - Flamehaze7 - 29.01.2018

Can you show more code?


Re: error 006: must be assigned to an array - Mugala - 29.01.2018

show us where u defined TempTotalTime
if u defined like this new TempTotalTime;
change it to TempTotalTime[128];