[POMOC] TextDraw

Započeo Vitez El arambasa, Novembar 12, 2012, 09:43:56 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: Moja od 0 FR/DM
Detaljan opis problema: Pa ako neko moze da mi uradi da mi sa desne strane pisu Ubistva i Smrti , ja sam napravio textdraw (dole ce biti) ali ne znam da uradim da se povecavaju ubistva i smrti!
Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno): //

textdraw :

// Create the textdraws:
Textdraw0 = TextDrawCreate(500.000000, 110.000000, "Ubistva :");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, 1.500000);
TextDrawColor(Textdraw0, -16776961);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);

Textdraw1 = TextDrawCreate(500.000000, 127.000000, "Smrti :");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.500000, 1.500000);
TextDrawColor(Textdraw1, -16776961);
TextDrawSetOutline(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);

Textdraw2 = TextDrawCreate(494.000000, 100.000000, "-------------------");
TextDrawBackgroundColor(Textdraw2, 16711935);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
TextDrawColor(Textdraw2, -65281);
TextDrawSetOutline(Textdraw2, 1);
TextDrawSetProportional(Textdraw2, 1);

Textdraw3 = TextDrawCreate(491.000000, 107.000000, "|");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 1);
TextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);

Textdraw4 = TextDrawCreate(494.000000, 139.000000, "-------------------");
TextDrawBackgroundColor(Textdraw4, 16711935);
TextDrawFont(Textdraw4, 1);
TextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
TextDrawColor(Textdraw4, -65281);
TextDrawSetOutline(Textdraw4, 1);
TextDrawSetProportional(Textdraw4, 1);

Textdraw5 = TextDrawCreate(491.000000, 126.000000, "|");
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 1);
TextDrawLetterSize(Textdraw5, 0.500000, 1.000000);
TextDrawColor(Textdraw5, -1);
TextDrawSetOutline(Textdraw5, 0);
TextDrawSetProportional(Textdraw5, 1);
TextDrawSetShadow(Textdraw5, 1);

Ne mozes tako,  moras drugaciji textdraw, na vrhnew Text:Ubistva[MAX_PLAYERS];, onda dodas pod OnPlayerSpawn TextDrawShowForPlayer(playerid, Ubistva[playerid]); onda dodas pod OnGameModeInit SetTimer("Ubistva_Update", 500, 1); for(new i=0; i<MAX_PLAYERS; i++)
{
Ubistva[i] = TextDrawCreate(500.000000, 110.000000, " ");
TextDrawAlignment(Ubistva[i], 3);
TextDrawBackgroundColor(Ubistva[i], 255);
TextDrawFont(Ubistva[i], 1);
TextDrawLetterSize(Ubistva[i], 0.500000, 1.500000);
TextDrawColor(Ubistva[i], -16776961);
TextDrawSetOutline(Ubistva[i], 1);
TextDrawSetProportional(Ubistva[i], 1);
onda napravis ovako: na vrh forward Ubistva_Update(); i onda dole uradis public public Ubistva_Update()
{
for(new y=0; y<MAX_PLAYERS; y++){
new blaeks[50];
format(ssstring, sizeof(ssstring),"Ubistva: %d",PlayerInfo[y][pUbistva]);
        TextDrawSetString(Ubistva[y], blaeks);}
return 1;
}
nisam testo, zato probaj pa javi  :)

Eror
C:\Documents and Settings\Bogdan\My Documents\Downloads\FreeRom  DM Server v2\gamemodes\dm.pwn(3025) : error 017: undefined symbol "ssstring"
C:\Documents and Settings\Bogdan\My Documents\Downloads\FreeRom  DM Server v2\gamemodes\dm.pwn(3025) : error 017: undefined symbol "ssstring"
C:\Documents and Settings\Bogdan\My Documents\Downloads\FreeRom  DM Server v2\gamemodes\dm.pwn(3025) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Bogdan\My Documents\Downloads\FreeRom  DM Server v2\gamemodes\dm.pwn(3025) : fatal error 107: too many error messages on one line



linija
format(ssstring, sizeof(ssstring),"Ubistva: %d",PlayerInfo[y][pUbistva]);

Zameni je sa format(blaeks, sizeof(blaeks),"Ubistva: %d",PlayerInfo[y][pUbistva]);