ID's assignment
#1

Hello there. Run the following code:
pawn Code:
public OnGameModeInit() {
    new a, Text:b, Text3D:c, Menu:d;
    a = CreateObject(123, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    printf("Object: %d\n", a);
    a = CreateVehicle(400, 0.0, 0.0, 0.0, 0.0, -1, -1, 0);
    printf("Car: %d\n", a);
    b = TextDrawCreate(1.0, 1.0, "Pancakes");
    printf("Text 2D: %d\n", _:b);
    c = Create3DTextLabel("Wat", 0xFFFFFFFF, 1.0, 1.0, 1.0, 1.0, 0, 1);
    printf("Text 3D: %d\n", _:c);
    d = CreateMenu("Title", 1, 1.0, 1.0, 1.0, 1.0);
    printf("Menu: %d\n", _:d);
    return 1;
}
Now look at the results. What caused devs to switch from 0 to 1 as base ID? The INVALID_* constants are identical (0xFFFF, and 0xFF for menus). Was it forced to allow one more item? If yes - can't we do it with older functions too? Or it would cause to big BC break?
Reply


Messages In This Thread
ID's assignment - by Misiur - 03.09.2012, 10:05
Re: ID's assignment - by leonardo1434 - 03.09.2012, 11:02
Re: ID's assignment - by Misiur - 03.09.2012, 11:05
Re: ID's assignment - by leonardo1434 - 03.09.2012, 11:15
Re: ID's assignment - by Slice - 03.09.2012, 11:48
Re: ID's assignment - by Misiur - 03.09.2012, 12:22
Re: ID's assignment - by Slice - 03.09.2012, 12:55
Re: ID's assignment - by [ABK]Antonio - 03.09.2012, 13:00

Forum Jump:


Users browsing this thread: 1 Guest(s)