[AJUDA] Cortando
#2

Код HTML:
if(strcmp(cmd, "/nomeemp", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] > 1337)
{
new bouse = PlayerInfo[playerid][pPbiskey];
if (bouse == 255)
{
SendClientMessage(playerid, COLOR_GRAD2, "   Vocк nгo possui uma empresa");
return 1;
}
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_WHITE, "USE: /nomeemp [Nome]");
}
if (bouse >= 100)
{
strmid(SBizzInfo[bouse-100][sbMessage], result, 0, 64, 255);
format(string, sizeof(string), "Nome da empresa definido para %s",SBizzInfo[bouse-100][sbMessage]);
}
else
{
strmid(BizzInfo[bouse][bMessage], result, 0, 64, 255);
format(string, sizeof(string), "Nome da empresa definido para %s",BizzInfo[bouse][bMessage]);
}
Atualizar3Dtexts();
OnPropUpdate();
SendClientMessage(playerid, COLOR_WHITE, string);
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo estб autorizado a usar este comando!");
return 1;
}
}
return 1;
}	
}
nao seria o 3dtextlabell ou algun redutor que corta a mensagem pq se eu escrevo em qualquer chat uma frase muito longa ele corta
Reply


Messages In This Thread
[AJUDA] Cortando - by fonyke - 26.01.2012, 20:05
Re: [AJUDA] Cortando - by fonyke - 26.01.2012, 20:21
Re: [AJUDA] Cortando - by WeenSoares - 26.01.2012, 20:23
Re: [AJUDA] Cortando - by fonyke - 26.01.2012, 20:25
Re: [AJUDA] Cortando - by fonyke - 26.01.2012, 20:34
Re: [AJUDA] Cortando - by fonyke - 26.01.2012, 20:45
Re: [AJUDA] Cortando - by fonyke - 26.01.2012, 20:50

Forum Jump:


Users browsing this thread: 1 Guest(s)