Why is this not working? -
TaLhA XIV - 26.07.2012
PHP код:
#endif
new PlayerText:paycheck[MAX_PLAYERS];
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
SetTimerEx("myfunction", 3600000, true, "is", 1337, "hello!");
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public myfunction(playerid)
{
GivePlayerMoney(playerid,400);
paycheck[playerid] = TextDrawCreate(51, 321, "You got your paycheck");
TextDrawLetterSize(Text:paycheck[playerid], 0.5, 1.5);
TextDrawTextSize(Text:paycheck[playerid], 1, 2);
TextDrawAlignment(Text:paycheck[playerid], 3);
TextDrawColor(Text:paycheck[playerid], -65366);
TextDrawUseBox(Text:paycheck[playerid], 0);
TextDrawSetShadow(Text:paycheck[playerid], 2);
TextDrawBoxColor(Text:paycheck[playerid], -1347440726);
TextDrawSetOutline(Text:paycheck[playerid], 2);
TextDrawBackgroundColor(Text:paycheck[playerid], 170);
TextDrawFont(Text:paycheck[playerid], 3);
TextDrawSetProportional(Text:paycheck[playerid], 1);
TextDrawShowForPlayer(playerid, paycheck[playerid]);
return 1;
}
why is this not working please help i realy need this.
Re: Why is this not working? -
FireCat - 26.07.2012
DAMN!
What ain't working?!
Re: Why is this not working? -
RedJohn - 26.07.2012
So what the problem?
Re: Why is this not working? -
Marlon_Lorran - 26.07.2012
Try this:
Код:
#endif
new Text:paycheck[MAX_PLAYERS];
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnPlayerConnect(playerid)
{
SetTimerEx("myfunction", 3600000, true, "i", playerid);
return true;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public myfunction(playerid)
{
GivePlayerMoney(playerid,400);
paycheck[playerid] = TextDrawCreate(51, 321, "You got your paycheck");
TextDrawLetterSize(Text:paycheck[playerid], 0.5, 1.5);
TextDrawTextSize(Text:paycheck[playerid], 1, 2);
TextDrawAlignment(Text:paycheck[playerid], 3);
TextDrawColor(Text:paycheck[playerid], -65366);
TextDrawUseBox(Text:paycheck[playerid], 0);
TextDrawSetShadow(Text:paycheck[playerid], 2);
TextDrawBoxColor(Text:paycheck[playerid], -1347440726);
TextDrawSetOutline(Text:paycheck[playerid], 2);
TextDrawBackgroundColor(Text:paycheck[playerid], 170);
TextDrawFont(Text:paycheck[playerid], 3);
TextDrawSetProportional(Text:paycheck[playerid], 1);
TextDrawShowForPlayer(playerid, paycheck[playerid]);
return 1;
}
Re: Why is this not working? -
TaLhA XIV - 26.07.2012
why the textdraws do not destroy?It stays there,why?Please help.
Re: Why is this not working? -
TaLhA XIV - 26.07.2012
Sorry for the double post but please someone help me I really need it.Please Please I really need help.How to destroy the text draw after it appears Once.And it appears again.Pleease help me.
Re: Why is this not working? -
namespace - 26.07.2012
https://sampwiki.blast.hk/wiki/TextDrawHideForPlayer
Re: Why is this not working? -
Marlon_Lorran - 26.07.2012
Use this code
TextDrawHideForPlayer(playerid, paycheck[playerid]);
Re: Why is this not working? -
TaLhA XIV - 26.07.2012
where to put this code in the above codes I provided.
Re: Why is this not working? -
TaLhA XIV - 26.07.2012
Sorry for the double post but please tell where should I put the the code in the script above I provided.((TextDrawHideForPlayer(playerid, paycheck[playerid])
)