Jump to content

Question

Posted

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 :D

[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

Posted

Pai,vezi daca ai include-ul "time" (pawno/includes/time.inc) -> Asa trebuie sa fie.

Uite un tutorial:

http://www.sa-mp.ro/forum/index.php?topic=26923.0

Posted

Pai,vezi daca ai include-ul "time" (pawno/includes/time.inc) -> Asa trebuie sa fie.

Uite un tutorial:

http://www.sa-mp.ro/forum/index.php?topic=26923.0

Include`ul se numeste cumva timerfix?

Posted

Scuza`ma, sunt [censured by the system] recunosc:)) O sa incerc asa si o sa revin cu un edit in 5 minute:D

Mda, avea include`ul "timer", nu inteleg de la ce dreacu nu arata ceasul :@

Posted

Scuza`ma, sunt [censured by the system] recunosc:)) O sa incerc asa si o sa revin cu un edit in 5 minute:D

Mda, avea include`ul "timer", nu inteleg de la ce dreacu nu arata ceasul :@

Acum iti merge?Daca da,cer T/C.

Posted

Gata stiu care e problema,lasa acolo #include <time> si baga asta in pawno/include.

Il ai la attachments.

Tot nu merge maneee, nu stiu ce sa ii mai fac:((

Ma, sa fie problema ca GM`ul nu a mai avut niciun ceas bagat in GAMEMODE? :-?

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

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.