Help - Clock & Date Textdraw
#1

Hello guy's, I'm looking in these day's for a Date and lock textdraw.
I find this theard - https://sampforum.blast.hk/showthread.php?tid=70445

But the problem is i'm getting to much errors when i'm put it in my mod aswell (I'm not like to much filterscripts).

Well, If someone can help me please..

Thanks alot!
Reply
#2

Can you post your errors?
We can only help you if we see those!
Reply
#3

I made something like this but without the date,
however a date would be easy to add, you can click my sig "SyncPlayerTime"
and if you think its for you request in that thread to add the date and I will.
the newest version is in an include and not in a FS


or post your errors and we can help fix your current system
Reply
#4

Quote:
Originally Posted by Jari_Johnson*
Посмотреть сообщение
Can you post your errors?
We can only help you if we see those!
Uhm, sure.

Quote:

(137) : error 021: symbol already defined: "Time"
(22 : error 076: syntax error in the expression, or invalid function call
(51 : error 076: syntax error in the expression, or invalid function call
(520) : error 076: syntax error in the expression, or invalid function call
(521) : error 076: syntax error in the expression, or invalid function call
(522) : error 076: syntax error in the expression, or invalid function call
(64 : error 076: syntax error in the expression, or invalid function call
(703) : error 076: syntax error in the expression, or invalid function call

Код:
137 : new Text:Time, Text:Date; // Time & Date
228 : TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date); // DATE AND TIME
518 : Time = TextDrawCreate(547.000000,28.000000,"--");
520 : TextDrawFont(Time,3);
521 : TextDrawLetterSize(Time,0.399999,1.600000);
522 : TextDrawColor(Time,0xffffffff);
648 : TextDrawHideForPlayer(playerid, Time), TextDrawHideForPlayer(playerid, Date); // DATE AND TIME
703 : TextDrawSetString(Time, string);
Thanks bro!
Reply
#5

Do
pawn Код:
TextDrawShowForPlayer(playerid, Time) && TextDrawShowForPlayer(playerid, Date);
instead of
pawn Код:
TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);
Reply
#6

Quote:
Originally Posted by Jari_Johnson*
Посмотреть сообщение
Do
pawn Код:
TextDrawShowForPlayer(playerid, Time) && TextDrawShowForPlayer(playerid, Date);
instead of
pawn Код:
TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);
Same error mate,
"(22 : error 076: syntax error in the expression, or invalid function call"
Reply
#7

It should be
pawn Код:
TextDrawShowForPlayer(playerid, Time);
TextDrawShowForPlayer(playerid, Date);
Reply
#8

Quote:
Originally Posted by Jari_Johnson*
Посмотреть сообщение
Do
pawn Код:
TextDrawShowForPlayer(playerid, Time) && TextDrawShowForPlayer(playerid, Date);
instead of
pawn Код:
TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);
... Actually

pawn Код:
TextDrawShowForPlayer(playerid, Time);
TextDrawShowForPlayer(playerid, Date);
Reply
#9

Still the same "(22 : error 076: syntax error in the expression, or invalid function call"

Quote:

228 : TextDrawShowForPlayer(playerid, Time);

Reply
#10

I fixed them by myself, Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)