public OnPlayerCommandText(playerid, cmdtext[]){
}
if(strcmp(cmdtext, "/aztecas", true) == 0)
{
if(gTeam[playerid] == Aztecas) // (Ou if(gTeam[playerid] == 1). Ou Seja Sу aztecas Poderб Usar o Comando
{
SendClientMessage(playerid, CorAztecas, "Vocк й Aztecas, Parabйns.");
}
return true;
}
if(strcmp(cmdtext, "/grove", true) == 0)
{
if(gTeam[playerid] == Grove) // (Ou if(gTeam[playerid] == 2). Ou Seja Sу Grove Poderб Usar o Comando
{
SendClientMessage(playerid, CorGrove, "Vocк й Grove, Parabйns.");
}
return true;
}
if(strcmp(cmdtext, "/ballas", true) == 0)
{
if(gTeam[playerid] == Ballas) // (Ou if(gTeam[playerid] == 3 ). Ou Seja Sу Ballas Poderб Usar o Comando
{
SendClientMessage(playerid, CorBallas, "Vocк й Ballas, Parabйns.");
}
return true;
}
if(strcmp(cmdtext, "/ajuda", true) == 0)
{
if(gTeam[playerid] == Aztecas) // Ou Seja, Essa Mensagem Sу Aparecerб Pros Astecas.
{
SendClientMessage(playerid, CorAztecas, "Vocк Poderб Ter Ajuda Fazendo Algo O.O = Vocк й Aztecas.");
// Mensagem Que Irб Aparecer se For Aztecas.
return true;
}
if(gTeam[playerid] == Grove) // Ou Seja, Essa Mensagem Sу Aparecerб Pros Grove.
{
SendClientMessage(playerid, CorGrove, " Vocк Poderб Ter Ajuda Fazendo Algo O.O = Vocк й Grove.");
// Mensagem Que Irб Aparecer se For Grove.
return true;
}
if(gTeam[playerid] == Ballas) // Ou Seja, Essa Mensagem Sу Aparecerб Pros Grove.
{
SendClientMessage(playerid, CorBallas, " Vocк Poderб Ter Ajuda Fazendo Algo O.O = Vocк й Ballas.");
// Mensagem Que Irб Aparecer se For Ballas.
return true;
}
return true;
}
C:\Users\Jason\Desktop\RPG\gamemodes\GM.pwn(578) : error 010: invalid function or declaration
C:\Users\Jason\Desktop\RPG\gamemodes\GM.pwn(580) : error 010: invalid function or declaration
C:\Users\Jason\Desktop\RPG\gamemodes\GM.pwn(584) : error 010: invalid function or declaration
C:\Users\Jason\Desktop\RPG\gamemodes\GM.pwn(586) : error 010: invalid function or declaration
C:\Users\Jason\Desktop\RPG\gamemodes\GM.pwn(588) : error 010: invalid function or declaration
C:\Users\Jason\Desktop\RPG\gamemodes\GM.pwn(592) : error 010: invalid function or declaration
C:\Users\Jason\Desktop\RPG\gamemodes\GM.pwn(594) : error 010: invalid function or declaration
C:\Users\Jason\Desktop\RPG\gamemodes\GM.pwn(596) : error 010: invalid function or declaration
C:\Users\Jason\Desktop\RPG\gamemodes\GM.pwn(600) : error 010: invalid function or declaration
C:\Users\Jason\Desktop\RPG\gamemodes\GM.pwn(602) : error 010: invalid function or declaration
C:\Users\Jason\Desktop\RPG\gamemodes\GM.pwn(604) : error 010: invalid function or declaration
C:\Users\Jason\Desktop\RPG\gamemodes\GM.pwn(608) : error 010: invalid function or declaration
C:\Users\Jason\Desktop\RPG\gamemodes\GM.pwn(610) : error 010: invalid function or declaration
C:\Users\Jason\Desktop\RPG\gamemodes\GM.pwn(614) : error 010: invalid function or declaration
C:\Users\Jason\Desktop\RPG\gamemodes\GM.pwn(616) : error 010: invalid function or declaration
C:\Users\Jason\Desktop\RPG\gamemodes\GM.pwn(620) : error 010: invalid function or declaration
C:\Users\Jason\Desktop\RPG\gamemodes\GM.pwn(622) : error 010: invalid function or declaration
C:\Users\Jason\Desktop\RPG\gamemodes\GM.pwn(2561) : error 017: undefined symbol "Escolha"
public OnPlayerCommandText(playerid, cmdtext[])
{
// aqui
return 0;
}
Vocк deve botar entre as chaves do OnPlayerCommandText
pawn Код:
|
if(dialogid == 4322)
{
if(response == 0) // Se Ele Apertar Em Cancelar, Ou Seja, Aparecerб o Dialog Denovo, Obrigando ele a Escolher.
{
ShowPlayerDialog(playerid, Escolha, DIALOG_STYLE_LIST, "Escolha o Seu Time","Zumbis\nHumanos","Selecionar","Cancelar");
}
if(response == 1)
{
C:\Users\Jason\Desktop\RPG\gamemodes\GM.pwn(2564) : error 017: undefined symbol "Escolha"
#define Escolha 2000