SendDeathMessage @ OnPlayerConnect
#1

Hey everyone, each time I connect this code never appears to show the player(s) in-game not sure why

pawn Код:
public OnPlayerConnect(playerid)
{
    if(!IsPlayerConnected(playerid)) return 1;
    printf("Passed");
    SendDeathMessage(playerid, INVALID_PLAYER_ID, 200);
    printf("Passed");
    return 1;
}
So when I connect it wont appear, do I need to be spawned? The disconnect icon seems to work though not this for some reason. I tried to do everything I possibly can to fix this. No hope. Any tips/help?
Reply
#2

Код:
SendDeathMessage(INVALID_PLAYER_ID,playerid,200);
There you go, just fixed it for ya.
Reply
#3

Thanks so much, I tried something like that but it didn't work

+5 from me
Reply
#4

No problem at all. Glad I helped you :3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)