Phone system /sms
#4

Well you just mixed up some things I guess.

If you store each player number in a variable pi[playerid][pNumber] just use that as reference, you don't need to compare the file data additionally (if I assume correctly and you store the number of each player file in that variable upon OnPlayerConnect).

Just try something like this:

Код:
NumberUsedT(number)
{
	for(new i = 0; i < MAX_PLAYERS; i ++)
		if(number==pi[i][pNumber])
			return 1;
	return 0;
}
(( I can only assume how your datamanagement / variables are set up, hence - adjust as necessary.
Reply


Messages In This Thread
Phone system /sms - by Naxix - 16.05.2010, 12:33
Re: Phone system /sms - by juice.j - 16.05.2010, 12:57
Re: Phone system /sms - by Naxix - 16.05.2010, 13:00
Re: Phone system /sms - by juice.j - 16.05.2010, 13:05
Re: Phone system /sms - by Naxix - 16.05.2010, 13:10
Re: Phone system /sms - by juice.j - 16.05.2010, 13:13

Forum Jump:


Users browsing this thread: 1 Guest(s)