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", 0x008080FF, X, Y, Z, 40.0, virtualworld, 0);
PHP код:
CMD:removehorse(playerid, params[])
{
for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
{
if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
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", 0x008080FF, X, Y, Z, 40.0, virtualworld, 0);
PHP код:
CMD:removehorse(playerid, params[])
{
for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
{
if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
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", 0x008080FF, POSITION, 40.0, 0, 0);