30.08.2014, 19:28
I have made new some global variables
Then i wrote my player textdraws OnPlayerConnect.
Now im trying to give a player a textdraw if his team is 1 or 0
but im getting errors.
error 017: undefined symbol "UkraineTextdraw"
pawn Код:
new PlayerText:RussiaTextdraw[MAX_PLAYERS];
new PlayerText:UkrianeTextdraw[MAX_PLAYERS];
pawn Код:
//Russia Textdraw
RussiaTextdraw[playerid] = CreatePlayerTextDraw(playerid, 52.799995, 421.119934, "Russia");
PlayerTextDrawLetterSize(playerid, RussiaTextdraw[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, RussiaTextdraw[playerid], 1);
PlayerTextDrawColor(playerid, RussiaTextdraw[playerid], -16776961);
PlayerTextDrawSetShadow(playerid, RussiaTextdraw[playerid], 0);
PlayerTextDrawSetOutline(playerid, RussiaTextdraw[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, RussiaTextdraw[playerid], 51);
PlayerTextDrawFont(playerid, RussiaTextdraw[playerid], 2);
PlayerTextDrawSetProportional(playerid, RussiaTextdraw[playerid], 1);
//End of Russia Textdraw.
//Ukraine textdraw
UkrianeTextdraw[playerid] = CreatePlayerTextDraw(playerid, 52.000007, 424.106781, "UKRAINE");
PlayerTextDrawLetterSize(playerid, UkrianeTextdraw[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, UkrianeTextdraw[playerid], 1);
PlayerTextDrawColor(playerid, UkrianeTextdraw[playerid], 65535);
PlayerTextDrawSetShadow(playerid, UkrianeTextdraw[playerid], 0);
PlayerTextDrawSetOutline(playerid, UkrianeTextdraw[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, UkrianeTextdraw[playerid], 51);
PlayerTextDrawFont(playerid, UkrianeTextdraw[playerid], 1);
PlayerTextDrawSetProportional(playerid, UkrianeTextdraw[playerid], 1);
//End of UkraineTextdraw
but im getting errors.
pawn Код:
if(Player[playerid][pTeam] == 1)
{
SetPlayerPos(playerid,-250.8406,2598.8433,62.8582);
SetPlayerColor(playerid,0x0000FFFF);
SetPlayerTeam(playerid,1);
PlayerTextDrawHide(playerid,PlayerText:UkraineTextdraw);
{