Textdraw not showing ingame -
tryingtoscript - 21.12.2012
The text draw is not showing in game,
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
// In OnGameModeInit prefferably, we procced to create our textdraws:
Textdraw0 = TextDrawCreate(672.000000, 457.000000, "New Textdraw");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, -10.09999

;
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, -42.000000, -19.000000);
Textdraw1 = TextDrawCreate(153.000000, 294.000000, "Miami-Life Roleplay V2.2");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.810000, 6.300000);
TextDrawColor(Textdraw1, -16776961);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
Textdraw2 = TextDrawCreate(8.000000, 361.000000, "Top Donators; None at this point, be the first!");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.500000, 1.600000);
TextDrawColor(Textdraw2, 16777215);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
Textdraw3 = TextDrawCreate(661.000000, -4.000000, "New Textdraw");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 1);
TextDrawLetterSize(Textdraw3, 0.500000, 3.499999);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);
TextDrawUseBox(Textdraw3, 1);
TextDrawBoxColor(Textdraw3, 255);
TextDrawTextSize(Textdraw3, 0.000000, 0.000000);
// You can now use TextDrawShowForPlayer(-ForAll), TextDrawHideForPlayer(-ForAll) and
// TextDrawDestroy functions to show, hide, and destroy the textdraw.
TextDrawShowForPlayer
are all defined under gplayeraccount, what am i doing wrong!?
Re: Textdraw not showing ingame -
JaKe Elite - 21.12.2012
What callback are you using to show the textdraw to player?
Re: Textdraw not showing ingame -
tryingtoscript - 21.12.2012
under gplayeraccount
TextDrawShowForAll(Text:Textdraw0);
TextDrawShowForAll(Text:Textdraw1);
TextDrawShowForAll(Text:Textdraw2);
TextDrawShowForAll(Text:Textdraw3);
Re: Textdraw not showing ingame -
JaKe Elite - 21.12.2012
Can you show me the code?
Re: Textdraw not showing ingame -
tryingtoscript - 21.12.2012
What code, sorry im a noob, please bare with me. ill also +rep you
Re: Textdraw not showing ingame -
M3mPHi$_S3 - 21.12.2012
PHP код:
public OnPlayerConnect(playerid)
{
TextDrawShowForAll (TextDraw0);
TextDrawShowForAll (TextDraw1);
TextDrawShowForAll (TextDraw3);
TextDrawShowForAll (TextDraw4);
return 1;
}
Re: Textdraw not showing ingame -
tryingtoscript - 21.12.2012
Now I am getting this error
C:\Users\Reese\Downloads\Los Santos Streets RolePlay\gamemodes\LSS-RP.pwn(15987) : error 017: undefined symbol "TextDraw0"
C:\Users\Reese\Downloads\Los Santos Streets RolePlay\gamemodes\LSS-RP.pwn(1598

: error 017: undefined symbol "TextDraw1"
C:\Users\Reese\Downloads\Los Santos Streets RolePlay\gamemodes\LSS-RP.pwn(15989) : error 017: undefined symbol "TextDraw3"
C:\Users\Reese\Downloads\Los Santos Streets RolePlay\gamemodes\LSS-RP.pwn(15990) : error 017: undefined symbol "TextDraw4"
C:\Users\Reese\Downloads\Los Santos Streets RolePlay\gamemodes\LSS-RP.pwn(16173) : warning 217: loose indentation
C:\Users\Reese\Downloads\Los Santos Streets RolePlay\gamemodes\LSS-RP.pwn(16174) : warning 217: loose indentation
C:\Users\Reese\Downloads\Los Santos Streets RolePlay\gamemodes\LSS-RP.pwn(22422) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: Textdraw not showing ingame -
tryingtoscript - 21.12.2012
I've tried to compile again and the its the same, anyoone any ideas?
Re: Textdraw not showing ingame -
tryingtoscript - 21.12.2012
I fixxed the errors, and know it wont show, I am trying to use this
http://pastebin.com/xXYLAAj5
Re: Textdraw not showing ingame -
Farrow - 21.12.2012
Textdraws are hard try using GameTextForPlayer