ajuda erros na minha fs porfavor me ajudaa
#1

Erro
Код:
C:\Users\Bilada\Desktop\FILES\C- GAMEMODES\Estou Fazendo\filterscripts\Accs.pwn(20) : error 001: expected token: "-identifier-", but found "-integer value-"
C:\Users\Bilada\Desktop\FILES\C- GAMEMODES\Estou Fazendo\filterscripts\Accs.pwn(77) : warning 217: loose indentation
C:\Users\Bilada\Desktop\FILES\C- GAMEMODES\Estou Fazendo\filterscripts\Accs.pwn(80) : warning 213: tag mismatch
C:\Users\Bilada\Desktop\FILES\C- GAMEMODES\Estou Fazendo\filterscripts\Accs.pwn(80) : error 032: array index out of bounds (variable "PlayerDados")
C:\Users\Bilada\Desktop\FILES\C- GAMEMODES\Estou Fazendo\filterscripts\Accs.pwn(165) : error 017: undefined symbol "sscanf"
C:\Users\Bilada\Desktop\FILES\C- GAMEMODES\Estou Fazendo\filterscripts\Accs.pwn(166) : error 017: undefined symbol "VERMELHO"
C:\Users\Bilada\Desktop\FILES\C- GAMEMODES\Estou Fazendo\filterscripts\Accs.pwn(172) : error 017: undefined symbol "VERDE"
C:\Users\Bilada\Desktop\FILES\C- GAMEMODES\Estou Fazendo\filterscripts\Accs.pwn(179) : error 017: undefined symbol "VERMELHO"
C:\Users\Bilada\Desktop\FILES\C- GAMEMODES\Estou Fazendo\filterscripts\Accs.pwn(181) : error 017: undefined symbol "sscanf"
C:\Users\Bilada\Desktop\FILES\C- GAMEMODES\Estou Fazendo\filterscripts\Accs.pwn(181) : error 017: undefined symbol "VERMELHO"
C:\Users\Bilada\Desktop\FILES\C- GAMEMODES\Estou Fazendo\filterscripts\Accs.pwn(182) : error 017: undefined symbol "VERMELHO"
C:\Users\Bilada\Desktop\FILES\C- GAMEMODES\Estou Fazendo\filterscripts\Accs.pwn(187) : error 017: undefined symbol "Azul_C"
C:\Users\Bilada\Desktop\FILES\C- GAMEMODES\Estou Fazendo\filterscripts\Accs.pwn(188) : error 017: undefined symbol "VERDE"
C:\Users\Bilada\Desktop\FILES\C- GAMEMODES\Estou Fazendo\filterscripts\Accs.pwn(243) : warning 213: tag mismatch
C:\Users\Bilada\Desktop\FILES\C- GAMEMODES\Estou Fazendo\filterscripts\Accs.pwn(243) : error 032: array index out of bounds (variable "PlayerDados")
C:\Users\Bilada\Desktop\FILES\C- GAMEMODES\Estou Fazendo\filterscripts\Accs.pwn(252) : warning 213: tag mismatch
C:\Users\Bilada\Desktop\FILES\C- GAMEMODES\Estou Fazendo\filterscripts\Accs.pwn(252) : error 032: array index out of bounds (variable "PlayerDados")
C:\Users\Bilada\Desktop\FILES\C- GAMEMODES\Estou Fazendo\filterscripts\Accs.pwn(260) : error 017: undefined symbol "sscanf"
C:\Users\Bilada\Desktop\FILES\C- GAMEMODES\Estou Fazendo\filterscripts\Accs.pwn(268) : error 017: undefined symbol "VERDE"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


15 Errors.
toda a parte da gamemode

