[HELP] /cancel backup
#1

So I made a code when I accept request for backup from some player and if I want to cancel it I must type /cancel backup but for some reason code doesn't work at all I mean cp don't disable and variables don't reset and the player who request backup doesn't get message where it says that player who accept his backup is canceled it. I inspect code in detail but from my stand of view everything seems fine can someone tell me where I made mistake ? Thank you and I hope you understand what I'm trying to say.

pawn Код:
else if(!strcmp(name,"backup",true))
    {
        if(CallForBackup < 999)
        {
            if(BackupCallTime[playerid] > 0)
            {
                BackupCallTime[playerid] = 0;
                AcceptBackup[playerid] = 999;
                DisablePlayerCheckpoint(playerid);
            }
        }
        else
        {
            if(IsPlayerConnected(CallForBackup))
            {
                if(CallForBackup == playerid)
                {
                    new string1[128],sendername[MAX_PLAYER_NAME];
                    GetPlayerName(playerid,sendername,sizeof(sendername));
                    format(string1,sizeof(string1),"*%s is canceled your request for backup.",sendername);
                    SendClientMessage(CallForBackup,TEAM_BLUE_COLOR,string);
                    CallForBackup = 999;
                }
            }
        }
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)