15.02.2013, 16:01
Hello, I making the setnumber command which changes the phone number of player and I want to know how to check if the provided number is already in use. I using y_ini for saving player stats. Thanks
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pPhone] == number)
{
SendClientMessage(playerid, COLOR_WHITE, "This phonenumber is already in use.");
}
}
}