[Ajuda] Callback sendo chamada 2 vezes.
#3

Quote:
Originally Posted by zSuYaNw
Посмотреть сообщение
Faca debug!

pawn Код:
//<?
public OnPlayerSpawn(playerid)
{
    AntiDeAMX();

        printf("after: %d", pTeam[playerid]);
        if(pTeam[playerid] == TIME_1) {
            GivePlayerWeapon(playerid,25,100);
            GivePlayerWeapon(playerid,31,120);
            GivePlayerWeapon(playerid,29,80);
            GivePlayerWeapon(playerid,16,3);
        }
        else if(pTeam[playerid] == TIME_2) {
            GivePlayerWeapon(playerid,29,80);
            GivePlayerWeapon(playerid,30,150);
            GivePlayerWeapon(playerid,24,100);
            GivePlayerWeapon(playerid,27,85);
        }
        else if(pTeam[playerid] == TIME_3) {
            GivePlayerWeapon(playerid,29,80);
            GivePlayerWeapon(playerid,26,100);
            GivePlayerWeapon(playerid,14,1);
            GivePlayerWeapon(playerid,18,5);

        }
        else if(pTeam[playerid] == TIME_4) {
            GivePlayerWeapon(playerid,24,100);
            GivePlayerWeapon(playerid,31,120);
            GivePlayerWeapon(playerid,27,80);
            GivePlayerWeapon(playerid,16,3);
        }
    if(PlayerInfo[playerid][Spec] == 0) {
        //gAntiSpawnKillTimer[playerid] = SetTimerEx("OnAntiSpawnKillExpire", ANIT_SPAWNKILL_TIME * 1000, false, "i", playerid);
        SetPlayerHealth(playerid, cellmax);
        SendClientMessage(playerid,cor_laranja,"Ant sk ativado!");
        SetPlayerChatBubble(playerid, "Protegido Anti-Spawnkill", -1, 25.0, ANIT_SPAWNKILL_TIME * 1000);//the label over head
    }
    printf("before: %d", pTeam[playerid]);
    return 1;
}
[11:51:41] after: 1
[11:51:41] before: 1
[11:51:41] after: 1
[11:51:41] before: 1
Reply


Messages In This Thread
Callback sendo chamada 2 vezes. - by s4kuL - 10.07.2015, 14:38
Re: Callback sendo chamada 2 vezes. - by zSuYaNw - 10.07.2015, 14:46
Re: Callback sendo chamada 2 vezes. - by s4kuL - 10.07.2015, 14:51
Re: Callback sendo chamada 2 vezes. - by zSuYaNw - 10.07.2015, 14:52
Re: Callback sendo chamada 2 vezes. - by s4kuL - 10.07.2015, 14:53
Re: Callback sendo chamada 2 vezes. - by Jimmmy - 10.07.2015, 15:00
Re: Callback sendo chamada 2 vezes. - by s4kuL - 10.07.2015, 15:02
Re: Callback sendo chamada 2 vezes. - by Jimmmy - 10.07.2015, 15:10
Re: Callback sendo chamada 2 vezes. - by s4kuL - 10.07.2015, 16:22
Re: Callback sendo chamada 2 vezes. - by zSuYaNw - 10.07.2015, 16:48

Forum Jump:


Users browsing this thread: 2 Guest(s)