07.02.2013, 14:59
Eu nao entendo alquem min explica pq nenhum comando com stork nao pega no meu gm:
erros do
erros:
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; } |
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. |