07.10.2014, 23:51
warning 219: local variable "cmd" shadows a variable at a preceding level
error 017: undefined symbol "tmp"
error 017: undefined symbol "cmdtext"
error 017: undefined symbol "tmp"
error 017: undefined symbol "tmp"
error 017: undefined symbol "giveplayer"
error 017: undefined symbol "giveplayer"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
error 017: undefined symbol "tmp"
error 017: undefined symbol "cmdtext"
error 017: undefined symbol "tmp"
error 017: undefined symbol "tmp"
error 017: undefined symbol "giveplayer"
error 017: undefined symbol "giveplayer"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
pawn Код:
CMD:matar(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COR_ERRO, "USE: /matar [id]");
return true;
}
new nomezinho[52];
GetPlayerName(playerid, nomezinho, sizeof(nomezinho));
new playa;
playa = ReturnUser(tmp);
if(Player[playerid][pAdmin] >=4)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
SetPlayerHealth(playa, 0.0);
SetPlayerVirtualWorld(playa,0);
format(string9, sizeof(string9), "AdmCmd: %s ganhou uma morte de: %s",giveplayer ,nomezinho);
ABroadCast(COR_CV,string9,1);
}
}
}
else
{
SendClientMessage(playerid, COR_ERRO, " Vocк nгo estб autorizado a usar este comando!");
}
}
return true;
}