09.01.2012, 09:34
Hello.
I have a textdraw that bugging on screen, you can see on this picture what i mean.
Why and what can cause it?

As you see it is the upper textdraw that gets copied BIG and backwards down the screen.
EDIT: i found what coused the problem, but i don't know how to fix it.
It is the NPC bots that bugging the textdraw, i tried to fix it with this with no success
I have a textdraw that bugging on screen, you can see on this picture what i mean.
Why and what can cause it?

As you see it is the upper textdraw that gets copied BIG and backwards down the screen.
EDIT: i found what coused the problem, but i don't know how to fix it.
It is the NPC bots that bugging the textdraw, i tried to fix it with this with no success
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(IsPlayerNPC(playerid))
{
if(GetVehicleModel(vehicleid) == 592)
{
TextDrawDestroy(bombtext[playerid]);
//SetVehicleHealth(vehicleid, 2000.0);
}
}
if(IsPlayerNPC(playerid))
{
if(GetVehicleModel(vehicleid) == 548)
{
TextDrawDestroy(bombtext[playerid]);
//SetVehicleHealth(vehicleid, 2000.0);
}
}
//And also tested it this way
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetVehicleModel(vehicleid) == 592)
{
if(IsPlayerNPC(playerid))
{
TextDrawDestroy(bombtext[playerid]);
//SetVehicleHealth(vehicleid, 2000.0);
}
}
if(GetVehicleModel(vehicleid) == 548)
{
if(IsPlayerNPC(playerid))
{
TextDrawDestroy(bombtext[playerid]);
//SetVehicleHealth(vehicleid, 2000.0);
}
}