Help me with GetTickCount()
#1

Hello, I'm learning pawn, and i'm using GetTickCount(), but, i have an error D:

Error:

Код:
C:\Documents and Settings\Freeman\Escritorio\Pawn\filterscripts\Xion.pwn(27) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
pawn Код:
new Ref;
public OnPlayerDeath(playerid, killerid, reason)
{
  Ref = GetTickCount();
  return 1;
}

public OnPlayerSpawn(playerid)
{
  new string[70];
  format(string, sizeof(string), "You lasted %f seconds to appear after the death!", floatdiv(GetTickCount - Ref, 1000));
  SendClientMessage(playerid, COLOR_GREEN, string);
  return 1;
}
I would appreciate any help

Regards,
Q.
Reply


Messages In This Thread
Help me with GetTickCount() - by [00]Luis - 04.09.2011, 01:45
Re: Help me with GetTickCount() - by BlackWolf120 - 04.09.2011, 01:53
Respuesta: Re: Help me with GetTickCount() - by [00]Luis - 04.09.2011, 02:01
Re: Help me with GetTickCount() - by BlackWolf120 - 04.09.2011, 02:01
Re: Help me with GetTickCount() - by JaTochNietDan - 04.09.2011, 03:16
Respuesta: Re: Help me with GetTickCount() - by [00]Luis - 04.09.2011, 15:38

Forum Jump:


Users browsing this thread: 1 Guest(s)