07.03.2011, 06:14
Hello guys I got a weird problem, really don't know what the fuck is wrong with this..
Why does this stop my OnPlayerDeath callback ?
I mean, all functions after this aren't called, and this code don't work : /
Same thing with " PlayerData[killerid][Kills]++;" but "PlayerData[playerid][Deaths]++;" is working ...
Why does this stop my OnPlayerDeath callback ?
Код:
if(VigilantePlayer[killerid]==1)
{
if(GetPlayerWeapon(killerid)==25)
{
VigilanteShotgun[killerid]++;
}
if(IsPlayerInAnyVehicle(playerid))
{
if(VigilanteCar[playerid]==1)
{
VigilanteSmash[killerid]++;
}
}
}
Same thing with " PlayerData[killerid][Kills]++;" but "PlayerData[playerid][Deaths]++;" is working ...


