04.09.2011, 01:45
Hello, I'm learning pawn, and i'm using GetTickCount(), but, i have an error D:
Error:
I would appreciate any help
Regards,
Q.
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;
}
Regards,
Q.