Question with Gettime and GetData
#1

Hi peoples.Now i need help with time and data.I want to ask how to save time in variable and then how use for ex:

I take pickup,and get when i get him,and when i write /pickuptime and then write,when i pick pickup(this is example.)
Reply
#2

any help?
Reply
#3

pawn Код:
new PickupTime[MAX_PLAYERS][3];
pawn Код:
CMD:pickuptime(playerid, params[])
{
    new msg[128];
    format(msg, sizeof(msg), "Pickup was picked up at %02d:%02d:%02d", PickupTime[playerid][0], PickupTime[playerid][1], PickupTime[playerid][2]);
    SendClientMessage(playerid, -1, msg);
    return 1;
}
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    gettime(PickupTime[playerid][0], PickupTime[playerid][1], PickupTime[playerid][2]);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)