• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Server] Problem with GetTickCount
#3
I have no idea about GetTickCount() but you can use gettime() instead.

PHP Code:
public OnPlayerCommandReceived(playerid, cmdtext[]) { ? ? if (!IsPlayerConnected(playerid) || playerid == INVALID_PLAYER_ID) { return SendClientMessage(playerid, COLOR_INVALID, "You are not connected."), false; } if (gettime() < timeUsedCommand[playerid]) ? ? { return SendClientMessage(playerid, COLOR_GRAD1, "Wait 2 seconds to retype a command!"), false; ? ? } timeUsedCommand[playerid] = gettime(); ? ? return 1; }
  Reply


Messages In This Thread
Problem with GetTickCount - by RhaegarX - 2021-03-11, 12:55 PM
RE: Problem with GetTickCount - by Virsenas - 2021-03-11, 08:12 PM
RE: Problem with GetTickCount - by RhaegarX - 2021-03-11, 08:53 PM
RE: Problem with GetTickCount - by Virsenas - 2021-03-11, 08:55 PM
RE: Problem with GetTickCount - by RhaegarX - 2021-03-11, 08:57 PM
RE: Problem with GetTickCount - by RhaegarX - 2021-03-11, 09:08 PM
RE: Problem with GetTickCount - by Radical - 2021-03-11, 08:31 PM
RE: Problem with GetTickCount - by RhaegarX - 2021-03-11, 08:55 PM
RE: Problem with GetTickCount - by RhaegarX - 2021-03-11, 09:31 PM
RE: Problem with GetTickCount - by RhaegarX - 2021-03-11, 09:38 PM
RE: Problem with GetTickCount - by Virsenas - 2021-03-11, 10:02 PM
RE: Problem with GetTickCount - by RhaegarX - 2021-03-11, 10:06 PM
RE: Problem with GetTickCount - by RhaegarX - 2021-03-11, 09:57 PM
RE: Problem with GetTickCount - by Y_Less - 2021-03-11, 11:18 PM
RE: Problem with GetTickCount - by RhaegarX - 2021-03-12, 01:17 AM
RE: Problem with GetTickCount - by Pinch - 2021-03-12, 11:51 AM
RE: Problem with GetTickCount - by rasheed - 2021-03-13, 08:40 AM
RE: Problem with GetTickCount - by Y_Less - 2021-03-13, 02:25 PM
RE: Problem with GetTickCount - by Pinch - 2021-03-13, 03:02 PM
RE: Problem with GetTickCount - by Y_Less - 2021-03-13, 05:36 PM
RE: Problem with GetTickCount - by Virsenas - 2021-03-13, 05:46 PM
RE: Problem with GetTickCount - by Pinch - 2021-03-13, 06:22 PM