[POMOC] Tekst u kutu ekrana

Započeo [BC]Skakyâ„¢, Novembar 15, 2010, 19:20:18 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Dakle,htio bih nesto sto je vec trazeno ali nije pojasnjeno
Link teme:http://balkan-samp.com/forum/index.php?topic=14800.0
Ja ocu da pise ovo,ja cu si prilagodit da ne pise chilirp...Moj problem je to sto neznam kud ubacit onaj kod koji je Tony Zero napisao u temi!
Help molim vas!

OnGameModeInIt i onda ga showas recimo pod OnPlayerSpawn.


RESPECT 4 EVER: John, GLC,bAndzi, Nikola, Sop, Zoki, Bruno_Venuti, Mele, Luka P,ExtremePower,Wang(neki kineski frajer)

NAJBOLJI CITATI:
Citat: [GF]Alive poslato Jun 24, 2010, 18:20:19 POSLE PODNE
Paizte ljud mozda je KayLoger! ! !
MOJI RADOVI:
[FS]Trofeji

Citat: LordShigi poslato Novembar 15, 2010, 19:35:08 POSLE PODNE
OnGameModeInIt i onda ga showas recimo pod OnPlayerSpawn.
Trebam li napraviti ovo OnPlayerSpawn ako ce to biti textdraw koji ce uvjek biti u kutu ekrana i na njemu ce pisati eWorld RPG?

Pa mozes OnPlayerConnect, ili OnPlayerRequestSpawn ili OnPlayerSpawn. Najbolje pod connect.


RESPECT 4 EVER: John, GLC,bAndzi, Nikola, Sop, Zoki, Bruno_Venuti, Mele, Luka P,ExtremePower,Wang(neki kineski frajer)

NAJBOLJI CITATI:
Citat: [GF]Alive poslato Jun 24, 2010, 18:20:19 POSLE PODNE
Paizte ljud mozda je KayLoger! ! !
MOJI RADOVI:
[FS]Trofeji

Nisam stavio pod nista ono onplayer nego samo OngameModeInit i evo errora:
C:\Users\Hrvoje\Desktop\Ravens\Ravens\gamemodes\larp.pwn(20705) : warning 219: local variable "Textdraw0" shadows a variable at a preceding level
C:\Users\Hrvoje\Desktop\Ravens\Ravens\gamemodes\larp.pwn(20706) : warning 219: local variable "Textdraw1" shadows a variable at a preceding level
C:\Users\Hrvoje\Desktop\Ravens\Ravens\gamemodes\larp.pwn(20707) : warning 219: local variable "Textdraw2" shadows a variable at a preceding level
C:\Users\Hrvoje\Desktop\Ravens\Ravens\gamemodes\larp.pwn(20736) : warning 217: loose indentation
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


4 Warnings.

Cobra 11


Samo promjeni imena tih textdrawova koje si dodao i sve ce biti 5.


RESPECT 4 EVER: John, GLC,bAndzi, Nikola, Sop, Zoki, Bruno_Venuti, Mele, Luka P,ExtremePower,Wang(neki kineski frajer)

NAJBOLJI CITATI:
Citat: [GF]Alive poslato Jun 24, 2010, 18:20:19 POSLE PODNE
Paizte ljud mozda je KayLoger! ! !
MOJI RADOVI:
[FS]Trofeji

kada mijenjas imena tih textdrawawa pazi da im ne stavis ime TextDrawa koje vec ima...




//On top of script:
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;

//In OnGameModeInit or any other place, we procced to create our textdraw:
Textdraw0 = TextDrawCreate(498.000000,13.000000,"ChiliRP");
Textdraw1 = TextDrawCreate(1.000000,1.000000," ");
Textdraw2 = TextDrawCreate(586.000000,13.000000,"1.1");
TextDrawAlignment(Textdraw0,0);
TextDrawAlignment(Textdraw1,0);
TextDrawAlignment(Textdraw2,0);
TextDrawBackgroundColor(Textdraw0,0x000000ff);
TextDrawBackgroundColor(Textdraw1,0x000000ff);
TextDrawBackgroundColor(Textdraw2,0x000000ff);
TextDrawFont(Textdraw0,3);
TextDrawLetterSize(Textdraw0,0.699999,1.100000);
TextDrawFont(Textdraw1,3);
TextDrawLetterSize(Textdraw1,1.000000,1.000000);
TextDrawFont(Textdraw2,3);
TextDrawLetterSize(Textdraw2,1.000000,1.000000);
TextDrawColor(Textdraw0,0xff0000ff);
TextDrawColor(Textdraw1,0xffffffff);
TextDrawColor(Textdraw2,0x00ffff33);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetOutline(Textdraw1,1);
TextDrawSetOutline(Textdraw2,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetProportional(Textdraw1,1);
TextDrawSetProportional(Textdraw2,1);
TextDrawSetShadow(Textdraw0,1);
TextDrawSetShadow(Textdraw1,1);

Evo pa probajte rijesit waring :D

evo
//On top of script:
new Text:Textdraw611;
new Text:Textdraw612;
new Text:Textdraw613;

//In OnGameModeInit or any other place, we procced to create our textdraw:
Textdraw611 = TextDrawCreate(498.000000,13.000000,"ChiliRP");
Textdraw612 = TextDrawCreate(1.000000,1.000000," ");
Textdraw613 = TextDrawCreate(586.000000,13.000000,"1.1");
TextDrawAlignment(Textdraw611,0);
TextDrawAlignment(Textdraw612,0);
TextDrawAlignment(Textdraw613,0);
TextDrawBackgroundColor(Textdraw611,0x000000ff);
TextDrawBackgroundColor(Textdraw612,0x000000ff);
TextDrawBackgroundColor(Textdraw613,0x000000ff);
TextDrawFont(Textdraw611,3);
TextDrawLetterSize(Textdraw611,0.699999,1.100000);
TextDrawFont(Textdraw612,3);
TextDrawLetterSize(Textdraw612,1.000000,1.000000);
TextDrawFont(Textdraw613,3);
TextDrawLetterSize(Textdraw613,1.000000,1.000000);
TextDrawColor(Textdraw611,0xff0000ff);
TextDrawColor(Textdraw612,0xffffffff);
TextDrawColor(Textdraw613,0x00ffff33);
TextDrawSetOutline(Textdraw611,1);
TextDrawSetOutline(Textdraw612,1);
TextDrawSetOutline(Textdraw613,1);
TextDrawSetProportional(Textdraw611,1);
TextDrawSetProportional(Textdraw612,1);
TextDrawSetProportional(Textdraw613,1);
TextDrawSetShadow(Textdraw611,1);
TextDrawSetShadow(Textdraw612,1);