how to make a command which...
#9

hmm, im confused...
where do i need to put all this?

Код:
new totaltime = 34000; // this is your initial value, here for reference
new remaining; // temporary storage

remaining = totaltime % 3600; // remaining seconds after subtracting hours

new hours = (totaltime - remaining) / 3600;
new seconds = remaining % 60;
new minutes = (remaining - seconds) / 60;

// will give: 9 hours, 26 minutes, 40 seconds
Код:
new gNewPlayersReg = 0; // Global
new gMessagesSent = 0;

// When a new player signs up...
gNewPlayersReg = gNewPlayersReg + 1;

// When message is sent

public OnPlayerText(playerid, text[])
{
    gMessagesSent = gMessagesSent + 1;
    return 1;
}
and tell me what to replace it with... if you know what i mean.
Reply


Messages In This Thread
how to make a command which... - by SRB - 27.12.2013, 00:07
Re: how to make a command which... - by Miguel - 27.12.2013, 06:41
Re: how to make a command which... - by newbie scripter - 27.12.2013, 07:13
Re: how to make a command which... - by SRB - 27.12.2013, 12:22
Re: how to make a command which... - by SRB - 27.12.2013, 13:19
Re: how to make a command which... - by Miguel - 27.12.2013, 16:34
Re: how to make a command which... - by SRB - 27.12.2013, 17:22
Re: how to make a command which... - by Miguel - 27.12.2013, 17:56
Re: how to make a command which... - by SRB - 27.12.2013, 19:31
Re: how to make a command which... - by SRB - 28.12.2013, 15:00

Forum Jump:


Users browsing this thread: 2 Guest(s)