[Tutorial] Recorded over time TempTime
#1

Hi, I'm new here and I bring you my new Tutorial
Uploaded by Time Timer is a simple but gets wasted ... It's beautifully without them ...
Declare variables:
Code:
new TempTime[MAX_PLAYERS char];

public OnPlayerConnect( playerid )
{
TempTime{ playerid } = gettime(); //Set the current value of the variable unix tajm
return 1;
}
Code:
public OnPlayerDisconnect( playerid ,reason)
{
new TimeToTemp = gettime() - TempTime{ playerid } ;// Variable Time Temp will now contain the number of seconds that the player was online
/ / Variable we add to the player's timestamp file (DUdb, Dini, DOF2)
return 1;
}
Thank you to all the lovely evening: D
Reply
#2

This isnt a tutorial, everyone will end up just copy pasting it without learning anything.
Your english is quite bad. Sometimes its acceptable, but not in this case - I couldnt understand what you were saying.
And for f**** sake, use [pawn] tags
Reply
#3

translations via translate.******.com
Reply
#4

I sense -Rep
Reply
#5

Thats no excuse. Its great that you're trying, but next time have a friend proofread your text.
Reply
#6

You can't even use char because timestamps will always be greater than 255. Current timestamp is 1375220117 and counting. Conclusion: NOT TESTED.
Reply
#7

Quote:
Originally Posted by Vince
View Post
You can't even use char because timestamps will always be greater than 255. Current timestamp is 1375220117 and counting. Conclusion: NOT TESTED.
Tested it....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)