[POMOC] Podaci u TD-u.

Započeo needer
30. Jun 2013. Zaključano
441
pregleda
10
postova
needer
3
Wheel Man
30. Jun 2013.
Skripta koju koristim: Moja
Detaljan opis problema: Imam score za US i RUS army i sada oću da na serveru ima textdraw(koji sam napravio) u kojem će se updateati uvijek rezultat, ali nemogu staviti neće da mi se učitaju brojke.
Dio skripte:
new coordsstring,usscore,russcore,string;
warstats = TextDrawCreate(500.0, 113.0, "");
    TextDrawUseBox(warstats, 1);
    TextDrawBoxColor(warstats, 0x00000099);
    TextDrawLetterSize(warstats,0.249,1.040);
    TextDrawTextSize(warstats, 606, 0);
TextDrawFont(warstats, 1);
TextDrawSetShadow(warstats,0);
    TextDrawSetOutline(warstats,1);
    TextDrawSetProportional(warstats, 1);
    format(usscore, sizeof(coordsstring), "%d", USScoresys);
    format(russcore, sizeof(coordsstring), "%d", RUSScoresys);
    format(string, sizeof(string), "US AMRY:%d~n~RUS ARMY:%d");
    TextDrawSetString(warstats, string);

Neke slike/video za lakse dobivanje pomoci(neobavezno):

Učita mi TD i US army i RUS army ali poslije : nema nikakvih brojeva.

Ako mi možete srediti to.
needer
3
Wheel Man
30. Jun 2013.
Izvinite što bumpam ali mi je hitno..
needer
3
Wheel Man
30. Jun 2013.
E nemoguće da niko ne zna?
SEJFO
5
Godfather
30. Jun 2013.
new coordsstring,usscore,russcore,string;
warstats = TextDrawCreate(500.0, 113.0, "");
    TextDrawUseBox(warstats, 1);
    TextDrawBoxColor(warstats, 0x00000099);
    TextDrawLetterSize(warstats,0.249,1.040);
    TextDrawTextSize(warstats, 606, 0);
TextDrawFont(warstats, 1);
TextDrawSetShadow(warstats,0);
    TextDrawSetOutline(warstats,1);
    TextDrawSetProportional(warstats, 1);
    format(usscore, sizeof(coordsstring), "%d", USScoresys);
    format(russcore, sizeof(coordsstring), "%d", RUSScoresys);
    format(string, sizeof(string), "US AMRY:%d~n~RUS ARMY:%d", USScoresys,RUSScoresys);
    TextDrawSetString(warstats, string);


Pokusaj tako
needer
3
Wheel Man
30. Jun 2013.


Piše 0 0 a vidi se u chatu koliko je rezultat.
Cile
4
Made Man
30. Jun 2013.
probaj ovako
new coordsstring,usscore,russcore,string;
warstats = TextDrawCreate(500.0, 113.0, "");
    TextDrawUseBox(warstats, 1);
    TextDrawBoxColor(warstats, 0x00000099);
    TextDrawLetterSize(warstats,0.249,1.040);
    TextDrawTextSize(warstats, 606, 0);
TextDrawFont(warstats, 1);
TextDrawSetShadow(warstats,0);
    TextDrawSetOutline(warstats,1);
    TextDrawSetProportional(warstats, 1);
    format(usscore, sizeof(usscore), "%d", USScoresys);
    format(russcore, sizeof(russcore), "%d", RUSScoresys);
    format(string, sizeof(string), "US AMRY:%d~n~RUS ARMY:%d");
    TextDrawSetString(warstats, string);
SEJFO
5
Godfather
30. Jun 2013.
new coordsstring,usscore,russcore,string;
warstats = TextDrawCreate(500.0, 113.0, "");
    TextDrawUseBox(warstats, 1);
    TextDrawBoxColor(warstats, 0x00000099);
    TextDrawLetterSize(warstats,0.249,1.040);
    TextDrawTextSize(warstats, 606, 0);
TextDrawFont(warstats, 1);
TextDrawSetShadow(warstats,0);
    TextDrawSetOutline(warstats,1);
    TextDrawSetProportional(warstats, 1);
    format(usscore, sizeof(coordsstring), "%d", USScoresys);
    format(russcore, sizeof(coordsstring), "%d", RUSScoresys);
    format(warstats, sizeof(string), "US AMRY:%d~n~RUS ARMY:%d", USScoresys,RUSScoresys);
    TextDrawSetString(warstats, string);


Pokuasj sada

Ti Cile si mu dao jedno te isto sto je on vec postavio
needer
3
Wheel Man
1. Jul 2013.
Možda vam ovo pomogne..
public SaveUSScore()
{
new coordsstring;
format(coordsstring, sizeof(coordsstring), "%d", USScoresys);
new File: file2 = fopen("files/usscore.ini", io_write);
fwrite(file2, coordsstring);
fclose(file2);
return 1;
}

public LoadRUSScore()
{
new arrCoords;
new strFromFile2;
new File: file = fopen("files/russcore.ini", io_read);
if (file)
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, ',');
RUSScoresys = strval(arrCoords);
fclose(file);
}
return 1;
}

new string;
warstats = TextDrawCreate(500.0, 113.0, "");
    TextDrawUseBox(warstats, 1);
    TextDrawBoxColor(warstats, 0x00000099);
    TextDrawLetterSize(warstats,0.249,1.040);
    TextDrawTextSize(warstats, 606, 0);
TextDrawFont(warstats, 1);
TextDrawSetShadow(warstats,0);
    TextDrawSetOutline(warstats,1);
    TextDrawSetProportional(warstats, 1);
    TextDrawSetString(warstats, string);
needer
3
Wheel Man
1. Jul 2013.
hitno.
needer
3
Wheel Man
1. Jul 2013.
needer wrote on July 1, 2013, 10:16 am:
hitno.

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha