error 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 must be assigned to an array (
/showthread.php?tid=430585)
error must be assigned to an array -
dusk - 14.04.2013
pawn Код:
GangWars.pwn(241) : error 006: must be assigned to an array
pawn Код:
new tmp;
tmp = IntToHex(ZoneInfo[zoneid][ZoneColor]);
IntToHex function
pawn Код:
stock IntToHex(int)
{
new str[15];
format(str, sizeof(str), "%x", int);
return str;
}
EDIT: i am sorry, I just found that i can use HEX's int value for a color