Callback don't works
#1

Hey guys. I've got a problem , dunno why ^^. My callback , OnPlayerDeath , don't works anymore ... Does somebady knows why?

Here's the begin of callback
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new name[MAX_PLAYER_NAME];
    new string[256];
    new playercash;
    new victimteam;
    new Float:px,Float:py,Float:pz;
    new killerteam;
    new killer[MAX_PLAYER_NAME];
   
    IsInShamal[playerid] = 0;

    victimteam = gTeam[playerid];
    killerteam = gTeam[killerid];
    gPlayerSpawned[playerid] = 0;
    GetPlayerName(playerid, name, sizeof(name));
    PlayerInfo[playerid][pLocal] = 255;
    GetPlayerPos(playerid, px, py, pz);
    PlayerInfo[playerid][pTrain] = 0;
   
    SendDeathMessage(killerid, playerid, reason);
    FadePlayerScreen(playerid, 0xE60000FF, 6, 192);
    GameTextForPlayer(playerid, "~n~~n~~n~~n~~r~Wasted", 2000, 2);
When i die , he don't show me the Death Message , the FadePlayerScreen , the GameTextForPlayer ...

Why?

* Maybe because i use PLAYER_STATE_WASTED under OnPlayerStateChange ?
Reply
#2

for what u use that state on the change()?
Reply
#3

when a Cop kills a civil / a faction member , to jail it
Reply
#4

Maybe because you're not fucking returning any value, or even closing it?
Код:
 return 1;
}
That's what your code is missing, at least for what I see from here.
Reply
#5

Quote:
Originally Posted by GtaChile!
Maybe because you're not fucking returning any value, or even closing it?
Код:
 return 1;
}
That's what your code is missing, at least for what I see from here.
Obviously he has done that already, Otherwise it wouldnt compile and he wouldnt have been able to test it to know that it didnt work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)