15.01.2015, 23:43
3D text is not creating and everything is not working. Why?
pawn Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
new Text3D:label;
new amount;
amount = 25;
if(hittype == BULLET_HIT_TYPE_OBJECT)
{
if(hitid == robbingobject)
{
Delete3DTextLabel(label);
amount = amount - 1;
new Float:x, Float:y, Float:z;
GetObjectPos(robbingobject, x, y, z);
new string[4];
format(string, sizeof(string), "%i", amount);
label = Create3DTextLabel(string, 0x00FFFFFF, x, y, z, 10.0, 0, 0);
}
}
return 1;
}