[Pedido] Quebra de linha automatico
#2

PHP код:
#include <a_samp>
public OnPlayerText(playeridtext[])
{
    new 
Texto[144];
    
format(Textosizeof(Texto), "%s(%d): %s"Name(playerid), playeridTexto);
    
    if(
strlen(Texto) < 72// 1/2
    
{
        
SendClientMessageToAll(-1Texto);
    }
    else if(
strlen(Texto) > 72// +1/2
    
{
        new 
Linha[2][73];
        
strmid(Linha[0], Texto07272);
        
SendClientMessageToAll(-1Linha[0]);
        
strmid(Linha[1], Texto7314472);
        
SendClientMessageToAll(-1Linha[1]);
        
strdel(Texto0144);
        return 
false;
    }
    return 
true;
}
stock Name(playerid)
{
    new 
Name[24];
    
GetPlayerName(playeridName24);
    return 
Name;

Reply


Messages In This Thread
Quebra de linha automatico - by SukMathcuck - 01.05.2015, 20:52
Re: Quebra de linha automatico - by Nenzittow - 01.05.2015, 21:29
Re: Quebra de linha automatico - by Gii - 01.05.2015, 21:40

Forum Jump:


Users browsing this thread: 1 Guest(s)