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=588298)



error 006: must be assigned to an array - Vaki - 07.09.2015

Please help..



Re : error 006: must be assigned to an array - Dutheil - 07.09.2015

What is the size of pIme ?


Re: error 006: must be assigned to an array - Vaki - 07.09.2015

Where i can see this , sry im new in scripting..


Re: Re : error 006: must be assigned to an array - Vince - 07.09.2015

Quote:
Originally Posted by Dutheil
Посмотреть сообщение
What is the size of pIme ?
Doesn't matter, for array assignments both operands must have the same number of dimensions. @OP: look up strcpy. Also please use a switch (or better yet, a constant array) instead of ridiculously long and repetitive else-if statements.


Re: error 006: must be assigned to an array - Vaki - 07.09.2015

Can you better explane or easy because im bad speaking English


Re: error 006: must be assigned to an array - Syzygy1 - 07.09.2015

Код:
format(PlayerInfo[target][pIme], [insert size of pIme here], "%s", GetName(target));