Phone system /sms
#2

I don't really get the meaning of your function code wise.

You pass a playerid as a parameter which you don't use in your function at all, create a variable "pid" inside that function which you neither use. There are two ways numbers are being stored (at least I guess) -> pi[playerid][pNumber] and dini_Int(file,"Number") allthough during session you only need one of them.

In your sms command, you declare in the beginning a variable called pid which is by default 0.

Using GetPlayerName(pid,name2,sizeof(name2)); stores the playername of id 0 in name2.

I stop here for now and simply ask, is all that on purpose?
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)