Skripta koju koristim:BU
Detaljan opis problema: Kako da ubacim textdraw u server ? Koristim Textdraw Editor v1.0 RC2! Unapred Hvala !!!
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
P.S: Evo kada sam uradio textdraw ovako mi pise:
// TextDraw developed using Zamaroht's Textdraw Editor 1.0
// On top of script:
new Text:Textdraw0;
// In OnGameModeInit prefferably, we procced to create our textdraws:
Textdraw0 = TextDrawCreate(495.000000, 98.000000, "B-S By Johnny");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, 65535);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 0);
TextDrawSetShadow(Textdraw0, 1);
// You can now use TextDrawShowForPlayer(-ForAll), TextDrawHideForPlayer(-ForAll) and
// TextDrawDestroy functions to show, hide, and destroy the textdraw.
Pa dobro si uradio samo meni bi bilo ljepše kad bi ovako uradio
CitatTextDrawFont(Textdraw0,0)
Znam i ja da sam dobro uradio ;D , ali kako da ja to ubacim na server?
Citat: Shone poslato Jun 18, 2011, 16:19:47 POSLE PODNE
Znam i ja da sam dobro uradio ;D , ali kako da ja to ubacim na server?
To dodas pod OnGameModeInit
Textdraw0 = TextDrawCreate(495.000000, 98.000000, "B-S By Johnny");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, 65535);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 0);
TextDrawSetShadow(Textdraw0, 1);
A ovo dodas pod new
new Text:Textdraw0;Ako vec imas Textdraw0 onda promeni to u neko drugo ime.
I da bi ti to pokazao svima koristi ovo
TextDrawShowForAll(Textdraw0); A to mozes dodati pod public OnPlayerConnect jer mi nisi objasnio gde hoces da ti pokaze to da li hoces celo vreme...
C:\Users\igicom\Desktop\BS\pawno\include\streamer.inc(408) : warning 202: number of arguments does not match definition
C:\Users\igicom\Desktop\BS\pawno\include\JunkBuster.inc(3240) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")
C:\Users\igicom\Desktop\BS\gamemodes\BS-RP.pwn(666) : error 021: symbol already defined: "Textdraw0"
C:\Users\igicom\Desktop\BS\gamemodes\BS-RP.pwn(25258) : error 028: invalid subscript (not an array or too many subscripts): "Textdraw0"
C:\Users\igicom\Desktop\BS\gamemodes\BS-RP.pwn(25258) : warning 215: expression has no effect
C:\Users\igicom\Desktop\BS\gamemodes\BS-RP.pwn(25258) : error 001: expected token: ";", but found "]"
C:\Users\igicom\Desktop\BS\gamemodes\BS-RP.pwn(25258) : error 029: invalid expression, assumed zero
C:\Users\igicom\Desktop\BS\gamemodes\BS-RP.pwn(25258) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Citat: Shone poslato Jun 18, 2011, 16:34:53 POSLE PODNE
C:\Users\igicom\Desktop\BS\pawno\include\streamer.inc(408) : warning 202: number of arguments does not match definition
C:\Users\igicom\Desktop\BS\pawno\include\JunkBuster.inc(3240) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")
C:\Users\igicom\Desktop\BS\gamemodes\BS-RP.pwn(666) : error 021: symbol already defined: "Textdraw0"
C:\Users\igicom\Desktop\BS\gamemodes\BS-RP.pwn(25258) : error 028: invalid subscript (not an array or too many subscripts): "Textdraw0"
C:\Users\igicom\Desktop\BS\gamemodes\BS-RP.pwn(25258) : warning 215: expression has no effect
C:\Users\igicom\Desktop\BS\gamemodes\BS-RP.pwn(25258) : error 001: expected token: ";", but found "]"
C:\Users\igicom\Desktop\BS\gamemodes\BS-RP.pwn(25258) : error 029: invalid expression, assumed zero
C:\Users\igicom\Desktop\BS\gamemodes\BS-RP.pwn(25258) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Pa rekao sam ti da promenis ako je Textdraw0 ti stavi npr ovako da ti izgleda
Johhny0 = TextDrawCreate(495.000000, 98.000000, "B-S By Johnny");
TextDrawBackgroundColor(Johhny0, 255);
TextDrawFont(Johhny0, 1);
TextDrawLetterSize(Johhny0, 0.500000, 1.000000);
TextDrawColor(Johhny0, 65535);
TextDrawSetOutline(Johhny0, 0);
TextDrawSetProportional(Johhny0, 0);
TextDrawSetShadow(Johhny0, 1);
i
new Text:Johhny0;
TextDrawShowForAll(Johhny0); Samo zameni sa ovim sto si ubacio ;)
Ljubi te majka RADI!! Hvala ti puno!