[Ajuda] Dizer o comando que o player digitou
#1

Preciso de uma ajuda, de quando o player digitar um comando errado, dizer o comando ali na msg.
pawn Код:
return SendClientMessage(playerid,0xFF0000FF,"Vocк digitou ' %s ', este comando nгo existe, use: /comandos",cmdtext);
}
Fiz assim mais nгo da, me ajudem ae pf.
Reply
#2

Em vez Disso Coloque:

pawn Код:
new String[120];
format(String, sizeof(String), "Vocк Digitou ' %s ', Este comando nгo existe, use: /comandos", cmdtext);
SendClientMessage(playerid, 0xFF0000FF, String);
return 1;
Reply
#3

Erros
pawn Код:
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(894) : error 017: undefined symbol "AntiDeAMX"
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7776) : warning 225: unreachable code
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7777) : error 029: invalid expression, assumed zero
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7777) : error 004: function "OnPlayerStateChange" is not implemented
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7783) : error 017: undefined symbol "oldstate"
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7790) : error 017: undefined symbol "newstate"
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7792) : error 017: undefined symbol "IsABike"
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7831) : error 017: undefined symbol "newstate"
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7843) : warning 225: unreachable code
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7843) : error 029: invalid expression, assumed zero
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7843) : error 017: undefined symbol "desxacalaca"
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7844) : error 029: invalid expression, assumed zero
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7844) : error 017: undefined symbol "desxacalaca"
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7860) : warning 225: unreachable code
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7860) : error 029: invalid expression, assumed zero
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7860) : error 017: undefined symbol "IsABike"
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7863) : error 017: undefined symbol "vehicleid"
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7872) : warning 225: unreachable code
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7872) : error 029: invalid expression, assumed zero
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7872) : error 004: function "Streamer_OnPlayerEnterCP" is not implemented
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7877) : warning 225: unreachable code
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7877) : error 029: invalid expression, assumed zero
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7877) : error 004: function "Streamer_OnPlayerLeaveCP" is not implemented
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7882) : warning 225: unreachable code
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7882) : error 029: invalid expression, assumed zero
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7882) : error 004: function "Streamer_OnPlayerEnterRaceCP" is not implemented
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7887) : warning 225: unreachable code
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7887) : error 029: invalid expression, assumed zero
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7887) : error 004: function "Streamer_OnPlayerLeaveRaceCP" is not implemented
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7892) : warning 225: unreachable code
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7892) : error 029: invalid expression, assumed zero
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7892) : error 004: function "OnRconCommand" is not implemented
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7897) : warning 225: unreachable code
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7897) : error 029: invalid expression, assumed zero
D:\Brasil Mundo dos Terroristas 2012\0.3e\gamemodes\BMMC.pwn(7897) : error 004: function "OnObjectMoved" is not implemented

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Reply
#4

Erro de Chaves provavelmente, Use isto: https://sampforum.blast.hk/showthread.php?tid=359756
Reply
#5

adicione na ultima coisa enbaixo do return 1;

}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)