17.12.2011, 19:08
Quote:
You can do it with sscanf, but it's pointless. You only have a single string. It's wise to use sscanf to split multiple variables, and you clearly didn't know about the 'params' with strcmp in zcmd.
|
Thanks anyway.
pawn Код:
//I know about strcmp in zcmd. ;)
COMMAND:help (playerid, params[])
{
if(isnull(params))
{
//info about help options. xd
return 1;
}
if(strcmp(params,"lol1",true) == 0)
{
//lalala
}
else if(strcmp(params,"lol2",true) == 0)
{
//lsgds
}
else if(strcmp(params,"lol3",true) == 0)
{
//aham xd
}
else SendClientMessage(playerid,-1,"etc... etc...");
return 1;
}
//xD