Peršokti į turinį
  • ŽAIDIMAI
  • , ŽAIDIMAI
  • ŽAIDIMAI

Ši tema yra neaktyvi. Paskutinis pranešimas šioje temoje buvo prieš 4907 dienas (-ų). Patariame sukurti naują temą, o ne rašyti naują pranešimą.

Už neaktyvių temų prikėlimą galite sulaukti įspėjimo ir pranešimo pašalinimo!

Recommended Posts

(redaguota)

Gm'o viršui dedi :

new Text:Time, Text:Date;
forward settime(playerid);

Po

pucblic OnGameModeInit()

{

Dėk:

SetTimer("settime",1000,true);

Date = TextDrawCreate(547.000000,11.000000,"--");
TextDrawFont(Date,3);
TextDrawLetterSize(Date,0.399999,1.600000);
TextDrawColor(Date,0xFFFFFFFF);

Time = TextDrawCreate(547.000000,28.000000,"--");
TextDrawFont(Time,3);
TextDrawLetterSize(Time,0.399999,1.600000);
TextDrawColor(Time,0xFFFFFFFF);

Toliau Po

public OnPlayerSpawn(playerid)

{

Dėk:

TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);

Po

public OnPlayerDisconnect(playerid, reason)

{

Dėk:

TextDrawHideForPlayer(playerid, Time), TextDrawHideForPlayer(playerid, Date);

Ir galiausei pačiame gamemodo gale dėk:






public settime(playerid)
{
new string[256],year,month,day,hours,minutes,seconds;
getdate(year, month, day), gettime(hours, minutes, seconds);
format(string, sizeof string, "%d/%s%d/%s%d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year);
TextDrawSetString(Date, string);
format(string, sizeof string, "%s%d:%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds);
TextDrawSetString(Time, string);
return 1;
}


Redaguota , nario Kesa_Tunex
  • Teigiamai 1

Yra klaidų gal žinai kaip ištaisyt?

C:\Documents and Settings\GoDeZ\Desktop\LSMP 0.0.3\gamemodes\band7.pwn(118) : error 021: symbol already defined: "Time"
C:\Documents and Settings\GoDeZ\Desktop\LSMP 0.0.3\gamemodes\band7.pwn(412) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\GoDeZ\Desktop\LSMP 0.0.3\gamemodes\band7.pwn(523) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\GoDeZ\Desktop\LSMP 0.0.3\gamemodes\band7.pwn(9507) : error 021: symbol already defined: "OnGameModeInit"
C:\Documents and Settings\GoDeZ\Desktop\LSMP 0.0.3\gamemodes\band7.pwn(9515) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\GoDeZ\Desktop\LSMP 0.0.3\gamemodes\band7.pwn(9516) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\GoDeZ\Desktop\LSMP 0.0.3\gamemodes\band7.pwn(9517) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\GoDeZ\Desktop\LSMP 0.0.3\gamemodes\band7.pwn(9518) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\GoDeZ\Desktop\LSMP 0.0.3\gamemodes\band7.pwn(10396) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664	 Copyright (c) 1997-2006, ITB CompuPhase

9 Errors.

Ši tema yra neaktyvi. Paskutinis pranešimas šioje temoje buvo prieš 4907 dienas (-ų). Patariame sukurti naują temą, o ne rašyti naują pranešimą.

Už neaktyvių temų prikėlimą galite sulaukti įspėjimo ir pranešimo pašalinimo!

Svečias
Ši tema yra užrakinta.
  • Šiame puslapyje naršo:   0 nariai

    • Nėra registruotų narių peržiūrinčių šį forumą.

Skelbimai


×
×
  • Sukurti naują...