21.04.2018, 18:15
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
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");