Black Backround - OnPlayerConnect -
Eminem 2ka9 - 15.03.2013
I want a completely 100% black backround on OnPlayerConnect, how is this done?
Thanks.
Re: Black Backround - OnPlayerConnect -
Jstylezzz - 15.03.2013
With Textdraws.
Create a black textdraw over the whole screen, show it on OnPlayerConnect, and hide it on OnPlayerSpawn.
Re: Black Backround - OnPlayerConnect -
Eminem 2ka9 - 15.03.2013
Has anyone got this text draw for me? I don't have the time to download a text draw editor.
Re: Black Backround - OnPlayerConnect -
Bicentric - 15.03.2013
You need to create the 'BlackScreen' variable, but this set-up here will make it a black screen.
pawn Код:
BlackScreen[playerid] = CreatePlayerTextDraw(playerid, 0.0, 0.0, "_");
PlayerTextDrawFont(playerid, BlackScreen[playerid], 1);
PlayerTextDrawLetterSize(playerid, BlackScreen[playerid], 0.0, 50.0);
PlayerTextDrawUseBox(playerid, BlackScreen[playerid], true);
PlayerTextDrawBoxColor(playerid, BlackScreen[playerid], 0x000000FF);
Re: Black Backround - OnPlayerConnect -
Eminem 2ka9 - 15.03.2013
Quote:
Originally Posted by Bicentric
You need to create the 'BlackScreen' variable, but this set-up here will make it a black screen.
BlackScreen[playerid] = CreatePlayerTextDraw(playerid, 0.0, 0.0, "_");
PlayerTextDrawFont(playerid, BlackScreen[playerid], 1);
PlayerTextDrawLetterSize(playerid, BlackScreen[playerid], 0.0, 50.0);
PlayerTextDrawUseBox(playerid, BlackScreen[playerid], true);
PlayerTextDrawBoxColor(playerid, BlackScreen[playerid], 0x000000FF);[/pawn]
|
Thanks, but i got 4 errors when attempting that.
pawn Код:
error 028: invalid subscript (not an array or too many subscripts): "BlackScreen"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
This is the line:
pawn Код:
BlackScreen[playerid] = CreatePlayerTextDraw(playerid, 0.0, 0.0, "_");
Re: Black Backround - OnPlayerConnect -
Jstylezzz - 15.03.2013
new Text:BlackScreen[MAX_PLAYERS];
Re: Black Backround - OnPlayerConnect -
Vince - 15.03.2013
Why do you even need that MAX_PLAYERS shizzle? It's a static textdraw that doesn't change. Why waste 499 textdraws?
Re: Black Backround - OnPlayerConnect -
Eminem 2ka9 - 15.03.2013
I added MAX_PLAYERS and that seemed to lessen the problems, now i only receive 5 warnings, such as the following.
pawn Код:
warning 213: tag mismatch
(1633) : warning 213: tag mismatch
(1634) : warning 213: tag mismatch
(1635) : warning 213: tag mismatch
(1636) : warning 213: tag mismatch
For all of these lines:
pawn Код:
BlackScreen[playerid] = CreatePlayerTextDraw(playerid, 0.0, 0.0, "_");
PlayerTextDrawFont(playerid, BlackScreen[playerid], 1);
PlayerTextDrawLetterSize(playerid, BlackScreen[playerid], 0.0, 50.0);
PlayerTextDrawUseBox(playerid, BlackScreen[playerid], true);
PlayerTextDrawBoxColor(playerid, BlackScreen[playerid], 0x000000FF);
Re: Black Backround - OnPlayerConnect -
DiGiTaL_AnGeL - 15.03.2013
And also use a timer that sends every 10ms(or change it) an empty message. It looks awful with the text on it.
Re: Black Backround - OnPlayerConnect -
Eminem 2ka9 - 16.03.2013
I would.. but the current system is not working.
I'm getting 4 warnings. How do i solve them?