AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   how make this (https://forums.alliedmods.net/showthread.php?t=101588)

lovemf 08-25-2009 08:43

how make this
 
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

exvel 08-25-2009 09:00

Re: how make this
 
GetTime() - lastbuytime[client] >= GetConVarFloat(cvar_usetime)

javalia 08-25-2009 11:01

Re: how make this
 
Quote:

Originally Posted by exvel (Post 912357)
GetTime() - lastbuytime[client] >= GetConVarFloat(cvar_usetime)

amazing... how did you understanded
what that guy is saying? lol

bl4nk 08-25-2009 11:16

Re: how make this
 
Just look at the code. He defined "lastbuytime" and then used parentheses instead of brackets.

lovemf 08-26-2009 01:11

Re: how make this
 
thanks.very thanks..


All times are GMT -4. The time now is 19:04.

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