which specifier in sscanf
#1

I went through the whole sscanf specifiers, and I just could not get which one I had to use, or not even.
The code is /setcolor
PHP код:
CMD:setcolor(playeridparams[])
{
   if(
IsPlayerAdmin(playerid))
   {
       
SetPlayerColor(playeridCOLOR_BLUE);
       
SendClientMessage(playeridCOLOR_LIME"You have set your colour.");
   }
       else
   {
       
SendClientMessage(playerid, -1"SERVER: Unknown command.");
   }
   return 
1;

It is just, when you type /setcolor it will turn MY color to blue. But How do I make it so, that if I type /setcolor it will display a message /setcolor [ID] [COLOR]. I didn't know which specifier I had to use in sscanf.
Reply


Messages In This Thread
which specifier in sscanf - by saffierr - 31.03.2015, 22:49
Re: which specifier in sscanf - by Vince - 31.03.2015, 23:03
Re: which specifier in sscanf - by Crayder - 31.03.2015, 23:04
Re: which specifier in sscanf - by saffierr - 31.03.2015, 23:10
Re: which specifier in sscanf - by Crayder - 31.03.2015, 23:11
Re: which specifier in sscanf - by saffierr - 31.03.2015, 23:26
Re: which specifier in sscanf - by saffierr - 31.03.2015, 23:58

Forum Jump:


Users browsing this thread: 3 Guest(s)