Problem with TextDraw. It appears on the screen without being called
#1

Dear friends! I have a problem and Chato in TextDraw, it appears on the screen without being called. This TextDraw is to appear only in the start screen and disappear when the player is playing.

Image Home screen:
[Image: sa-mp-000.png]

OnPlayerRequestClass (This place is also Dialog Password)
pawn Код:
TextDrawShowForPlayer(playerid, TextLogin0);
    TextDrawShowForPlayer(playerid, TextLogin1);
    TextDrawShowForPlayer(playerid, TextLogin2);
    TextDrawShowForPlayer(playerid, TextLogin3);
    TextDrawShowForPlayer(playerid, TextLogin4);
    TextDrawShowForPlayer(playerid, TextLogin5);
    TextDrawShowForPlayer(playerid, TextLogin6);
    TextDrawShowForPlayer(playerid, TextLogin7);
    TextDrawShowForPlayer(playerid, TextLogin8);
After the player enter your password. The TextDraw disappear from the screen, how to actually happen.

Game Screen:
[Image: sa-mp-001.png]

OnPlayerSpawn:
pawn Код:
TextDrawHideForPlayer(playerid, TextLogin0);
    TextDrawHideForPlayer(playerid, TextLogin1);
    TextDrawHideForPlayer(playerid, TextLogin2);
    TextDrawHideForPlayer(playerid, TextLogin3);
    TextDrawHideForPlayer(playerid, TextLogin4);
    TextDrawHideForPlayer(playerid, TextLogin5);
    TextDrawHideForPlayer(playerid, TextLogin6);
    TextDrawHideForPlayer(playerid, TextLogin7);
    TextDrawHideForPlayer(playerid, TextLogin8);
Playing for 30 seconds. A TextDraw the Home screen reappears on the screen.

Error time:
[Image: sa-mp-002.png]

Is TextDraw is not called! But it appears anyway!
How to solve?
Reply
#2

http://pastebin.com/uV4NPLGG

By the way, scroll down a bit, there is a few comments. (i mean in pastebin)

Just a small update. - http://pastebin.com/e9pKVGf5
Reply
#3

The changes were Placed, the code was compiled without error, but the error persists.

Now Faster, playing just 10 seconds, the error is already happening.
Reply
#4

Change
Код:
        TextDrawHideForPlayer(playerid, TextLogin0);
	TextDrawHideForPlayer(playerid, TextLogin1);
	TextDrawHideForPlayer(playerid, TextLogin2);
	TextDrawHideForPlayer(playerid, TextLogin3);
	TextDrawHideForPlayer(playerid, TextLogin4);
	TextDrawHideForPlayer(playerid, TextLogin5);
	TextDrawHideForPlayer(playerid, TextLogin6);
	TextDrawHideForPlayer(playerid, TextLogin7);
	TextDrawHideForPlayer(playerid, TextLogin8);
to
Код:
        PlayerTextDrawDestroy(playerid, TextLogin0);
	PlayerTextDrawDestroy(playerid, TextLogin1);
	PlayerTextDrawDestroy(playerid, TextLogin2);
	PlayerTextDrawDestroy(playerid, TextLogin3);
	PlayerTextDrawDestroy(playerid, TextLogin4);
	PlayerTextDrawDestroy(playerid, TextLogin5);
	PlayerTextDrawDestroy(playerid, TextLogin6);
	PlayerTextDrawDestroy(playerid, TextLogin7);
	PlayerTextDrawDestroy(playerid, TextLogin8);
Are you sure you have no other textdraws or timers set?
Reply
#5

Quote:
Originally Posted by Affan
Посмотреть сообщение
Код:
        PlayerTextDrawDestroy
No. Re-creating a textdraw when it's just going to show the same thing is extremely counter productive.

@OP: make sure all your textdraw variables are properly initialized using Text:INVALID_TEXT_DRAW and that you set the variable to that value should the textdraw be destroyed somewhere.
Reply
#6

Quote:
Originally Posted by Affan
Посмотреть сообщение
Change

Are you sure you have no other textdraws or timers set?
The exchange codes me resulted in this:
pawn Код:
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity9.pwn(14368) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity9.pwn(14369) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity9.pwn(14370) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity9.pwn(14371) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity9.pwn(14372) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity9.pwn(14373) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity9.pwn(14374) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity9.pwn(14375) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity9.pwn(14376) : warning 213: tag mismatch
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


9 Warnings.
Place want me here every Referring Codes to TextDrawn?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)