C:\Projeto (CLS)\pawno\include\sscanf2.inc(203) : warning 202: number of arguments does not match definition
C:\Projeto (CLS)\pawno\include\sscanf2.inc(215) : error 025: function heading differs from prototype
C:\Projeto (CLS)\pawno\include\sscanf2.inc(227) : warning 202: number of arguments does not match definition
C:\Projeto (CLS)\pawno\include\sscanf2.inc(227) : warning 202: number of arguments does not match definition
C:\Projeto (CLS)\pawno\include\sscanf2.inc(240) : error 025: function heading differs from prototype
C:\Projeto (CLS)\filterscripts\GNadmin.pwn(90) : error 017: undefined symbol "playerid"
C:\Projeto (CLS)\filterscripts\GNadmin.pwn(92) : error 017: undefined symbol "playerid"
C:\Projeto (CLS)\filterscripts\GNadmin.pwn(95) : warning 217: loose indentation
C:\Projeto (CLS)\filterscripts\GNadmin.pwn(103) : error 017: undefined symbol "playerid"
C:\Projeto (CLS)\filterscripts\GNadmin.pwn(107) : error 017: undefined symbol "playerid"
C:\Projeto (CLS)\filterscripts\GNadmin.pwn(113) : error 017: undefined symbol "playerid"
C:\Projeto (CLS)\filterscripts\GNadmin.pwn(117) : warning 217: loose indentation
C:\Projeto (CLS)\filterscripts\GNadmin.pwn(240) : error 035: argument type mismatch (argument 3)
C:\Projeto (CLS)\filterscripts\GNadmin.pwn(241) : error 035: argument type mismatch (argument 3)
C:\Projeto (CLS)\filterscripts\GNadmin.pwn(242) : error 017: undefined symbol "Azul_C"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Errors.
#define Ajudante 1
#define Moderador 2
#define Administrador 3
#define Gerente 4
#define Desenvolvedor 5
enum PlayerAdmin
{
Level
}
new pAdmin[MAX_PLAYERS][PlayerAdmin];
new Isplayeradmin
public OnPlayerDisconnect()
{
new arquiva[34], playernome[MAX_PLAYER_NAME];
GetPlayerName(playerid, playernome, sizeof(playernome));
format(arquiva, sizeof(arquiva), "Admins/%s", playernome);
if(DOF2_FileExists(arquiva))
{
DOF2_SetInt(arquiva, "Level", pAdmin[playerid][Level]);
DOF2_SaveFile();
}
else
{
DOF2_CreateFile(arquiva);
DOF2_SetInt(arquiva, "Level", pAdmin[playerid][Level]);
DOF2_SaveFile();
}
return 1;
}
CMD:promoverp(playerid, params[])
{
new id, level, string[256], string2[256], ganhou[MAX_PLAYER_NAME], deu[MAX_PLAYER_NAME];
if( !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "{FF0000}| ERRO | Vocк Nгo й Staff Do Servidor.");
if(sscanf(params, "ud", id, level)) return SendClientMessage(playerid, -1, "| INFO | Uso Correto: /promoverp [ID] [LEVEL]");
if (level < 0 || level > 5) return SendClientMessage(playerid, -1, "{FF0000}| ERRO | Level invбlido ou nгo existe, Use de 1 a 5 .");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "{EFFF00}| INFO | Este jogador nгo estб online.");
GetPlayerName(id, ganhou, sizeof(ganhou));
GetPlayerName(playerid, deu, sizeof(deu));
format(string, sizeof(string), "{EFFF00}| INFO | Vocк deu o cardo de %s para o %s", GetLevelAdmin(level), ganhou);
SendClientMessage(playerid, 0x00F6F6AA, string);
format(string2, sizeof(string2), "| STAFF | O Desenvolvedor %s deu o cargo de %s para vocк.", deu , GetLevelAdmin(level));
SendClientMessage(id, -1, string2);
pAdmin[id][Level] = level;
return 1;
}
CMD:rebaixarp(playerid, params[])
{
new id, player[MAX_PLAYER_NAME], tirou[MAX_PLAYER_NAME], string[256], string2[256];
if (pAdmin[playerid][Level] != 5) return SendClientMessage(playerid, -1, "Vocк nгo estб autorizado.");
if (sscanf(params, "u", id)) return SendClientMessage(playerid, -1, "Use /rebaixarp [ID] ");
if (pAdmin[id][Level] < 1) return SendClientMessage(playerid, -1, "Este player nгo й admin ! ");
GetPlayerName(id, player, sizeof(player));
GetPlayerName(playerid, tirou, sizeof(tirou));
format(string, sizeof(string), "Vocк tirou o cargo do %s", player);
SendClientMessage(playerid, -1, string);
format(string2, sizeof(string2), "O Desenvolvedor %s tirou vocк da staff.", tirou);
SendClientMessage(id, -1, string2);
pAdmin[playerid][Level] = 0;
return 1;
}
CMD:puxar(playerid, params[])
{
if(pAdmin[playerid][Level] < 1) return SendClientMessage(playerid, -1,"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, -1,"Use /trazer [ID]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1,"Este jogador nгo estб online.");
GetPlayerName(playerid, namead, sizeof(namead));
GetPlayerName(id, namep, sizeof(namep));
format(string, sizeof(string), -1, "Trouxe o player %s atй vocк.", namep);
format(string2, sizeof(string2), -1, "O Administrador %s trouxe vocк atй ele.", namead);
SendClientMessage(playerid, Azul_C, string);
SendClientMessage(id, -1, 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;
}
C:\Projeto (CLS)\filterscripts\GNadmin.pwn(242) : error 017: undefined symbol "Azul_C"
#define Azul_C 0x3878E0FF
faltou playerid no OnPlayerDisconnect e a , no enum
public OnPlayerDisconnect(playerid) enum PlayerAdmin { Level, }; |
C:\Projeto (CLS)\pawno\include\sscanf2.inc(227) : warning 202: number of arguments does not match definition
C:\Projeto (CLS)\pawno\include\sscanf2.inc(240) : error 025: function heading differs from prototype
C:\Projeto (CLS)\filterscripts\GNadmin.pwn(244) : error 035: argument type mismatch (argument 3)
C:\Projeto (CLS)\filterscripts\GNadmin.pwn(245) : error 035: argument type mismatch (argument 3)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
Use a minha base, ela estб boa para estudos e tambйm para ser utilizada..
Link: http://forum.sa-mp.com/showthread.ph...30#post3751930 |