How to settime to open and closed.
#1

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
Reply
#2

Who can help me ?
Reply
#3

I thinck this will help you https://sampwiki.blast.hk/wiki/SetTimer
Reply
#4

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.
Reply
#5

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)
Reply
#6

Help me please. TT_TT
Reply
#7

You could use the time functions included with sa-mp to check the current game time and open/close the casino based on it.
Reply
#8

https://sampwiki.blast.hk/wiki/Gettime
Reply
#9

Quote:
Originally Posted by Dujma
I don't understand. you can give example for me ?
Reply
#10

Something like this
pawn Код:
new Hour;
gettime(Hour);
if(Hour == 10) { /*open the casino*/ } else if(Hour == 20) { /*close the casino*/ }
Reply
#11

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 ?
Reply
#12

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.
Reply
#13


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
Reply
#14

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".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)