Array must be indexed.
#5

Quote:
Originally Posted by coool
Посмотреть сообщение
A variable holds an integer whatever digits it is that means you have to assign just new wantedmodel . Yes, you can make an array according to your needs.
And the " format " wantedmodel shouldn't be an string it is an integer so wantedmodel = wantedcars[Randompick][0];
Can u write me how should it look ?
I'm confused.
pawn Код:
format(wantedmodel,sizeof(wantedmodel),"%d",wantedcars[randompick][0]);
%d or %i stands for integer, whole number,right ?
so i changed : on the top ,
pawn Код:
new wantedmodel[3];
to
pawn Код:
new wantedmodel;
Now there is two errors on "format" line :
error 035: argument type mismatch (argument 1)
error 035: argument type mismatch (argument 1)
yeah,two same errors,same line.
Reply


Messages In This Thread
Array must be indexed. - by Djumza - 20.03.2017, 22:02
Re: Array must be indexed. - by ISmokezU - 20.03.2017, 22:06
Re: Array must be indexed. - by Djumza - 21.03.2017, 11:20
Re: Array must be indexed. - by coool - 21.03.2017, 11:27
Re: Array must be indexed. - by Djumza - 21.03.2017, 11:47
Re: Array must be indexed. - by coool - 21.03.2017, 11:51
Re: Array must be indexed. - by Djumza - 21.03.2017, 11:54
Re: Array must be indexed. - by coool - 21.03.2017, 12:00
Re: Array must be indexed. - by Djumza - 21.03.2017, 12:12
Re: Array must be indexed. - by Feynman - 21.03.2017, 14:36
Re: Array must be indexed. - by Djumza - 21.03.2017, 15:38
Re: Array must be indexed. - by Djumza - 22.03.2017, 17:02

Forum Jump:


Users browsing this thread: 2 Guest(s)