Raised This Month: $ Target: $400
 0% 

[FM] EngFunc_Time


  
 
 
Thread Tools Display Modes
Author Message
jopmako
Senior Member
Join Date: Jul 2006
Location: QQ:331537639
Old 11-04-2006 , 11:15   [FM] EngFunc_Time
#1

Code:
// fakemeta_const.inc
// EngFunc_Time, // float) ( void );
 
new Float:upTime
upTime = engfunc(EngFunc_Time)
 
compile: warning 213: tag mismatch
__________________
QQ31537639
jopmako is offline
Send a message via MSN to jopmako
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 11-04-2006 , 11:19   Re: [FM] EngFunc_Time
#2

isnt it engfunc(EngFunc_Time, upTime)

Float is returned byreference
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
jopmako
Senior Member
Join Date: Jul 2006
Location: QQ:331537639
Old 11-04-2006 , 11:25   Re: [FM] EngFunc_Time
#3

ok,I try this
Code:
   new Float:upTime
   engfunc(EngFunc_Time,upTime)
   server_print("EngFunc_Time = %f",upTime)
Return: 0.000000
wrong.

Code:
server_print("EngFunc_Time = %f",engfunc(EngFunc_Time))
this return: 12.463627
correctly.
__________________
QQ31537639
jopmako is offline
Send a message via MSN to jopmako
BAILOPAN
Join Date: Jan 2004
Old 11-04-2006 , 11:26   Re: [FM] EngFunc_Time
#4

This isn't a bug. The problem is that you need to manually re-cast the return value.

Code:
new Float:time = Float:engfunc(EngFunc_Time);

Or something to that effect.
__________________
egg
BAILOPAN is offline
jopmako
Senior Member
Join Date: Jul 2006
Location: QQ:331537639
Old 11-04-2006 , 11:32   Re: [FM] EngFunc_Time
#5

yeah it ok now
sorry
del,thx
__________________
QQ31537639
jopmako is offline
Send a message via MSN to jopmako
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode