SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Archive

 
 
Thread Tools Display Modes
Old 23/05/2012, 05:46 PM   #1
nV1diaX
Little Clucker
 
Join Date: Mar 2012
Posts: 1
Reputation: 0
Default [HELP] 3DTextLabel pro jen pro hráče a vozidlo.

Ahoj !

Mám menší problém...

Mám v Modu udělán dialog, který povolí hráči 3DTextLabel, který uvidí jen, aby se přidělal na auto. Bohužel, jsem s touto funkcí nikdy nepracoval, ale podle wiki, bych to měl mít správně. Na Wiki to není úplně vysvětleno, tak se obracím na Vás.
3DTextLabel se na autech nezobrazí... Nevíte proč?

V Modu:
Nahoře:

Code:
#define MAX_PLAYERS_EX  	50
#define MAX_VEHICLES_EX     20

enum Player_Info
{
	VehReader,
	PlayerText3D:VehReaderLabel[MAX_VEHICLES_EX]
}

new AdminInfo[MAX_PLAYERS_EX][Player_Info];
a v OnPlayerDialogResponse:

Code:
	        else if(listitem == 2)
	        {
			    if(AdminInfo[playerid][VehReader] == 0)
			    {
					AdminInfo[playerid][VehReader] = 1;
					for(new v=0;v<MAX_VEHICLES_EX;v++)
					{
					    new VehicleString[256];
					    format(VehicleString, sizeof(VehicleString), "Vehicleid: %d", v);
						AdminInfo[playerid][VehReaderLabel][v] = CreatePlayer3DTextLabel(playerid,VehicleString,0x008080FF, 30.0, 40.0, 50.0, 30.0, INVALID_PLAYER_ID, v);
					}
					ShowPlayerSettingsDialog(playerid);
				}else{
					AdminInfo[playerid][VehReader] = 0;
					ShowPlayerSettingsDialog(playerid);
					for(new v=0;v<MAX_VEHICLES_EX;v++)
					{
						DeletePlayer3DTextLabel(playerid, AdminInfo[playerid][VehReaderLabel][v]);
					}
					ShowPlayerSettingsDialog(playerid);
				}
	        }
Děkuji za za odpověd.
nV1diaX is offline  
Old 03/06/2012, 12:06 PM   #2
niCe
Huge Clucker
 
niCe's Avatar
 
Join Date: Mar 2008
Posts: 492
Reputation: 62
Default Re: [HELP] 3DTextLabel pro jen pro hráče a vozidlo.

Rekl bych, ze mas spatne zadane offset souradnice. Zkus tohle:

Code:
CreatePlayer3DTextLabel(playerid,VehicleString,0x008080FF, 0.0, 0.0, 2.0, 30.0, INVALID_PLAYER_ID, v);
__________________
play.gta-multiplayer.cz:7778 [Singleplayer features / Roleplay / Freeroam / Race / Gang war / Minigames]
- Many features from singleplayer
- Pool and basketball minigames
- Video game QUB3D from GTA 4
- Custom made roulettes, slot machines, video poker and horse-betting
- Gang wars over 60 territories
- More than 30 unique sub-missions to earn money (including vigilante, paramedic, firefighter, pimping, valet parking and pizza-boy sub-missions)
- Burglary missions
- Singleplayers races and other challenges
- Gyms, strip clubs, clothes shops, hidden packages, oysters, spray tags, horseshoes and much more
niCe is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
3dtextlabel lag r9x Scripting Help 2 17/03/2012 10:44 AM
3DTextLabel Chrillzen Scripting Help 2 11/11/2011 08:48 PM
3DTextLabel - help Steven82 Help Archive 2 31/10/2010 07:36 PM
3DTextLabel Bug! iZN Help Archive 7 19/07/2010 05:46 AM
3DTextLabel help? (.Aztec); Help Archive 0 29/10/2009 04:46 PM


All times are GMT. The time now is 07:17 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.