mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
Back to uppercase name
This commit is contained in:
8399
samples/PAWN/fixes.inc
Normal file
8399
samples/PAWN/fixes.inc
Normal file
File diff suppressed because it is too large
Load Diff
36
samples/PAWN/timertest.pwn
Normal file
36
samples/PAWN/timertest.pwn
Normal file
@@ -0,0 +1,36 @@
|
||||
#include <a_samp>
|
||||
|
||||
forward OneSecTimer();
|
||||
|
||||
new lasttick = 0;
|
||||
|
||||
main()
|
||||
{
|
||||
print("\n----------------------------------");
|
||||
print(" This is a blank GameModeScript");
|
||||
print("----------------------------------\n");
|
||||
}
|
||||
|
||||
public OnGameModeInit()
|
||||
{
|
||||
// Set timer of 1 second.
|
||||
SetTimer("OneSecTimer", 1000, 1);
|
||||
print("GameModeInit()");
|
||||
SetGameModeText("Timer Test");
|
||||
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
|
||||
return 1;
|
||||
}
|
||||
|
||||
public OneSecTimer() {
|
||||
|
||||
if(lasttick == 0) {
|
||||
lasttick = GetTickCount();
|
||||
return;
|
||||
}
|
||||
new sText[256];
|
||||
format(sText,sizeof(sText),"GetTickCountOffset = %d",GetTickCount() - lasttick);
|
||||
print(sText);
|
||||
SendClientMessageToAll(0xFF0000, sText);
|
||||
lasttick = GetTickCount();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user