[Ajuda] Usando Sscanf
#3

Verifique:

PHP код:
CMD:editaremp(playerid, params[]) {
    new 
id = IdEmpProxima(playerid), cmd[12], valor;
    if(
sscanf(params, "s[12]i", cmd, valor)) {
        
SendClientMessage(playerid, -1, "/editaremp [opcao] [valor].");
        
SendClientMessage(playerid, -1, "Opзхes: stock.");
        return 
1;
    }
    if(!
strcmp(cmd, "stock")) {
        if(
id == 0) return SendClientMessage(playerid, -1, "Vocк nгo estб prуximo a uma empresa.");
        
Empresa[id][TotalStock] = valor;
        
SendClientMessage(playerid, -1, "Comando efetuado com sucesso.");
        return 
1;
    }
    
    
SendClientMessage(playerid, -1, "Opзгo invбlida, use: stock.");
    return 
1;
} 
Reply


Messages In This Thread
Usando Sscanf - by Mitic0 - 29.07.2018, 19:08
Re: Usando Sscanf - by SIZET - 29.07.2018, 19:16
Re: Usando Sscanf - by LeViNS - 29.07.2018, 19:53
Re: Usando Sscanf - by willttoonn - 29.07.2018, 23:42
Re: Usando Sscanf - by JeffSantos2 - 30.07.2018, 16:36

Forum Jump:


Users browsing this thread: 1 Guest(s)