CMD:sms
#9

Your foreach loop is what is checking each players phone number against the one that you have entered.

If it checks all the players numbers and can't find the number entered, it will exit the foreach loop and you're just telling it to return true.

If you want to make it output a message, simply edit it to this

Код:
    foreach(new i: Player) 
    { 
        if(pInfo[i][Telefon] == number) 
        { 
            SendClientMessage(i,-1, string2); 
            SendClientMessage(i,-1, string); 
            break; 
        } 
    } 
    else SendClientMessage(playerid, -1, "Couldn't send your message");
Reply


Messages In This Thread
CMD:sms - by Zeus666 - 21.04.2018, 09:09
Re: CMD:sms - by std - 21.04.2018, 14:30
Re: CMD:sms - by JesterlJoker - 21.04.2018, 17:21
Re: CMD:sms - by Zeus666 - 21.04.2018, 17:46
Re: CMD:sms - by JesterlJoker - 21.04.2018, 17:51
Re: CMD:sms - by Zeus666 - 21.04.2018, 17:55
Re: CMD:sms - by JesterlJoker - 21.04.2018, 17:59
Re: CMD:sms - by Zeus666 - 21.04.2018, 18:11
Re: CMD:sms - by ItsRobinson - 21.04.2018, 18:15
Re: CMD:sms - by Zeus666 - 21.04.2018, 18:19

Forum Jump:


Users browsing this thread: 1 Guest(s)