03.09.2012, 10:05
Hello there. Run the following code:
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?
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;
}