Convert number
#2

Hey! This is a simple command I made in a new Pawno file.

Код:
if (strcmp("/number", cmdtext, true, 10) == 0)
	{
	    new string[7];
	    new phonenumber[]="123456";
		new size=strlen(phonenumber);
		strins(phonenumber,"-",size/2);
		format(string,sizeof(string),"%s",phonenumber);
		SendClientMessage(playerid,-1,string);
		return 1;
	}
All you have to do is to replace the phonenumber with your variable, as mine is only an example. Feel free to test it.
Reply


Messages In This Thread
Convert number - by Johnny_Ionut - 28.03.2016, 19:37
Re: Convert number - by Lucky13 - 28.03.2016, 20:39

Forum Jump:


Users browsing this thread: 1 Guest(s)