25.03.2018, 12:20
The textdraw not show, is not global textdraw, why don't show and why i have warnings?
Variables !
CODE :
This errors show at OnPlayerSpawn
Variables !
PHP код:
new PlayerText:textdraw2;
new PlayerText:textdraw3;
PHP код:
public OnPlayerConnect(playerid)
{
// WELCOME BACK
textdraw2 = CreatePlayerTextDraw(playerid, 634.500000, 311.187500, "Welcome back");
PlayerTextDrawLetterSize(playerid, textdraw2, 0.400000, 1.600000);
PlayerTextDrawAlignment(playerid, textdraw2, 3);
PlayerTextDrawColor(playerid, textdraw2, -1);
PlayerTextDrawSetShadow(playerid, textdraw2, 0);
PlayerTextDrawSetOutline(playerid, textdraw2, 1);
PlayerTextDrawBackgroundColor(playerid, textdraw2, 255);
PlayerTextDrawFont(playerid, textdraw2, 2);
PlayerTextDrawSetProportional(playerid, textdraw2, 1);
PlayerTextDrawSetShadow(playerid, textdraw2, 0);
textdraw3 = CreatePlayerTextDraw(playerid, 606.000000, 331.312500, "andrei !");
PlayerTextDrawLetterSize(playerid, textdraw3, 0.400000, 1.600000);
PlayerTextDrawAlignment(playerid, textdraw3, 3);
PlayerTextDrawColor(playerid, textdraw3, -1);
PlayerTextDrawSetShadow(playerid, textdraw3, 0);
PlayerTextDrawSetOutline(playerid, textdraw3, -1);
PlayerTextDrawBackgroundColor(playerid, textdraw3, 255);
PlayerTextDrawFont(playerid, textdraw3, 2);
PlayerTextDrawSetProportional(playerid, textdraw3, 1);
PlayerTextDrawSetShadow(playerid, textdraw3, 0);
return 1;
}
PHP код:
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid,textdraw2);
TextDrawShowForPlayer(playerid,textdraw3);
return 1;
}
PHP код:
textdraw.pwn(61) : warning 213: tag mismatch
textdraw.pwn(62) : warning 213: tag mismatch