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=508693)
error 006: must be assigned to an array -
aimane65 - 23.04.2014
I'm getting this error:
Код:
C:\Users\Aimane_Elbarjaj\Desktop\VIPv3.0\Source\VIP.pwn(1219) : error 006: must be assigned to an array
C:\Users\Aimane_Elbarjaj\Desktop\VIPv3.0\Source\VIP.pwn(1220) : error 006: must be assigned to an array
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Does anyone know how to fix it?
P.S. Its on this two lines:
Код:
P_DATA[ playerid ][ Vip ] = cache_get_field_content_int( 0, "level" );
P_DATA[ playerid ][ p_FavSkin ] = cache_get_field_content_int( 0, "favskin" );
Re: error 006: must be assigned to an array -
aimane65 - 23.04.2014
Anyone?D:
Re: error 006: must be assigned to an array -
Konstantinos - 23.04.2014
Do you use array for
Vip and
p_FavSkin indexes in the enum?
Re: error 006: must be assigned to an array -
aimane65 - 23.04.2014
Quote:
Originally Posted by Konstantinos
Do you use array for Vip and p_FavSkin indexes in the enum?
|
Yes.
Re: error 006: must be assigned to an array -
Konstantinos - 23.04.2014
If you want to use only 1, then you shouldn't.
Re: error 006: must be assigned to an array -
aimane65 - 23.04.2014
So what do I have to type.
Re: error 006: must be assigned to an array -
Konstantinos - 23.04.2014
Remove the array on those two in the enum and it will be fine.
Re: error 006: must be assigned to an array -
aimane65 - 23.04.2014
Nevermind fixed