error 029: invalid expression, assumed zero
#8

The code is indeed confusing and most here (including me) are not aware of what you're trying to do exactly. So let's break it into more pieces. When this code is supposed to be executed?
pawn Код:
{
    new theunimpoundid = strval(tmp2);
    if (!dini_Isset(globalstats, "unimpoundslot"))
        dini_IntSet(globalstats, "unimpoundslot", 0);
    new ri = dini_Int(globalstats, "unimpoundslot");
    if (ri >= sizeof(unimpoundpos))
    {
        ri = 0;
        dini_IntSet(globalstats, "unimpoundslot", 0);
    }
    else dini_IntSet(globalstats, "unimpoundslot", ri + 1);
    VehicleInfo[theunimpoundid][vX] = unimpoundpos[ri][spawnx];
    VehicleInfo[theunimpoundid][vY] = unimpoundpos[ri][spawny];
    VehicleInfo[theunimpoundid][vZ] = unimpoundpos[ri][spawnz];
    VehicleInfo[theunimpoundid][vA] = unimpoundpos[ri][sangle];
    VehicleInfo[theunimpoundid][vVirtualWorld] = 0;
    VehicleInfo[theunimpoundid][vImpounded] = 0;
    VehicleInfo[theunimpoundid][vImpoundFee] = 0;
    myStrcpy(VehicleInfo[theunimpoundid][vImpoundReason], "None");
    ReloadVehicle(theunimpoundid);
    printf("%d", theunimpoundid);
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)