[Ajuda] Dъvida String
#1

Bom Pessoal estou com uma dъvida que estб me sufocando, Bom й melhor usa uma string para todos os comandos ou String por String a cada cmd feito.

Quais dos exemplos й melhores?

Exemplos:

Assim
PHP код:
CMD:String(playerid,params[])
{
    new 
string[40];
    
format(String,sizeof(String), "Oi %s й melhor assim?"PlayerNick(playerid));
    
SendClientMessage(id0xB9B9B9FFString);
    return 
true;
}
CMD:String2(playerid,params[])
{
    new 
string[40];
    
format(String,sizeof(String), "Oi %s й melhor assim?"PlayerNick(playerid));
    
SendClientMessage(id0xB9B9B9FFString);
    return 
true;

Ou assim

PHP код:
    new string[40]; // TOPO DO GM
CMD:String(playerid,params[])
{
    
format(String,sizeof(String), "Olб %s ou assim?"PlayerNick(playerid));
    
SendClientMessage(id0xB9B9B9FFString);
    return 
true;
}
CMD:String2(playerid,params[])
{
    
format(String,sizeof(String), "Olб %s ou assim?"PlayerNick(playerid));
    
SendClientMessage(id0xB9B9B9FFString);
    return 
true;

Reply


Messages In This Thread
Dъvida String - by Petrick™ - 23.11.2013, 14:42
Re: Dъvida String - by PT - 23.11.2013, 14:47
Re: Dъvida String - by Juniiro3 - 23.11.2013, 14:47
Re: Dъvida String - by Petrick™ - 23.11.2013, 14:50
Re: Dъvida String - by Dolby - 23.11.2013, 14:53
Re: Dъvida String - by Petrick™ - 23.11.2013, 14:59

Forum Jump:


Users browsing this thread: 2 Guest(s)