Sscanf 2 problem
#3

It's pretty much any command where you can place text.

Here's one example:

Quote:

dcmd_o(playerid, params[])
{
if(pInfo[playerid][pAdmin] > 2 || tOOC == 1)
{
new text[256],strtext[256];
if(sscanf(params,"s",text))
return SendClientMessage(playerid,0xFF634700,"[SYNTAX]:{FFFFFF} /o [message]");
format(strtext,129,"(( %s: %s ))",NUsN(playerid),text);
SendClientMessageToAll(0xFFFFFF00, strtext);
}
else
SendClientMessage(playerid,0xFF634700,"[ERROR]:{FFFFFF} You are either not a level 2 admin or OOC is turned off!");
return 1;
}

Reply


Messages In This Thread
Sscanf 2 problem - by Jack Shred - 02.06.2011, 15:59
Re: Sscanf 2 problem - by shitbird - 02.06.2011, 16:02
Re: Sscanf 2 problem - by Jack Shred - 02.06.2011, 16:06
Re: Sscanf 2 problem - by [L3th4l] - 02.06.2011, 17:05
Re: Sscanf 2 problem - by Jack Shred - 02.06.2011, 17:37

Forum Jump:


Users browsing this thread: 2 Guest(s)