26.06.2014, 20:40
pawn Код:
if(strcmp(cmd,"/amudarnick",true)==0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /amudarnick [ id ]");
return 1;
}
new playa;
playa = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] == 1341)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
MudarNickAceito[playa] = 1;
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
//format(string, sizeof(string), "Vocк autorizou %s a mudar o nick.", giveplayer);
//SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "Admin %s: Autorizou vocк a mudar o nick, digite /mudarnick.", sendername);
SendClientMessage(playa, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "ADMIN CMD: %s autorizou %s a mudar o nick !",sendername,giveplayer);
ABroadCast(COLOR_LIGHTRED,string,1);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб autorizado a usar este comando!");
return 1;
}
}
return 1;
}
error 001: expected token: ";", but found "new"
warning 219: local variable "playa" shadows a variable at a preceding level
warning 219: local variable "playa" shadows a variable at a preceding level
warning 219: local variable "playa" shadows a variable at a preceding level
warning 219: local variable "playa" shadows a variable at a preceding level
warning 219: local variable "playa" shadows a variable at a preceding level
warning 219: local variable "playa" shadows a variable at a preceding level
warning 219: local variable "playa" shadows a variable at a preceding level
warning 219: local variable "playa" shadows a variable at a preceding level
warning 219: local variable "playa" shadows a variable at a preceding level
warning 219: local variable "playa" shadows a variable at a preceding level
warning 219: local variable "playa" shadows a variable at a preceding level
warning 219: local variable "playa" shadows a variable at a preceding level
warning 219: local variable "playa" shadows a variable at a preceding level
warning 219: local variable "playa" shadows a variable at a preceding level
warning 219: local variable "playa" shadows a variable at a preceding level
warning 219: local variable "playa" shadows a variable at a preceding level
warning 219: local variable "playa" shadows a variable at a preceding level
warning 219: local variable "playa" shadows a variable at a preceding level
error 010: invalid function or declaration
error 010: invalid function or declaration
error 010: invalid function or declaration
error 010: invalid function or declaration
error 021: symbol already defined: "playa"
error 010: invalid function or declaration
error 010: invalid function or declaration
error 010: invalid function or declaration
error 021: symbol already defined: "format"
error 021: symbol already defined: "ABroadCast"
error 010: invalid function or declaration
error 010: invalid function or declaration
error 010: invalid function or declaration
warning 203: symbol is never used: "playa"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
14 Errors.
O que й que devo fazer ?