Why is this not working?
#1

PHP код:
#endif
new PlayerText:paycheck[MAX_PLAYERS];
public 
OnGameModeInit()
{
    
// Don't use these lines if it's a filterscript
    
SetGameModeText("Blank Script");
    
AddPlayerClass(01958.37831343.157215.3746269.1425000000);
    
SetTimerEx("myfunction"3600000true"is"1337"hello!");
    return 
1;
}
public 
OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraLookAt(playerid1958.37831343.157215.3746);
    return 
1;
}
public 
myfunction(playerid)
{
    
GivePlayerMoney(playerid,400);
    
paycheck[playerid] = TextDrawCreate(51321"You got your paycheck");
    
TextDrawLetterSize(Text:paycheck[playerid], 0.51.5);
    
TextDrawTextSize(Text:paycheck[playerid], 12);
    
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(playeridpaycheck[playerid]);
    return 
1;

why is this not working please help i realy need this.
Reply
#2

DAMN!

What ain't working?!
Reply
#3

So what the problem?
Reply
#4

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; 
}
Reply
#5

why the textdraws do not destroy?It stays there,why?Please help.
Reply
#6

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.
Reply
#7

https://sampwiki.blast.hk/wiki/TextDrawHideForPlayer
Reply
#8

Use this code TextDrawHideForPlayer(playerid, paycheck[playerid]);
Reply
#9

where to put this code in the above codes I provided.
Reply
#10

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]))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)