//Pizza Job new Float: PizzamanCPs[5][4] = { { 2236.3997,167.3553,28.1535, 3 }, { 2363.3560,116.1356,28.4416, 3 }, { 2374.1240,42.2868,28.4416, 3 }, { 2392.2939,-54.9637,28.1536, 3 }, { 1291.9042,281.5284,19.5614, 3 }, { 1277.0186,370.8626,19.5547, 3 }, { 1352.0980,348.4374,20.5009, 3 }, { 1402.4236,286.2011,19.5547, 3 } };
C:\Users\Fishy\Desktop\New folder (2)\gamemodes\ROLEPLAY.pwn(59) : warning 213: tag mismatch C:\Users\Fishy\Desktop\New folder (2)\gamemodes\ROLEPLAY.pwn(60) : warning 213: tag mismatch C:\Users\Fishy\Desktop\New folder (2)\gamemodes\ROLEPLAY.pwn(61) : warning 213: tag mismatch C:\Users\Fishy\Desktop\New folder (2)\gamemodes\ROLEPLAY.pwn(62) : warning 213: tag mismatch C:\Users\Fishy\Desktop\New folder (2)\gamemodes\ROLEPLAY.pwn(63) : warning 213: tag mismatch C:\Users\Fishy\Desktop\New folder (2)\gamemodes\ROLEPLAY.pwn(64) : warning 213: tag mismatch C:\Users\Fishy\Desktop\New folder (2)\gamemodes\ROLEPLAY.pwn(65) : warning 213: tag mismatch C:\Users\Fishy\Desktop\New folder (2)\gamemodes\ROLEPLAY.pwn(66) : warning 213: tag mismatch C:\Users\Fishy\Desktop\New folder (2)\gamemodes\ROLEPLAY.pwn(67) : error 052: multi-dimensional arrays must be fully initialized Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
new Float: PizzamanCPs[5][4] =
new Float: PizzamanCPs[8][4] = { { 2236.3997,167.3553,28.1535, 3 }, { 2363.3560,116.1356,28.4416, 3 }, { 2374.1240,42.2868,28.4416, 3 }, { 2392.2939,-54.9637,28.1536, 3 }, { 1291.9042,281.5284,19.5614, 3 }, { 1277.0186,370.8626,19.5547, 3 }, { 1352.0980,348.4374,20.5009, 3 }, { 1402.4236,286.2011,19.5547, 3 } };
new Float:PizzamanCPs[8][4] =
{
{ 2236.3997,167.3553,28.1535, 3 },
{ 2363.3560,116.1356,28.4416, 3 },
{ 2374.1240,42.2868,28.4416, 3 },
{ 2392.2939,-54.9637,28.1536, 3 },
{ 1291.9042,281.5284,19.5614, 3 },
{ 1277.0186,370.8626,19.5547, 3 },
{ 1352.0980,348.4374,20.5009, 3 },
{ 1402.4236,286.2011,19.5547, 3 }
};
Try this :
PHP код:
|
new Float:PizzamanCPs[8][4] = { { 2236.3997,167.3553,28.1535, 3 }, //line 59 { 2363.3560,116.1356,28.4416, 3 }, { 2374.1240,42.2868,28.4416, 3 }, { 2392.2939,-54.9637,28.1536, 3 }, { 1291.9042,281.5284,19.5614, 3 }, { 1277.0186,370.8626,19.5547, 3 }, { 1352.0980,348.4374,20.5009, 3 }, { 1402.4236,286.2011,19.5547, 3 } //line 66 };
stock const
PizzamanCPs[][] =
{
{float:2236.3997, float:167.3553, float:28.1535, 3},
{float:2363.3560, float:116.1356, float:28.4416, 3},
{float:2374.1240, float:42.2868, float:28.4416, 3},
{float:2392.2939, float:-54.9637, float:28.1536, 3},
{float:1291.9042, float:281.5284, float:19.5614, 3},
{float:1277.0186, float:370.8626, float:19.5547, 3},
{float:1352.0980, float:348.4374, float:20.5009, 3},
{float:1402.4236, float:286.2011, float:19.5547, 3}
};
#include "a_samp"
stock const
PizzamanCPs[][] =
{
{float:2236.3997, float:167.3553, float:28.1535, 3},
{float:2363.3560, float:116.1356, float:28.4416, 3},
{float:2374.1240, float:42.2868, float:28.4416, 3},
{float:2392.2939, float:-54.9637, float:28.1536, 3},
{float:1291.9042, float:281.5284, float:19.5614, 3},
{float:1277.0186, float:370.8626, float:19.5547, 3},
{float:1352.0980, float:348.4374, float:20.5009, 3},
{float:1402.4236, float:286.2011, float:19.5547, 3}
};
main()
{
for(new i = 0; i < sizeof(PizzamanCPs); i++)
printf("%f, %f, %f, %d", PizzamanCPs[i][0], PizzamanCPs[i][1], PizzamanCPs[i][2], PizzamanCPs[i][3]);
}
You declare the array with the Float tag. However '3' is not a float and throws the warning. Either declare it as '3.0' or find another way to do what you want. Also you do not need to explicitly state the size of the array dimensions in this case (the number between square brackets). The compiler is perfectly capable of counting.
|