SA-MP Forums Archive
Help - Clock & Date Textdraw - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help - Clock & Date Textdraw (/showthread.php?tid=342696)



Help - Clock & Date Textdraw - Firo - 14.05.2012

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!


Re: Help - Clock & Date Textdraw - Jstylezzz - 14.05.2012

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


Re: Help - Clock & Date Textdraw - Jonny5 - 14.05.2012

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


Re: Help - Clock & Date Textdraw - Firo - 14.05.2012

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!


Re: Help - Clock & Date Textdraw - Jstylezzz - 14.05.2012

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



Re: Help - Clock & Date Textdraw - Firo - 14.05.2012

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"


Re: Help - Clock & Date Textdraw - Pinguinn - 14.05.2012

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



Re: Help - Clock & Date Textdraw - KingHual - 14.05.2012

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);



Re: Help - Clock & Date Textdraw - Firo - 14.05.2012

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

Quote:

228 : TextDrawShowForPlayer(playerid, Time);




Re: Help - Clock & Date Textdraw - Firo - 15.05.2012

I fixed them by myself, Thanks.