Raised This Month: $ Target: $400
 0% 

how make this


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lovemf
BANNED
Join Date: May 2009
Old 08-25-2009 , 08:43   how make this
Reply With Quote #1

Code:
new Handle:cvar_usetime = INVALID_HANDLE;
new lastbuytime[MAXPLAYERS+1];
cvar_usetime = CreateConVar("sm_useitem_time", "86400", " 86400 = 24 hours", FCVAR_PLUGIN, true, 1.0);
how can

Code:
 GetTime() - lastbuytime(client) >= GetConVarFloat(cvar_usetime)
right run? thanks sorry my bad english

Last edited by lovemf; 08-25-2009 at 09:00.
lovemf is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 08-25-2009 , 09:00   Re: how make this
Reply With Quote #2

GetTime() - lastbuytime[client] >= GetConVarFloat(cvar_usetime)
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
javalia
Senior Member
Join Date: May 2009
Location: korea, republic of
Old 08-25-2009 , 11:01   Re: how make this
Reply With Quote #3

Quote:
Originally Posted by exvel View Post
GetTime() - lastbuytime[client] >= GetConVarFloat(cvar_usetime)
amazing... how did you understanded
what that guy is saying? lol
javalia is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 08-25-2009 , 11:16   Re: how make this
Reply With Quote #4

Just look at the code. He defined "lastbuytime" and then used parentheses instead of brackets.
bl4nk is offline
lovemf
BANNED
Join Date: May 2009
Old 08-26-2009 , 01:11   Re: how make this
Reply With Quote #5

thanks.very thanks..
lovemf is offline
Reply



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 19:04.


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