C:\Users\Analia\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(9) : error 017: undefined symbol "giveplayerid"
C:\Users\Analia\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(10) : error 017: undefined symbol "giveplayerid"
C:\Users\Analia\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(11) : error 017: undefined symbol "Autorizado"
C:\Users\Analia\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(11) : error 017: undefined symbol "giveplayerid"
C:\Users\Analia\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(11) : error 029: invalid expression, assumed zero
C:\Users\Analia\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(11) : fatal error 107: too many error messages on one line
if(sscanf(params,"u", giveplayerid)) return SendClientMessage(playerid,-1,"Use: /autorizartroca [ID]");
if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid,-1,"Jogador nгo estб conectado.");
if(Autorizado[giveplayerid] == true) return SendClientMessage(playerid,-1,"Jogador jб estб autorizado.");
new giveplayerid;
new Bool: Autorizado[MAX_PLAYERS];
antes do if(sscanf coloque isto :
pawn Код:
pawn Код:
|
C:\Users\Analia\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(15) : error 012: invalid function call, not a valid address
C:\Users\Analia\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(15) : warning 215: expression has no effect
C:\Users\Analia\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(15) : error 001: expected token: ";", but found ")"
C:\Users\Analia\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(15) : error 029: invalid expression, assumed zero
C:\Users\Analia\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(15) : fatal error 107: too many error messages on one line
format(string,sizeof(string),"{14E5FF}%s {FFFAFA}autorizou {14E5FF}%s {FFFAFA}a trocar seu nick!",PlayerName(playerid), PlayerName(giveplayerid));
Autorizado[giveplayerid] = true;
C:\Users\Analia\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(13) : warning 213: tag mismatch
C:\Users\Analia\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(14) : warning 213: tag mismatch
C:\Users\Analia\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(16) : error 012: invalid function call, not a valid address
C:\Users\Analia\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(16) : warning 215: expression has no effect
C:\Users\Analia\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(16) : error 001: expected token: ";", but found ")"
C:\Users\Analia\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(16) : error 029: invalid expression, assumed zero
C:\Users\Analia\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(16) : fatal error 107: too many error messages on one line
13
if(Autorizado[giveplayerid] == true) return SendClientMessage(playerid,-1,"Jogador jб estб autorizado.");
14
Autorizado[giveplayerid] = true;
16
format(string,sizeof(string),"{14E5FF}%s {FFFAFA}autorizou {14E5FF}%s {FFFAFA}a trocar seu nick!",PlayerName(playerid), PlayerName(giveplayerid));
CMD:renomear(playerid,params[])
{
new ID,NewName[MAX_PLAYER_NAME];
if(sscanf(params,"us",ID,NewName))
{
SendClientMessage(playerid,-1,"Use /renomear [id] [nome]");
return 1;
}
if(IsPlayerConnected(ID))
{
SetPlayerName(ID,NewName);
}
return 1;
}
Caso For para um servidor RPG este comando, eu recomendo o comando /renomear.
Vбrios jogadores as vezes nao querem mudar o nick e precisam, ou nao sabem e acabam bugando digitando - ou ! Portanto: pawn Код:
|