Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
Pages: 1
Is there a way i can write a map array to use for everybody edits? Due to the following way I'm trying i get the error:
Message only supports objects of types: string, integer, boolean, byte[], float, double, uint, long & ulong. Type 'System.Int32[,]' is not supported.
My code:
public class Map
{
public void Draw(int[,] bid)
{
for (int x = 0; x < 6; x++)
for (int y = 0; y < 6; y++)
con.Send("b", 0, x, y, bid);
}
}
Case "b" code:
Map map = new Map();
map.Draw(new int[,]
{
{ 0, 0, 0, 0, 0, 0 }
});
Any ideas? Suggestions, Anyone
Offline
You're trying to send the whole block array, when you should send the element of the array with the coordinates from the loop.
con.Send("b", 0, x, y, bid[x, y]);
Offline
You're trying to send the whole block array, when you should send the element of the array with the coordinates from the loop.
con.Send("b", 0, x, y, bid[x, y]);
appreciate it - that fixed it.
Offline
Pages: 1
[ Started around 1733250948.2978 - Generated in 0.047 seconds, 10 queries executed - Memory usage: 1.39 MiB (Peak: 1.5 MiB) ]