How to settime to open and closed. -
speedy199 - 27.03.2009
How to settime to open and closed casino.
Example Casino open in time 1.00am. and closed in time 2.00am.
Who can do ? please post to pastebin.
----------------------------------------------------------
I'm sorry for english my bad
Re: How to settime to open and closed. -
speedy199 - 27.03.2009
Who can help me ?
Re: How to settime to open and closed. -
Alecswtzu - 27.03.2009
I thinck this will help you
https://sampwiki.blast.hk/wiki/SetTimer
Re: How to settime to open and closed. -
LordShigi - 27.03.2009
Do your server has a defined time variable? If you have a /time command then it does.
If you do than tell me witch is the command for casino.
Re: How to settime to open and closed. -
speedy199 - 27.03.2009
This code =
http://pastebin.com/m3012701b
set to time closed and open. time to 1.00am-2.00pm this Closed(don't enter to go casino room)
Re: How to settime to open and closed. -
speedy199 - 27.03.2009
Help me please. TT_TT
Re: How to settime to open and closed. -
Pyrokid - 27.03.2009
You could use the time functions included with sa-mp to check the current game time and open/close the casino based on it.
Re: How to settime to open and closed. -
Dujma - 27.03.2009
https://sampwiki.blast.hk/wiki/Gettime
Re: How to settime to open and closed. -
speedy199 - 28.03.2009
Quote:
Originally Posted by Dujma
|
I don't understand. you can give example for me ?
Re: How to settime to open and closed. -
Pyrokid - 28.03.2009
Something like this
pawn Код:
new Hour;
gettime(Hour);
if(Hour == 10) { /*open the casino*/ } else if(Hour == 20) { /*close the casino*/ }
Re: How to settime to open and closed. -
speedy199 - 28.03.2009
Quote:
Originally Posted by Pyrokid
Something like this
pawn Код:
new Hour; gettime(Hour); if(Hour == 10) { /*open the casino*/ } else if(Hour == 20) { /*close the casino*/ }
|
if(Hour == 10) { Position open here ?} else if(Hour == 20) { Position closed here?}
Other time is close ?
Re: How to settime to open and closed. -
speedy199 - 28.03.2009
I try this =
http://pastebin.com/m2bab3aee
But found 1 eror. you can help me ?
---------------------------------------------------------------------------------------------------
C:\Documents and Settings\user\My Documents\NewProject\Backup\gf.pwn(12084) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: How to settime to open and closed. -
speedy199 - 28.03.2009
This last compiler complete. But time not match to open and close.
you can fix for me? please help me !!!
This pastebin =
http://pastebin.com/m48499a90
Help me please TT_TT
TT_TT
TT_TT
Re: How to settime to open and closed. -
Kinetic - 28.03.2009
Quote:
Originally Posted by speedy199
This last compiler complete. But time not match to open and close.
you can fix for me? please help me !!!
This pastebin = http://pastebin.com/m48499a90
Help me please TT_TT
TT_TT
TT_TT
|
You are prettymuch asking us to do it for you, this isnt just a simple thing and I suggest trying to get someone in a one on one conversation over AIM or MSN about how to do this. Keep in mind this is a "SUPPORT forum", not a "help me by coding something for me cuz I dont know how forum".