SA-MP Forums Archive
Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help (/showthread.php?tid=644516)



Help - Ponga - 09.11.2017

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?


Re: Help - Baseball - 09.11.2017

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


Re: Help - Ponga - 10.11.2017

Anyone?


Re: Help - Puff - 10.11.2017

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;




Re: Help - Ponga - 10.11.2017

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"


Re: Help - Lucases - 10.11.2017

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


Re: Help - Puff - 10.11.2017

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);