Код:
#define FILTERSCRIPT//DEFINE FILTERSCRIPT
//------------------------- { - INCLUDES - } -----------------------------------
#include <a_samp>//SAMP TEAM
#include <DOF2>//Double-O-Seven
#include <zcmd>
//------------------------------------------------------------------------------
#if defined FILTERSCRIPT//VERIFICA SE ESTБ DEFINIDO
//------------------------- { - DEFINIЗХES - } ---------------------------------
#define     DialogRegistro      (1)// DEFINE DIALOG REGISTRO
#define     DialogLogin         (2)// DEFINE DIALOG LOGIN
#define Moderador 1
#define Guardiao  2
#define Admin   3
#define SubDono     4
#define Dono      5
//------------------------------------------------------------------------------
//------------------------- { - VARIБVEIS - } ----------------------------------
enum pDados
{
	Admin
}
new PlayerDados[MAX_PLAYERS][pDados];
new bool:Logado[MAX_PLAYERS char];
new SenhaErrada[MAX_PLAYERS];
new Str[210];
//------------------------------------------------------------------------------

//------------------------- { - CALLBACKS - } ----------------------------------

enum PlayerAdmin
{
    Level
}
new pAdmin[MAX_PLAYERS][PlayerAdmin];

public OnFilterScriptInit()


{
	print("---------------------------------------------");
	print("         SISTEMA DO Accs SENDO CARREGADO...");
	print("                  Accserreira ©");
	print(" ");
	if(fexist("/Accs/")) print("A pasta Accs foi encontrada!"), print("Sistema do Accs carregado com sucesso!");
	else print("A pasta Accs nгo foi encontrada!"), SendRconCommand("exit");
	print("---------------------------------------------");
	return 1;
}

