[Ajuda] strcmp + sscanf
#1

Estou ajudando um amigo em um sistema mas nгo sei como utilizar sscanf + strcmp..
Eu fiz um comando para testar mas ele nгo funciona..
pawn Код:
//topo
#define Parametro   cmdtext[(strfind(cmdtext, " ") + 1)]
//OnPlayerCommandText
    if(strcmp(cmd, "/testesscanf", true) == 0){
        new msg[128];
        if(sscanf(Parametro,"s",msg))
            return SendClientMessage(playerid, COLOR_GRAD1, "Use: /testesscanf (texto)");
        format(string,sizeof(string),"%s",msg);
        SendClientMessageToAll(COLOR_YELLOW2,string);
        return 1;
    }
Help-me
Reply


Messages In This Thread
strcmp + sscanf - by tonisantolia - 03.10.2012, 00:12
Re: strcmp + sscanf - by mau.tito - 03.10.2012, 00:14
Re: strcmp + sscanf - by tonisantolia - 03.10.2012, 00:16
Re: strcmp + sscanf - by Jason` - 03.10.2012, 03:46
Re: strcmp + sscanf - by Jason` - 03.10.2012, 03:53
Re: strcmp + sscanf - by zSuYaNw - 03.10.2012, 04:13
Re: strcmp + sscanf - by Jason` - 03.10.2012, 04:14
Re: strcmp + sscanf - by Maklister - 03.10.2012, 04:15
Re: strcmp + sscanf - by zSuYaNw - 03.10.2012, 04:22
Re: strcmp + sscanf - by Jason` - 03.10.2012, 04:23

Forum Jump:


Users browsing this thread: 1 Guest(s)