SA-MP Forums Archive
[AJUDA]Comando de Tele - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA]Comando de Tele (/showthread.php?tid=291717)



[AJUDA]Comando de Tele - MoisesXD - 21.10.2011

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/ilhaadm", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,630.2844,-2679.3381,1.3927,130.9107);
}
return 1;
}
E ta dando esse erro oq eu fasso
Код:
C:\Users\Moises\Desktop\Serve 0.3c R2\gamemodes\a.pwn(239) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.



Re: [AJUDA]Comando de Tele - Miqueias Barros - 21.10.2011

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/ilha", true) == 0)
    {
        SetPlayerPos(playerid, 630.2844, -2679.3381, 1.3927, 130.9107);
        SendClientMessage(playerid, -1, "Teleportado com sucesso!");
        return 1;
    }
    return 0;
}



Re: [AJUDA]Comando de Tele - Josma_cmd - 21.10.2011

Quote:
Originally Posted by Miqueias Barros
Посмотреть сообщение
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/ilha", true) == 0)
    {
        SetPlayerPos(playerid, 630.2844, -2679.3381, 1.3927, 130.9107);
        SendClientMessage(playerid, -1, "Teleportado com sucesso!");
        return 1;
    }
    return 0;
}
number of arguments does not match definition й dado quando o numero de parвmetros й excedido ou nгo completo, vocк colocou 4 valores fracionados
na coordenada sendo que sу necessita de trкs, X, Y e Z.

pawn Код:
if(strcmp("/ilhaadm", cmdtext, true, 10) == 0)
{
    SetPlayerPos(playerid, 630.2844, -2679.3381, 1.3927); //Linha do erro, agora com trкs parвmetros.
    return true;
}



Re: [AJUDA]Comando de Tele - Miqueias Barros - 21.10.2011

Quote:
Originally Posted by Josma_cmd
Посмотреть сообщение
number of arguments does not match definition й dado quando o numero de parвmetros й excedido ou nгo completo, vocк colocou 4 valores fracionados
na coordenada sendo que sу necessita de trкs, X, Y e Z.

pawn Код:
if(strcmp("/ilhaadm", cmdtext, true, 10) == 0)
{
    SetPlayerPos(playerid, 630.2844, -2679.3381, 1.3927); //Linha do erro, agora com trкs parвmetros.
    return true;
}
aaa, nem prestei atenзгo..


Re: [AJUDA]Comando de Tele - Vai_Besta - 21.10.2011

Amigo para o CODIGO ficar colorido nгo se coloca cor dentro do [code],usa-se [pawn] e [ /pawn]


Re: [AJUDA]Comando de Tele - Lуs - 21.10.2011

Ou [ php ] e [ /php ].
(Sem espaзos)


Respuesta: [AJUDA]Comando de Tele - MoisesXD - 21.10.2011

Affs tem algo errado deu complier mais nao funfo XD


Re: [AJUDA]Comando de Tele - Josma_cmd - 21.10.2011

Confira se as coordenadas estгo corretas.
pawn Код:
if(strcmp("/ilhaadm", cmdtext, true, 10) == 0) //Mude isto
if(strcmp(cmdtext, "/ilhaadm", true) == 0) //Por isto, mas os dois funcionam
Adiciona um print dizendo se funcionou pra conferir se o comando tб sendo executado.