Textdraw not showing
#10

Quote:
Originally Posted by HY
Посмотреть сообщение
pawn Код:
public OnPlayerConnect(playerid)
{
        new playerid;
        Simple4[playerid] = CreatePlayerTextDraw(playerid, 480.500000, 369.687500, "New Textdraw");
        PlayerTextDrawLetterSize(playerid, Simple4[playerid], 0.449999, 1.600000);
        PlayerTextDrawTextSize(playerid, Simple4[playerid], 127.000000, 126.875000);
        PlayerTextDrawAlignment(playerid, Simple4[playerid], 1);
        PlayerTextDrawColor(playerid, Simple4[playerid], -1);
        PlayerTextDrawBoxColor(playerid, Simple4[playerid], -1);
        PlayerTextDrawSetShadow(playerid, Simple4[playerid], 0);
        PlayerTextDrawSetOutline(playerid, Simple4[playerid], 1);
        PlayerTextDrawFont(playerid, Simple4[playerid], 5);
        PlayerTextDrawBackgroundColor(playerid, Simple4[playerid], 0x00000000);
        PlayerTextDrawSetPreviewModel(playerid, Simple4[playerid], GetPlayerSkin(playerid));
        PlayerTextDrawSetPreviewRot(playerid, Simple4[playerid], 0.000000, 0.000000, 0.000000, 1.000000);
        PlayerTextDrawShow(playerid, Simple4[playerid]);
return 1;
}
pawn Код:
public OnPlayerSpawn(playerid)
{
    PlayerTextDrawShow(playerid, Simple4[playerid]);
    return 1;
}
That will give you warning 219.
Код:
warning 219: local variable "playerid" shadows a variable at a preceding level
You are redefining playerid.
Reply


Messages In This Thread
Textdraw not showing - by bigboy81 - 22.02.2015, 14:16
Re: Textdraw not showing - by ATGOggy - 22.02.2015, 14:37
Re: Textdraw not showing - by AndySedeyn - 22.02.2015, 14:40
Re: Textdraw not showing - by muzammilfreeman - 22.02.2015, 14:44
Re: Textdraw not showing - by ATGOggy - 22.02.2015, 14:51
Re: Textdraw not showing - by AndySedeyn - 22.02.2015, 14:53
Re: Textdraw not showing - by ATGOggy - 22.02.2015, 15:10
Re: Textdraw not showing - by AndySedeyn - 22.02.2015, 15:30
Re: Textdraw not showing - by HY - 22.02.2015, 16:35
Re: Textdraw not showing - by AndySedeyn - 22.02.2015, 16:39

Forum Jump:


Users browsing this thread: 1 Guest(s)