[POMOC] Podaci u TD-u.

Započeo needer, Jun 30, 2013, 14:56:27 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

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[128],usscore[128],russcore[128],string[128];
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[USScoreAmmount]);
    format(russcore, sizeof(coordsstring), "%d", RUSScoresys[RUSScoreAmmount]);
    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.

Izvinite Å¡to bumpam ali mi je hitno..


new coordsstring[128],usscore[128],russcore[128],string[128];
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[USScoreAmmount]);
    format(russcore, sizeof(coordsstring), "%d", RUSScoresys[RUSScoreAmmount]);
    format(string, sizeof(string), "US AMRY:%d~n~RUS ARMY:%d", USScoresys[USScoreAmmount],RUSScoresys[RUSScoreAmmount]);
    TextDrawSetString(warstats, string);


Pokusaj tako




Balkan Ulice RPG opis servera: Click



-Tutorial za mijesanje ID-ova na vozilima: Click



Piše 0 0 a vidi se u chatu koliko je rezultat.

probaj ovako

new coordsstring[128],usscore[128],russcore[128],string[128];
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[USScoreAmmount]);
    format(russcore, sizeof(russcore), "%d", RUSScoresys[RUSScoreAmmount]);
    format(string, sizeof(string), "US AMRY:%d~n~RUS ARMY:%d");
    TextDrawSetString(warstats, string);



new coordsstring[128],usscore[128],russcore[128],string[128];
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[USScoreAmmount]);
    format(russcore, sizeof(coordsstring), "%d", RUSScoresys[RUSScoreAmmount]);
    format(warstats, sizeof(string), "US AMRY:%d~n~RUS ARMY:%d", USScoresys[USScoreAmmount],RUSScoresys[RUSScoreAmmount]);
    TextDrawSetString(warstats, string);


Pokuasj sada

Ti Cile si mu dao jedno te isto sto je on vec postavio




Balkan Ulice RPG opis servera: Click



-Tutorial za mijesanje ID-ova na vozilima: Click

Možda vam ovo pomogne..
public SaveUSScore()
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%d", USScoresys[USScoreAmmount]);
new File: file2 = fopen("files/usscore.ini", io_write);
fwrite(file2, coordsstring);
fclose(file2);
return 1;
}

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


new string[128];
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);