public OnFilterScriptExit()
{
	DOF2_Exit();
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{

	TogglePlayerSpectating(playerid, true);
	if(!DOF2_FileExists(PegarConta(playerid)))
	{
	    format(Str, sizeof(Str), "{FAF0E6}Bem vindo ao NomedoSeuServer, %s.\nEndereзo IP: %s.\nVocк pode registrar uma conta, digitando uma senha desejada aqui:\n", getName(playerid), getIp(playerid));
		ShowPlayerDialog(playerid, DialogRegistro, DIALOG_STYLE_PASSWORD, "{F5F5F5}Registro", Str, "Registrar", "Sair");
	}
	else
	{
        format(Str, sizeof(Str), "{FAF0E6}Bem vindo ao NomedoSeuServer, %s.\nEndereзo IP: %s.\nO nome que vocк estб usando й cadastrado, por favor digite uma senha para acessar:\n", getName(playerid), getIp(playerid));
		ShowPlayerDialog(playerid, DialogLogin, DIALOG_STYLE_PASSWORD, "{F5F5F5}Login", Str, "Logar", "Sair");
	}
	return 1;
}

public OnPlayerConnect(playerid)
{

new arquivi[34], nomeplayer[MAX_PLAYER_NAME];
    GetPlayerName(playerid, nomeplayer, sizeof(nomeplayer));
    format(arquivi, sizeof(arquivi), "Admins/%s", nomeplayer);
    pAdmin[playerid][Level] = DOF2_GetInt(arquivi, "Level");
    PlayerDados[playerid][Admin] = 0;
	Logado{playerid} = false;
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
	if(Logado{playerid} == true) SalvarDados(playerid);
	else printf("A conta do player %s nгo pode ser salva!", getName(playerid));
 	Logado{playerid} = false;
	return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	switch(dialogid)
	{
	    case DialogRegistro:
	    {
	        if(!response) return Kick(playerid);
	        if(response)
	        {
	            if(strlen(inputtext) < 5 || strlen(inputtext) > 20)
	            {
	                format(Str, sizeof(Str), "{FAF0E6}Bem vindo ao NomedoSeuServer, %s.\nEndereзo IP: %s.\nVocк pode registrar uma conta, digitando uma senha desejada aqui:\nSua senha deve conter entre 5 e 20 Caracteres", getName(playerid), getIp(playerid));
	                return ShowPlayerDialog(playerid, DialogRegistro, DIALOG_STYLE_PASSWORD, "{F5F5F5}Registro", Str, "Registrar", "Sair");
				}
				new InfoSenha[65];
				format(InfoSenha,sizeof(InfoSenha),"Conta registrada com sucesso! Sua senha й: %s",inputtext);
				SendClientMessage(playerid,-1,InfoSenha);
				DOF2_CreateFile(PegarConta(playerid));
				DOF2_SetString(PegarConta(playerid),"Senha",inputtext);
				DOF2_SaveFile();
				SetSpawnInfo(playerid, 0, 0, 1722.5123, -1912.7931, 13.5647, 269.15, 0, 0, 0, 0, 0, 0);
	  			SpawnPlayer(playerid);
				TogglePlayerSpectating(playerid, false);
				Logado{playerid} = true;
				SendClientMessage(playerid,-1,"Registrado e Logado com sucesso!");
				GivePlayerMoney(playerid,1000);
				SetPlayerScore(playerid,1);
			}
		}
	    case DialogLogin:
	    {
	        if(!response) return Kick(playerid);
	        if(response)
	        {
	            if(!strlen(inputtext))
	            {
                    format(Str, sizeof(Str), "{FAF0E6}Bem vindo ao NomedoSeuServer, %s.\nEndereзo IP: %s.\nO nome que vocк estб usando й cadastrado, por favor digite uma senha para acessar:\n", getName(playerid), getIp(playerid));
	                return ShowPlayerDialog(playerid, DialogLogin, DIALOG_STYLE_PASSWORD, "{F5F5F5}Login", Str, "Logar", "Sair");
				}
				if(!strcmp(DOF2_GetString(PegarConta(playerid),"Senha"), inputtext))
				{
				    CarregarDados(playerid);
				    SetSpawnInfo(playerid, 0, 0, 1722.5123, -1912.7931, 13.5647, 269.15, 0, 0, 0, 0, 0, 0);
	  				SpawnPlayer(playerid);
				    TogglePlayerSpectating(playerid, false);
				    Logado{playerid} = true;
				    SendClientMessage(playerid,-1,"Logado com sucesso!");
				}
				else
				{
				    if(SenhaErrada[playerid] == 1)
				    {
				        SendClientMessage(playerid,-1,"Vocк foi kickado por errar a senha 2 vezes!");
				        Kick(playerid);
					}
					else if(SenhaErrada[playerid] < 1)
					{
					    SenhaErrada[playerid] ++;
					    format(Str, sizeof(Str), "{FAF0E6}Bem vindo ao NomedoSeuServer, %s.\nEndereзo IP: %s.\nO nome que vocк estб usando й cadastrado, por favor digite uma senha para acessar:\nSenha Incorreta", getName(playerid), getIp(playerid));
					    ShowPlayerDialog(playerid, DialogLogin, DIALOG_STYLE_PASSWORD, "{F5F5F5}Login", Str, "Logar", "Sair");
					}
				}
			}
		}
	}
	return 1;
}

CMD:tiraradmin(playerid, params[])
{
    new id, player[MAX_PLAYER_NAME], tirou[MAX_PLAYER_NAME], string[256], string2[256];
    if (pAdmin[playerid][Level] != 5) return SendClientMessage(playerid, 0xAD0000AA, "Vocк nгo estб autorizado.");
    if (sscanf(params, "u", id)) return SendClientMessage(playerid, 0xAD0000AA, "Use /tiraradmin [ID] ");
    if (pAdmin[id][Level] < 1) return SendClientMessage(playerid, VERMELHO, "Este player nгo й admin ! ");
    GetPlayerName(id, player, sizeof(player));
    GetPlayerName(playerid, tirou, sizeof(tirou));
    format(string, sizeof(string), "Vocк tirou o admin do %s", player);
    SendClientMessage(playerid, 0x00F6F6AA, string);
    format(string2, sizeof(string2), "O admin %s tirou seu admin.", tirou);
    SendClientMessage(id, VERDE, string2);
    pAdmin[playerid][Level] = 0;
    return 1;
 }

CMD:trazer(playerid, params[])
{
    if(pAdmin[playerid][Level] < 1) return SendClientMessage(playerid, VERMELHO,"Vocк nгo estб autorizado.");
    new id, Float: x, Float: y, Float: z, string[256], string2[256], namep[MAX_PLAYER_NAME], namead[MAX_PLAYER_NAME];
    if(sscanf(params, "u", id)) return SendClientMessage(playerid, VERMELHO,"Use /trazer [ID]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, VERMELHO,"Este jogador nгo estб online.");
    GetPlayerName(playerid, namead, sizeof(namead));
    GetPlayerName(id, namep, sizeof(namep));
    format(string, sizeof(string), "Trouxe o player %s atй vocк.", namep);
    format(string2, sizeof(string2), "O Administrador %s  trouxe vocк atй ele.", namead);
    SendClientMessage(playerid, Azul_C, string);
    SendClientMessage(id, VERDE, string2);
    GetPlayerPos(playerid, x, y, z);
    SetPlayerPos(id, x+1, y+1, z);
    return 1;
}



stock GetLevelAdmin(levelid)
{
    new str[50];
    if(levelid == 1)
    {
        str = "1";
    }
    else if (levelid == 2)
    {
        str = "2";
    }
    else if (levelid == 3)
    {
        str = "3";
    }
    else if (levelid == 4)
    {
        str = "4";
    }
    else if (levelid == 5)
    {
        str = "5";
    }
    return str;
}


//------------------------------------------------------------------------------
//------------------------- { - STOCKS - } -------------------------------------
stock getIp(playerid)
{
	static Ip[20]; GetPlayerIp(playerid, Ip, sizeof(Ip)); return Ip;
}
stock getName(playerid)
{
	static Nome[MAX_PLAYER_NAME]; GetPlayerName(playerid, Nome, sizeof(Nome)); return Nome;
}
stock PegarConta(playerid)
{
	static Arquivo[33]; format(Arquivo, sizeof(Arquivo), "Accs/%s.ini", getName(playerid)); return Arquivo;
}
stock SalvarDados(playerid)
{
    DOF2_SetInt(PegarConta(playerid), "Level", GetPlayerScore(playerid));
    DOF2_SetInt(PegarConta(playerid), "Dinheiro", GetPlayerMoney(playerid));
    DOF2_SetInt(PegarConta(playerid), "LevelProcurado", GetPlayerWantedLevel(playerid));
    DOF2_SetInt(PegarConta(playerid), "SkinAtual", GetPlayerSkin(playerid));
    DOF2_SetInt(PegarConta(playerid), "AdminLevel", PlayerDados[playerid][Admin]);
    DOF2_SaveFile();
}
stock CarregarDados(playerid)
{
	if(DOF2_FileExists(PegarConta(playerid)))
	{
	    SetPlayerScore(playerid, DOF2_GetInt(PegarConta(playerid), "Level"));
    	SetPlayerSkin(playerid, DOF2_GetInt(PegarConta(playerid), "SkinAtual"));
    	PlayerDados[playerid][Admin] = DOF2_GetInt(PegarConta(playerid), "AdminLevel");
	}
}

CMD:daradmin(playerid, params[])
{
    new id, level, string[256], string2[256], ganhou[MAX_PLAYER_NAME], deu[MAX_PLAYER_NAME];
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xAD0000AA, "{00E5FF}Vocк nгo estб autorizado.");
    if(sscanf(params, "ud", id, level)) return SendClientMessage(playerid, 0xAD0000AA, "Use /daradmin [ID] [LEVEL]");
    if (level < 0 || level > 5) return SendClientMessage(playerid, 0xFF0000FF, "Level invбlido. Use de 1 б 5 .");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xAD0000AA, "Este jogador nгo estб online.");
    GetPlayerName(id, ganhou, sizeof(ganhou));
    GetPlayerName(playerid, deu, sizeof(deu));
    format(string, sizeof(string), "Vocк deu admin level %s para o %s", GetLevelAdmin(level), ganhou);
    SendClientMessage(playerid, 0x00F6F6AA, string);
    format(string2, sizeof(string2), "O admin %s deu admin level %s para vocк.", deu , GetLevelAdmin(level));
    SendClientMessage(id, VERDE, string2);
    pAdmin[id][Level] =  level;
    return 1;
}







//------------------------------------------------------------------------------
#endif// TERMINA O SCRIPT
Reply


Messages In This Thread
ajuda erros na minha fs porfavor me ajudaa - by BHTMestre - 22.10.2014, 01:07
Re: ajuda erros na minha fs porfavor me ajudaa - by K1w0 - 22.10.2014, 01:47
Re: ajuda erros na minha fs porfavor me ajudaa - by BHTMestre - 22.10.2014, 01:56

Forum Jump:


Users browsing this thread: 1 Guest(s)