Help errors
#3

Quote:
Originally Posted by Aly
Посмотреть сообщение
Try this one:
PHP код:
forward OnBizzTextdrawUpdate(bid);
public 
OnBizzTextdrawUpdate(bid)
{
    new 
string[256];
    for(new 
playerplayerMAX_PLAYERSplayer++)
    {
        if(
PlayerToPoint(2.0playerBizzInfo[bid][bEntrancex], BizzInfo[bid][bEntrancey], BizzInfo[bid][bEntrancez]))
        {
            if(
BizzInfo[bid][bOwned] == 0)
            {
                
DestroyDynamic3DTextLabel(Bizz3DText[bid]);
                
DestroyDynamic3DTextLabel(Bizz3DTextInt1[bid]);
                
format(stringsizeof(string), "%s~n~~w~Propietario: ~r~En Venta!~n~~w~Extorsiуn: ~b~En Venta!~n~~w~Nivel: ~y~%d~n~~w~Precio: ~g~$%d~n~~w~Para comprar ~r~~k~/comprarnegocio"BizzInfo[bid][bName],BizzInfo[bid][bLevelNeeded], BizzInfo[bid][bBuyPrice]);
                
TextDrawShowForPlayer(playerNegociosText[player]);
                
TextDrawSetStringEx(NegociosText[player], string);
                
Bizz3DTextInt1[bid] = CreateDynamic3DTextLabel(string,0xAAAAFFFFBizzInfo[bid][bEntrancex], BizzInfo[bid][bEntrancey], BizzInfo[bid][bEntrancez],5.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1,0,1);
                
BizzPickup[bid] = CreateDynamicPickup(12721BizzInfo[bid][bEntrancex], BizzInfo[bid][bEntrancey], BizzInfo[bid][bEntrancez]);
                return 
1;
            }
            else if(
BizzInfo[bid][bOwned] == 1)
            {
                
DestroyDynamic3DTextLabel(Bizz3DText[bid]);
                
DestroyDynamic3DTextLabel(Bizz3DTextInt1[bid]);
                
format(stringsizeof(string), "%s~n~~w~Propietario: ~r~%s~n~~w~Extorsiуn: ~b~%s~n~~w~Nivel: ~y~%d~n~~w~Info: Pulsa ~r~Y ~w~para Entrar."BizzInfo[bid][bName], BizzInfo[bid][bOwner],BizzInfo[bid][bExtortion]);
                
TextDrawShowForPlayer(playerNegociosText[player]);
                
TextDrawSetStringEx(NegociosText[player], string);
                
Bizz3DTextInt1[bid] = CreateDynamic3DTextLabel(string,0xAAAAFFFFBizzInfo[bid][bEntrancex], BizzInfo[bid][bEntrancey], BizzInfo[bid][bEntrancez],5.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1,0,1);
                
BizzPickup[bid] = CreateDynamicPickup(12721BizzInfo[bid][bEntrancex], BizzInfo[bid][bEntrancey], BizzInfo[bid][bEntrancez]);
            }
        }
        else 
OcultarInfo(player);
    }
    return 
1;

but textdraw closes all the time
as blinking
Reply


Messages In This Thread
Help errors - by MARIOBROSS - 26.09.2015, 20:45
Re: Help errors - by Aly - 26.09.2015, 20:58
Respuesta: Re: Help errors - by MARIOBROSS - 26.09.2015, 21:25
Re: Help errors - by Aly - 26.09.2015, 21:28
Respuesta: Re: Help errors - by MARIOBROSS - 27.09.2015, 01:38
Re: Help errors - by Aly - 27.09.2015, 07:13

Forum Jump:


Users browsing this thread: 3 Guest(s)