30.01.2013, 10:13
Is it possible to use strcmp with sscanf?
OnPlayerCommandPerformed(playerid, cmdtext[], success)
No sorry. If you mean the default Command processor, that is not possible.
|
if( !strcmp( cmdtext, "/cake", true ))
{
// /cake is 5 characters long. this means that index 6 is the first letter of the first param
if( sscanf( cmdtext[ 6 ], "s[4]", "hey" ))