16.05.2010, 12:57
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?
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?

