zcmd + sscanf.. problem!
#3

Let's say you have written this: "/ma poser 5". You need to check with sscanf for 2 parameters, string which goes after /ma and integer which goes after the string.
Код:
new action[10];
 if(strcmp(params, "poser", false))
    {
        new quantite;
        
        if(sscanf(params, "s[10]d", action,quantite)) // <----
            return SendClientMessage(playerid, -1, "/ma poser <quantitй>");
        
        SendClientMessage(playerid, -1, "good");
    }
Reply


Messages In This Thread
zcmd + sscanf.. problem! - by Baltimore - 27.10.2014, 17:39
Re: zcmd + sscanf.. problem! - by Glossy42O - 27.10.2014, 18:12
Re: zcmd + sscanf.. problem! - by dominik523 - 27.10.2014, 18:13
Re : zcmd + sscanf.. problem! - by Baltimore - 27.10.2014, 18:13
Re: zcmd + sscanf.. problem! - by dominik523 - 27.10.2014, 18:18
Re : zcmd + sscanf.. problem! - by Baltimore - 27.10.2014, 18:21
Re: zcmd + sscanf.. problem! - by nemesis- - 27.10.2014, 19:38
Re : zcmd + sscanf.. problem! - by Baltimore - 27.10.2014, 19:45

Forum Jump:


Users browsing this thread: 1 Guest(s)