09.12.2018, 01:33
Bom pessoal estou tentando aprender a criar comando em zcmd so que quando eu coloco o codigo do tutorial da isso:
ai da esse erro:
OBS: Tirei isso do tutorial do RebeloX
Код:
#include zcmd
#include sscanf2
new texto;
new nome[MAX_PLAYER_NAME];
new Str[128];
new id;
public OnPlayerCommandText(playerid, cmdtext[])
{
CMD:mp(playerid, params[])
{
if(sscanf(params, "us",id,texto)) return SendClientMessage(playerid,-1,"Use: /mp [id] [texto]");
if(IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "Este jogador nгo estб conectado");
GetPlayerName(playerid,nome,sizeof(nome));
format(Str, sizeof(Str), "Mesangem Privada de %s: %s",nome,texto);
SendClientMessage(id,-1,Str);
return true;
}
return 0;
}
Код:
test.pwn(89) : error 029: invalid expression, assumed zero test.pwn(89) : error 017: undefined symbol "cmd_mp" test.pwn(89) : error 029: invalid expression, assumed zero test.pwn(89) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.


