setnumber cmd
#1

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
Reply
#2

bump
Reply
#3

I don't know if this will work, but try it.

pawn Код:
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.");
}
}
}
Just something quick I made, don't know if it'll work.
Reply
#4

It works of course, but it checks only online players numbers, I need to check offline players But thanks anyway
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)