Texdraw help. -
ZToPMaN - 29.02.2016
I don't know, but it's not working.
I'm tring to made the "usebox" , Shows swat skin, and when i try to click on it, it spawns with Swat skin as well.
Hm, Also, when i go in game, public click not working nor the skin shows in the use box.?
Can i get a help pls.
pawn Код:
new PlayerText:SwatST[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
//////////////SwatTexdrawSkinButton
SwatST[playerid] = CreatePlayerTextDraw(playerid, 258.250000, 82.583328, "usebox");
PlayerTextDrawLetterSize(playerid, SwatST[playerid], 0.000000, 6.062963);
PlayerTextDrawTextSize(playerid, SwatST[playerid], 183.000000, 0.000000);
PlayerTextDrawAlignment(playerid, SwatST[playerid], 1);
PlayerTextDrawColor(playerid, SwatST[playerid], 0);
PlayerTextDrawUseBox(playerid, SwatST[playerid], true);
PlayerTextDrawBoxColor(playerid, SwatST[playerid], -1);
PlayerTextDrawSetShadow(playerid, SwatST[playerid], 0);
PlayerTextDrawSetOutline(playerid, SwatST[playerid], 0);
PlayerTextDrawFont(playerid, SwatST[playerid], 0);
PlayerTextDrawSetSelectable(playerid, SwatST[playerid], true);
PlayerTextDrawSetPreviewModel(playerid, SwatST[playerid], 285);
PlayerTextDrawShow(playerid, SwatST[playerid]);
return 1;
}
forward OnPlayerChlickPlayerTextDraw(playerid, PlayerText:playertextid);
public OnPlayerChlickPlayerTextDraw(playerid, PlayerText:playertextid)
{
if(playertextid == SwatST[playerid])
{
SetPlayerSkin(playerid, 285);
}
return 1;
}
Re: Texdraw help. -
Vince - 29.02.2016
Text size must not be zero or negative.
Re: Texdraw help. -
ZToPMaN - 01.03.2016
It had been fixed, thanks.
But, I had a little another problem.
pawn Код:
if(clickedid == CopS1)
{
SetSpawnInfo(playerid,1,286,441.7211,-1723.6696,9.8657,358.0204,26,5000,31,5000,0,0);
SpawnPlayer(playerid);
SetPlayerSkin(playerid, 286);
TextDrawHideForPlayer(playerid, CopS1);
TextDrawHideForPlayer(playerid, use1);
TextDrawHideForPlayer(playerid, SW);
TextDrawHideForPlayer(playerid, use2);
TextDrawHideForPlayer(playerid, PW);
TextDrawHideForPlayer(playerid, SWA);
TextDrawHideForPlayer(playerid, AW);
TextDrawHideForPlayer(playerid, CW);
TextDrawHideForPlayer(playerid, CopS1);
TextDrawHideForPlayer(playerid, CopS2);
TextDrawHideForPlayer(playerid, CopS3);
TextDrawHideForPlayer(playerid, CopS4);
TextDrawHideForPlayer(playerid, SN);
TextDrawHideForPlayer(playerid, AM1);
TextDrawHideForPlayer(playerid, AM2);
TextDrawHideForPlayer(playerid, CI1);
TextDrawHideForPlayer(playerid, CI2);
TextDrawHideForPlayer(playerid, CI3);
TextDrawHideForPlayer(playerid, CI4);
TogglePlayerSpectating(playerid, 0);
CancelSelectTextDraw(playerid);
TogglePlayerControllable(playerid,0);
}
[
When ever i try to spawn, it freeze me, I tried to do every thing possible. Like toggleplayercontrollable etc.
How can i fix this?
Re: Texdraw help. -
MicroKyrr - 01.03.2016
PHP код:
if(clickedid == CopS1)
{
SetSpawnInfo(playerid,1,286,441.7211,-1723.6696,9.8657,358.0204,26,5000,31,5000,0,0);
SpawnPlayer(playerid);
SetPlayerSkin(playerid, 286);
TextDrawHideForPlayer(playerid, CopS1);
TextDrawHideForPlayer(playerid, use1);
TextDrawHideForPlayer(playerid, SW);
TextDrawHideForPlayer(playerid, use2);
TextDrawHideForPlayer(playerid, PW);
TextDrawHideForPlayer(playerid, SWA);
TextDrawHideForPlayer(playerid, AW);
TextDrawHideForPlayer(playerid, CW);
TextDrawHideForPlayer(playerid, CopS1);
TextDrawHideForPlayer(playerid, CopS2);
TextDrawHideForPlayer(playerid, CopS3);
TextDrawHideForPlayer(playerid, CopS4);
TextDrawHideForPlayer(playerid, SN);
TextDrawHideForPlayer(playerid, AM1);
TextDrawHideForPlayer(playerid, AM2);
TextDrawHideForPlayer(playerid, CI1);
TextDrawHideForPlayer(playerid, CI2);
TextDrawHideForPlayer(playerid, CI3);
TextDrawHideForPlayer(playerid, CI4);
TogglePlayerSpectating(playerid, 0);
CancelSelectTextDraw(playerid);
TogglePlayerControllable(playerid,1);
Re: Texdraw help. -
ZToPMaN - 01.03.2016
Thanks, I forgot to change the value, thanks alot.