[Include] ShowInfoForPlayer
#9

Quote:
Originally Posted by [uL]Pottus
View Post
You can actually remove this. Player TD's are destroy automatically on disconnect.

pawn Code:
hook OnPlayerDisconnect(playerid, reason)
{
    PlayerTextDrawDestroy(playerid, InfoText[playerid]);
    return 1;
}
Does it? I'm just asking because, I see something like this on WIKI:

pawn Code:
public OnPlayerConnect(playerid)
{
    pTextdraw[playerid] = CreatePlayerTextDraw(playerid, x, y, "...");
    return 1;
}
 
public OnPlayerDisconnect(playerid, reason)
{
    PlayerTextDrawDestroy(playerid, pTextdraw[playerid]);
    return 1;
}
https://sampwiki.blast.hk/wiki/PlayerTextDrawDestroy

Another myth that I heard is.. we don't have to use array for Player Textdraw, and it's actually works for me without array, so why there's an example with array and destroying in disconnect? Can someone explain it then?
Reply


Messages In This Thread
ShowInfoForPlayer - by Richie© - 11.06.2013, 20:56
Re: ShowInfoForPlayer - by willsuckformoney - 12.06.2013, 04:15
Re: ShowInfoForPlayer - by XtremeR - 12.06.2013, 05:31
Re: ShowInfoForPlayer - by Pottus - 12.06.2013, 06:38
Re: ShowInfoForPlayer - by Lordzy - 12.06.2013, 10:41
Re: ShowInfoForPlayer - by Ballu Miaa - 12.06.2013, 12:12
Re: ShowInfoForPlayer - by Richie© - 12.06.2013, 12:13
Re: ShowInfoForPlayer - by KingHual - 12.06.2013, 13:05
Re: ShowInfoForPlayer - by Riddick94 - 12.06.2013, 13:17
Re: ShowInfoForPlayer - by James Coral - 13.06.2013, 05:44

Forum Jump:


Users browsing this thread: 1 Guest(s)