How to get text on player command??
#2

Код:
if(!strcmp(cmdtext,"/command",8,true))
{
 new tmp = cmdtext[9]; // if its string, then leave it, if its integer change to: new tmp = strval(cmdtext[9]);
 new string[10]; format(string,10,"Pawn gets: %s",tmp); // if its integer change the %s to %d, else leave it.
 return SendClientMessage(playerid,0xFFFFFFFF,string);
}
Reply


Messages In This Thread
How to get text on player command?? - by sebacol - 13.02.2010, 20:28
Re: How to get text on player command?? - by Universal - 13.02.2010, 20:35
Re: How to get text on player command?? - by sebacol - 14.02.2010, 06:46
Re: How to get text on player command?? - by Universal - 14.02.2010, 07:04
Re: How to get text on player command?? - by sebacol - 14.02.2010, 08:51
Re: How to get text on player command?? - by adsy - 14.02.2010, 10:53
Re: How to get text on player command?? - by Universal - 14.02.2010, 11:17

Forum Jump:


Users browsing this thread: 2 Guest(s)