error 006: must be assigned to an array
#1

pawn Код:
new str5[256];

           
 
        (1369):    TempTotalTime = dini_Get(rFile,"BestRacerTime_0",1);
            ConvertTime(var1, TempTotalTime, TempTime[0], TempTime[1], TempTime[2]);
         

         

             format(str, sizeof str5, "with %d:%d.%d seconds", rTime[0], rTime[1], rTime[2]);
            SendClientMessageToAll(-1, str5);
error:
Код:
		1369: error 006: must be assigned to an array
Reply
#2

pawnlang makes it clear and says
Quote:
Originally Posted by CompuPhase
Regarding error 006 - must be assigned to an array
String literals or arrays must be assigned to an array.
This error message may also indicate a missing index (or indices) at the
array on the right side of the “=” sign.
doesen't dini_get return the data as string?
i think it does that's your mistake.
either make TempoTotalTime a string or use dini_int & use unix timestamp


example assignments:
pawn Код:
integer = array;//won't work
integer = integer;//works
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)