Array Problem
#1

I have the following code -

pawn Код:
new PoliceCars[][] =
{
    {598, 613.835, -597.2714, 16.9790, 270.8588, 0, 1, 1},
    {598, 613.8523, -601.5485, 16.9765, 270.8588, 0, 1, 1}
};

stock CreatePoliceVehicles()
{
    for(new i; i < sizeof(PoliceCars); i++)
    {
        CreateVehicle(PoliceCars[i][0], PoliceCars[i][1], PoliceCars[i][2], PoliceCars[i][3], PoliceCars[i][4], PoliceCars[i][5], PoliceCars[i][6], -1, 1);
    }
    return 1;
}
Now obviously this isn't working or I wouldn't be here. Can anyone tell me what I'm doing wrong here?

I'm getting Tag Mismatch errors on the actual value lines.
Reply


Messages In This Thread
Array Problem - by 2KY - 06.07.2015, 22:32
AW: Array Problem - by Kaliber - 06.07.2015, 22:52
Re: AW: Array Problem - by 2KY - 06.07.2015, 23:11

Forum Jump:


Users browsing this thread: 2 Guest(s)