Help errors
#1

They help me? I get these 2 errors

(56244) : error 029: invalid expression, assumed zero
(56268 ) : error 029: invalid expression, assumed zero

CODE:


Код:
forward OnBizzTextdrawUpdate(bid);
public OnBizzTextdrawUpdate(bid)
{
    new string[256];
    for(new player; player< MAX_PLAYERS; player++)
	{
    if(PlayerToPoint(2.0, player, BizzInfo[bid][bEntrancex], BizzInfo[bid][bEntrancey], BizzInfo[bid][bEntrancez]))
	{
	if(BizzInfo[bid][bOwned] == 0)
 	{
 		DestroyDynamic3DTextLabel(Bizz3DText[bid]);
 		DestroyDynamic3DTextLabel(Bizz3DTextInt1[bid]);
		format(string, sizeof(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(player, NegociosText[player]);
 	    TextDrawSetStringEx(NegociosText[player], string);
		Bizz3DTextInt1[bid] = CreateDynamic3DTextLabel(string,0xAAAAFFFF, BizzInfo[bid][bEntrancex], BizzInfo[bid][bEntrancey], BizzInfo[bid][bEntrancez],5.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1,0,1);
		BizzPickup[bid] = CreateDynamicPickup(1272, 1, BizzInfo[bid][bEntrancex], BizzInfo[bid][bEntrancey], BizzInfo[bid][bEntrancez]);
		return 1;
	}
	}
	}
	else //56244
	{
    for(new player; player< MAX_PLAYERS; player++)
	{
	OcultarInfo(player);
	}
	}
	//else
    for(new player; player< MAX_PLAYERS; player++)
	{
    if(PlayerToPoint(2.0, player, BizzInfo[bid][bEntrancex], BizzInfo[bid][bEntrancey], BizzInfo[bid][bEntrancez]))
	{
	if(BizzInfo[bid][bOwned] == 1)
	{
 		DestroyDynamic3DTextLabel(Bizz3DText[bid]);
 		DestroyDynamic3DTextLabel(Bizz3DTextInt1[bid]);
		format(string, sizeof(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(player, NegociosText[player]);
		TextDrawSetStringEx(NegociosText[player], string);
		Bizz3DTextInt1[bid] = CreateDynamic3DTextLabel(string,0xAAAAFFFF, BizzInfo[bid][bEntrancex], BizzInfo[bid][bEntrancey], BizzInfo[bid][bEntrancez],5.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1,0,1);
		BizzPickup[bid] = CreateDynamicPickup(1272, 1, BizzInfo[bid][bEntrancex], BizzInfo[bid][bEntrancey], BizzInfo[bid][bEntrancez]);
	}
	}
	}
	else //56268
	{
    for(new player; player< MAX_PLAYERS; player++)
	{
	OcultarInfo(player);
	}
	}
	return 1;
}
Thanks
Reply
#2

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;

Reply
#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
#4

then you have to create them when you load each business, under OnGameModeInit.
And after that just update them using
PHP код:
UpdateDynamic3DTextLabelText(STREAMER_TAG_3D_TEXT_LABEL idcolor, const text[]); 
Reply
#5

Quote:
Originally Posted by Aly
Посмотреть сообщение
then you have to create them when you load each business, under OnGameModeInit.
And after that just update them using
PHP код:
UpdateDynamic3DTextLabelText(STREAMER_TAG_3D_TEXT_LABEL idcolor, const text[]); 
but if it is a textdraw, not a label
Reply
#6

1.The textdraw will never blink,only the 3dlabel blinks because you delete it and then create it again.
2.Why do you need a textdraw for that?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)