- 0
Problema CEAS!
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Walentin.
Salut SA-MP.ro, am vrut sa bag si eu un FS ceas si nu merge, nu apare pe server, l`am bagat si in filterscripts si in server.cfg, dar nu doar acesta nu merge, am incercat mai multe fs`uri dar niciunul nu a mers, va rog sa imi spuneti ce are..Va multumesc !
EDIT: Am uitat sa va pun scriptul
[pawn]#include <a_samp>
#include <time>
#define FILTERSCRIPT
forward settime(playerid);
new Text:Time2, Text:Date;
public settime(playerid)
{
new string[256],year,month,day,hours,minutes,seconds;
getdate(year, month, day), gettime(hours, minutes, seconds);
format(string, sizeof string, "~r~%d/~y~%s%d/~b~%s%d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year);
TextDrawSetString(Date, string);
format(string, sizeof string, "~r~%s%d:~y~%s%d:~b~%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds);
TextDrawSetString(Time2, string);
}
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, Time2);
TextDrawShowForPlayer(playerid, Date);
return 1;
}
public OnGameModeInit()
{
SetTimer("settime",1000,true);
Date = TextDrawCreate(547.000000,11.000000,"--");
TextDrawFont(Date,3);
TextDrawLetterSize(Date,0.399999,1.600000);
TextDrawColor(Date,0xffffffff);
Time2 = TextDrawCreate(547.000000,28.000000,"--");
TextDrawFont(Time2,3);
TextDrawLetterSize(Time2,0.399999,1.600000);
TextDrawColor(Time2,0xffffffff);
SetTimer("settime",1000,true);
return 1;
}
[/pawn]
8 answers to this question
Recommended Posts