24.06.2017, 15:36
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
I get this function from command time, that show a text not a text draw!
http://imgur.com/a/adv2h
Код:
CMD:mypayday(playerid, params[]) { format(pInfo[playerid][pGText], 31, "payday in: [%02i]", (pInfo[playerid][pPay]-gtm)/60); TextDrawShowForPlayer(playerid, PayDayTD); return 1; }
Код:
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; }