LosO 5 Odesláno: 29. Prosinec, 2013 Share Odesláno: 29. Prosinec, 2013 Ahoje, Spravil som si že keď zapne niekdo misiu tak pripne k nemu 3d label to pripne v pohode ale keď ho chcem vypnut tak ho to nevypne.. tu je kod: stock startlabl(playerid) { labl[playerid] = Create3DTextLabel("Hráč robí misiu !",0x00ff00ff,30.0, 40.0, 50.0, 40.0,0,0); Attach3DTextLabelToPlayer(labl[playerid], playerid, 0.0, 0.0, 0.7); } Keď si zapnem misiu startlabl(playerid); vpohode mi to zobrazí ale ako náhle zruším misiu endlabl(playerid); tak mi to proste nezruší.. a label stále svieti.. Tu je stock na vypnutie: stock endlabl(playerid) { DeletePlayer3DTextLabel(playerid, PlayerText3D:labl[playerid]); } Link to comment Share on other sites More sharing options...
0 Sweet 7 Odesláno: 29. Prosinec, 2013 Share Odesláno: 29. Prosinec, 2013 DeletePlayer3DTextLabel(playerid, PlayerText3D:labl[playerid]); Pokud vim tak PlayerText3D: tam nemá bejt... DeletePlayer3DTextLabel(playerid, labl[playerid]); Link to comment Share on other sites More sharing options...
0 LosO 5 Odesláno: 29. Prosinec, 2013 Author Share Odesláno: 29. Prosinec, 2013 Keď ho dám stade preč tak warning 213: tag mismatch Link to comment Share on other sites More sharing options...
0 Sweet 7 Odesláno: 29. Prosinec, 2013 Share Odesláno: 29. Prosinec, 2013 A máš to správně vytvořený? new PlayerText3D:labl[MAX_PLAYERS]; Link to comment Share on other sites More sharing options...
0 LosO 5 Odesláno: 29. Prosinec, 2013 Author Share Odesláno: 29. Prosinec, 2013 Mám to vytvorené takto: new Text3D:labl[MAX_PLAYERS_EX];ale kebyže si to dám tako new PlayerText3D:labl[MAX_PLAYERS]; tak aj tak to bude písať ten warning Link to comment Share on other sites More sharing options...
0 Akai 1 Odesláno: 29. Prosinec, 2013 Share Odesláno: 29. Prosinec, 2013 Použij toto: new PlayerText3D:labl[MAX_PLAYERS]; A místo Create3DTextLabelPoužij CreatePlayer3DTextLabel Link to comment Share on other sites More sharing options...
0 LosO 5 Odesláno: 29. Prosinec, 2013 Author Share Odesláno: 29. Prosinec, 2013 Riadok: Attach3DTextLabelToPlayer(PlayerText3D:labl[playerid], playerid, 0.0, 0.0, 0.7);Warning:warning 213: tag mismatch Link to comment Share on other sites More sharing options...
0 Akai 1 Odesláno: 29. Prosinec, 2013 Share Odesláno: 29. Prosinec, 2013 Attach3DTextLabelToPlayer(labl[playerid], playerid, 0.0, 0.0, 0.7); Link to comment Share on other sites More sharing options...
0 LosO 5 Odesláno: 29. Prosinec, 2013 Author Share Odesláno: 29. Prosinec, 2013 Stále to isté Link to comment Share on other sites More sharing options...
0 Akai 1 Odesláno: 29. Prosinec, 2013 Share Odesláno: 29. Prosinec, 2013 Na stejné řádce?Použil jsi new PlayerText3D:labl[MAX_PLAYERS]; ? Link to comment Share on other sites More sharing options...
0 LosO 5 Odesláno: 29. Prosinec, 2013 Author Share Odesláno: 29. Prosinec, 2013 takto to mam new PlayerText3D:labl[MAX_PLAYERS_EX]; stock startlabl(playerid) { labl[playerid] = CreatePlayer3DTextLabel(playerid,"Hráč robí misiu !",0x00ff00ff,30.0, 40.0, 50.0, 40.0,0,0); Attach3DTextLabelToPlayer(labl[playerid], playerid, 0.0, 0.0, 0.7); } Link to comment Share on other sites More sharing options...
0 Akai 1 Odesláno: 29. Prosinec, 2013 Share Odesláno: 29. Prosinec, 2013 Jo vlastně, Player LabelTexty nemůžeš připnout k sobě - Protože PlayerLabelTexty vidíš jen ty, a LabelTexty připnutý k sobě nevidíš.Takže new Text3D:labl[MAX_PLAYERS];stock startlabl(playerid){labl[playerid] = Create3DTextLabel("Hráč robí misiu !",0x00ff00ff,30.0, 40.0, 50.0, 40.0,0,0);Attach3DTextLabelToPlayer(labl[playerid], playerid, 0.0, 0.0, 0.7);}stock endlabl(playerid){Delete3DTextLabel(labl[playerid]);} Link to comment Share on other sites More sharing options...
0 LosO 5 Odesláno: 29. Prosinec, 2013 Author Share Odesláno: 29. Prosinec, 2013 Dikes ide to Link to comment Share on other sites More sharing options...
Dotaz
LosO 5
Ahoje,
Spravil som si že keď zapne niekdo misiu tak pripne k nemu 3d label to pripne v pohode ale keď ho chcem vypnut tak ho to nevypne.. tu je kod:
Keď si zapnem misiu
vpohode mi to zobrazí ale ako náhle zruším misiu
tak mi to proste nezruší.. a label stále svieti..
Tu je stock na vypnutie:
Link to comment
Share on other sites
12 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now