[Ajuda]Comando /cnn
#1

Bom, Sou novo aqui no forum sa-mp mais por favor me ajudem: estou com esses erros:
Quote:

error 029: invalid expression, assumed zero
error 029: invalid expression, assumed zero
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

a linha й essa:

Quote:

while ((idx < length) && (cmdtext[idx] <= ' '))

Para verificarem se e algum erro no sistema vou deixar o codigo dele:

Quote:

CMD:cnn(playerid, params[])
if(strcmp(cmd, "/cnn", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][Level] >= 1)
{
new cmdtext[20];
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[100];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /cnn [cnn formato ~n~=NovaLinha ~r~=Vermelho ~g~=Verde ~b~=Azul ~w~=Branco ~y~=Amarelo ~l~=Preto]");
return true;
}
format(string, sizeof(string), "~b~Capetinha: ~w~%s",result);
}
else
{
format(string, sizeof(string), "~b~%s: ~w~%s",sendername,result);
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GameTextForPlayer(i, string, 5000, 3);
}
}
return true;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб autorizado a usar este comando!");
return true;
}
}
return true;
}

Reply


Messages In This Thread
[Ajuda]Comando /cnn - by Dj-Brian - 02.11.2013, 13:38
Respuesta: [Ajuda]Comando /cnn - by DanDRT - 02.11.2013, 13:43
Re: [Ajuda]Comando /cnn - by Dj-Brian - 02.11.2013, 14:00
Re: [Ajuda]Comando /cnn - by Diogo123 - 02.11.2013, 14:01
Re: [Ajuda]Comando /cnn - by Dj-Brian - 02.11.2013, 14:04
Re: [Ajuda]Comando /cnn - by Diogo123 - 02.11.2013, 14:06
Re: [Ajuda]Comando /cnn - by Dj-Brian - 02.11.2013, 14:08
Re: [Ajuda]Comando /cnn - by Diogo123 - 02.11.2013, 14:12
Re: [Ajuda]Comando /cnn - by Dj-Brian - 02.11.2013, 14:13
Re: [Ajuda]Comando /cnn - by Diogo123 - 02.11.2013, 14:25

Forum Jump:


Users browsing this thread: 1 Guest(s)