Affichage des articles dont le libellé est Can someone help me??. Afficher tous les articles
Affichage des articles dont le libellé est Can someone help me??. Afficher tous les articles

samedi 23 juillet 2016

Can someone help me??

Let's block ads! (Why?)



Can someone help me??

Huge Clucker

 
Micko123's Avatar
 

Join Date: Feb 2016

Location: Somewhere inside pawno

Posts: 495

Reputation: 18

DefaultCan someone help me??

I created these stocks

PHP Code:

stock Kreiraj_PTD(playeridbool:kreiran)
{
    if(
kreiran == true)
    {
//============================== Datum =========================================//
        
TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid552.66687016.275588"00/00/00");
        
PlayerTextDrawLetterSize(playeridTDEditor_PTD[playerid][0], 0.3000001.600000);
        
PlayerTextDrawAlignment(playeridTDEditor_PTD[playerid][0], 1);
        
PlayerTextDrawColor(playeridTDEditor_PTD[playerid][0], 16777215);
        
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][0], 0);
        
PlayerTextDrawSetOutline(playeridTDEditor_PTD[playerid][0], 0);
        
PlayerTextDrawBackgroundColor(playeridTDEditor_PTD[playerid][0], 255);
        
PlayerTextDrawFont(playeridTDEditor_PTD[playerid][0], 2);
        
PlayerTextDrawSetProportional(playeridTDEditor_PTD[playerid][0], 1);
        
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][0], 0);
//============================== Vrijeme =======================================//
        
TDEditor_PTD[playerid][1] = CreatePlayerTextDraw(playerid552.22229044.648906"00:00:00");
        
PlayerTextDrawLetterSize(playeridTDEditor_PTD[playerid][1], 0.4000001.600000);
        
PlayerTextDrawAlignment(playeridTDEditor_PTD[playerid][1], 1);
        
PlayerTextDrawColor(playeridTDEditor_PTD[playerid][1], 16777215);
        
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][1], 0);
        
PlayerTextDrawSetOutline(playeridTDEditor_PTD[playerid][1], 0);
        
PlayerTextDrawBackgroundColor(playeridTDEditor_PTD[playerid][1], 255);
        
PlayerTextDrawFont(playeridTDEditor_PTD[playerid][1], 2);
        
PlayerTextDrawSetProportional(playeridTDEditor_PTD[playerid][1], 1);
        
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][1], 0);
    }
    if(
kreiran == false)
    {
        
PlayerTextDrawDestroy(playeridTDEditor_PTD[playerid][0]);
            
PlayerTextDrawDestroy(playeridTDEditor_PTD[playerid][1]);
    }
    return 
1;

PHP Code:

stock Prikazi_PTD(playerid)
{
    new 
datum[25], vrijeme[25], satminutsekunddanmjesecgodina;
    
gettime(satminutsekund);
    
getdate(godinamjesecdan);
    
format(datumsizeof datum"~w~%02d %02d %02d"danmjesecgodina);
    
PlayerTextDrawSetString(playeridTDEditor_PTD[playerid][0], datum);
    
format(vrijemesizeof vrijeme"~w~%02d %02d %02d"satminutsekund);
    
PlayerTextDrawSetString(playeridTDEditor_PTD[playerid][1], vrijeme);
    
PlayerTextDrawShow(playeridTDEditor_PTD[playerid][0]);
    
PlayerTextDrawShow(playeridTDEditor_PTD[playerid][1]);
    return 
1;

First one is for creating TexDraws and second one is for showing them. I also have this

PHP Code:

public OnPlayerConnect(playerid)
{
    
Kreiraj_PTD(playeridtrue);
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    
Prikazi_PTD(playerid);
    return 
1;

But it won't show TextDraws. What can i do??
__________________