[Ajuda] alquem converte esse comando tapa?
#8

Eu nao entendo alquem min explica pq nenhum comando com stork nao pega no meu gm:
erros do
Quote:

if (strcmp(cmd, "/tapa", true) == 0) {
if (IsPlayerConnected(playerid)) { // Player tem que ter passado pela CallBack OnPlayerConnect
tmp = strtok(cmdtext, idx); // Definida acima
if (!strlen(tmp)) { // Parametro 1, se nn tiver pelo menos 1 parametro apуs o comando, ele retorna isto
SendClientMessage(playerid, CINZA, "USE: /tapa [id]");
return true;
}
new iddocmd;
new Float: x, // Coordenada X
Float: y, // Coordenada y
Float: z; // Coordenada z
iddocmd = ReturnUser(tmp); // Id que recebeu o comando
if (IsPlayerConnected(iddocmd)) { // Player que recebeu o cmd tem que ter passado pelo OnPlayerConnect
if (iddocmd != INVALID_PLAYER_ID) { // Verifica se o Id й valido
GetPlayerName(iddocmd, giveplayer, sizeof(giveplayer)); // Pega o nome da pessoa que recebeu
GetPlayerName(playerid, sendername, sizeof(sendername)); // da que usou
new string[128]; // Armazena os dados abaixo
format(string,sizeof(string),"%s deu um tapa em %s .", sendername, giveplayer);// sendername e giveplayer sгo os nomes pegados acima
SendClientMessageToAll(-1,string); // Manda a msg formatada acima

GetPlayerPos(iddocmd, x, y, z); // Pega a posiзгo de quem usou o cmd
SetPlayerPos(iddocmd, x, y, z + 12); // Seta a posiзгo de quem usou o cmd e almenta o Z que й a altura em + 12
}
}
}
return true;
}

erros:
Quote:

Compilando NUNC.pwn...
C:\Users\xXWesllyxX.xXWesllyxX-PC\Desktop\Arquivo Pawn\service34\gamemodes\NUNC.pwn(1691) : error 017: undefined symbol "cmd"

C:\Users\xXWesllyxX.xXWesllyxX-PC\Desktop\Arquivo Pawn\service34\gamemodes\NUNC.pwn(1693) : error 017: undefined symbol "tmp"
C:\Users\xXWesllyxX.xXWesllyxX-PC\Desktop\Arquivo Pawn\service34\gamemodes\NUNC.pwn(1693) : error 017: undefined symbol "strtok"
C:\Users\xXWesllyxX.xXWesllyxX-PC\Desktop\Arquivo Pawn\service34\gamemodes\NUNC.pwn(1694) : error 017: undefined symbol "tmp"

C:\Users\xXWesllyxX.xXWesllyxX-PC\Desktop\Arquivo Pawn\service34\gamemodes\NUNC.pwn(1695) : error 017: undefined symbol "CINZA"
C:\Users\xXWesllyxX.xXWesllyxX-PC\Desktop\Arquivo Pawn\service34\gamemodes\NUNC.pwn(1702) : error 017: undefined symbol "ReturnUser"
C:\Users\xXWesllyxX.xXWesllyxX-PC\Desktop\Arquivo Pawn\service34\gamemodes\NUNC.pwn(1705) : error 017: undefined symbol "giveplayer"
C:\Users\xXWesllyxX.xXWesllyxX-PC\Desktop\Arquivo Pawn\service34\gamemodes\NUNC.pwn(1705) : error 017: undefined symbol "giveplayer"

C:\Users\xXWesllyxX.xXWesllyxX-PC\Desktop\Arquivo Pawn\service34\gamemodes\NUNC.pwn(1705) : error 029: invalid expression, assumed zero
C:\Users\xXWesllyxX.xXWesllyxX-PC\Desktop\Arquivo Pawn\service34\gamemodes\NUNC.pwn(1705) : fatal error 107: too many error messages on one line

Compilation aborted.
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


10 Errors.

Reply


Messages In This Thread
alquem converte esse comando tapa? - by Weslly Stronda - 07.02.2013, 14:26
Re: alquem converte esse comando tapa? - by Weslly Stronda - 07.02.2013, 14:31
Re: alquem converte esse comando tapa? - by Nill.Oliveira - 07.02.2013, 14:33
Re: alquem converte esse comando tapa? - by Weslly Stronda - 07.02.2013, 14:40
Re: alquem converte esse comando tapa? - by smiiir - 07.02.2013, 14:42
Re: alquem converte esse comando tapa? - by Weslly Stronda - 07.02.2013, 14:46
Re: alquem converte esse comando tapa? - by Nill.Oliveira - 07.02.2013, 14:48
Re: alquem converte esse comando tapa? - by Weslly Stronda - 07.02.2013, 14:59
Re: alquem converte esse comando tapa? - by vitere - 07.02.2013, 15:08
Re: alquem converte esse comando tapa? - by Sky™ - 07.02.2013, 15:10

Forum Jump:


Users browsing this thread: 1 Guest(s)