#1

I need little help, so how can i add 3dtextlabel for example

Код:
CMD:gethorse(playerid, params[])
{
        SetPlayerAttachedObject(playerid, 1, MODEL, 1, POSITION);
  	playerHorse[playerid]=1;
	return 1;
}
and when i /removehorse the 3dlabel will remove too?
Reply
#2

Hi, did you try this? https://sampwiki.blast.hk/wiki/Create3DTextLabel
Reply
#3

Anyone?
Reply
#4

PHP код:
new Text3D:MyLabel
PHP код:
MyLabel Create3DTextLabel("Text"0x008080FFXYZ40.0virtualworld0); 
PHP код:
CMD:removehorse(playeridparams[])
{
       for(new 
i=0i<MAX_PLAYER_ATTACHED_OBJECTSi++)
        {
            if(
IsPlayerAttachedObjectSlotUsed(playeridi)) RemovePlayerAttachedObject(playeridi);
            
playerHorse[playerid]=0;
            
Delete3DTextLabel(MyLabel);
        }
        return 
1;
    }
    return 
0;

Reply
#5

Quote:
Originally Posted by Puff
Посмотреть сообщение
PHP код:
new Text3D:MyLabel
PHP код:
MyLabel Create3DTextLabel("Text"0x008080FFXYZ40.0virtualworld0); 
PHP код:
CMD:removehorse(playeridparams[])
{
       for(new 
i=0i<MAX_PLAYER_ATTACHED_OBJECTSi++)
        {
            if(
IsPlayerAttachedObjectSlotUsed(playeridi)) RemovePlayerAttachedObject(playeridi);
            
playerHorse[playerid]=0;
            
Delete3DTextLabel(MyLabel);
        }
        return 
1;
    }
    return 
0;

error 017: undefined symbol "X"
Reply
#6

Lol, you just copied and pasted.
You have to replace X Y Z and virtuarworld with something.
Reply
#7

Quote:
Originally Posted by Ponga
Посмотреть сообщение
error 017: undefined symbol "X"
Replace X, Y, Z with your coordinates LOL and virtualworld to 0

or

PHP код:
MyLabel Create3DTextLabel("Text"0x008080FFPOSITION40.000); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)