CMD:sms
#4

Quote:
Originally Posted by JesterlJoker
Посмотреть сообщение
This might sound sarcastic and blunt but the function you copied already shows it all

just a little bit explaining though

sscanf's u parameter is explained this way.



sscanf's i or d parameter is explained this way.



now your "targetid" is the best explanation I could use as the targetid, it explains itself

Target ID which is the targetted player id on the pm CMD

now you want to target the players phone number

you can either use the Players ID as a Target ID then use it to get the phone number, which is not how phone works, or you can use that Target ID as an integer variable to hold the phone number and use it to send the message to the player

u usage would be

PHP код:
if(sscanf(params"us[32]"targetidstring)) return SCM blah blah
SendClientMessage
(playerid, -1string); 
the d usage would be

PHP код:
if(sscanf(params"ds[32]"targetidstring)) return SCM blah blah
new phonetarget;
foreach(new 
Player)
{
      if(
targetid == PlayerData[i][phonenumber]) phonetraget i; break;
}
SCM(phonetarget, -1string); 
Well I want to use player Id's phone number (from pInfo[playerid][Telefon])

its like, /pm ID but instead of ID is number from pInfo.
Reply


Messages In This Thread
CMD:sms - by Zeus666 - 21.04.2018, 09:09
Re: CMD:sms - by std - 21.04.2018, 14:30
Re: CMD:sms - by JesterlJoker - 21.04.2018, 17:21
Re: CMD:sms - by Zeus666 - 21.04.2018, 17:46
Re: CMD:sms - by JesterlJoker - 21.04.2018, 17:51
Re: CMD:sms - by Zeus666 - 21.04.2018, 17:55
Re: CMD:sms - by JesterlJoker - 21.04.2018, 17:59
Re: CMD:sms - by Zeus666 - 21.04.2018, 18:11
Re: CMD:sms - by ItsRobinson - 21.04.2018, 18:15
Re: CMD:sms - by Zeus666 - 21.04.2018, 18:19

Forum Jump:


Users browsing this thread: 2 Guest(s)