Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Time to PayDay

$
0
0
I tryed to make a command , when a player write /mypayday , for that player show up a text draw with time until payday. This TextDraw show up but don't count minutes. It show 60 minutes constantly.
http://imgur.com/a/adv2h

Code:

CMD:mypayday(playerid, params[])
{
    format(pInfo[playerid][pGText], 31, "payday in: [%02i]", (pInfo[playerid][pPay]-gtm)/60);
    TextDrawShowForPlayer(playerid, PayDayTD);
        return 1;
}

I get this function from command time, that show a text not a text draw!
Code:

CMD:time(playerid, params[])
{
    format(pInfo[playerid][pGText], 31, "~w~payday in: ~n~~g~%02i:%02i", (pInfo[playerid][pPay]-gtm)/60, (pInfo[playerid][pPay]-gtm)%60), GameTextForPlayer(playerid, pInfo[playerid][pGText], 1000, 1);
    return 1;
}


Viewing all articles
Browse latest Browse all 18226

Trending Articles