08.05.2012, 21:07
Buenas amigos de SA-MP me dirijo hacia ustedes para solicitarle su ayuda por favor ya que no encuentro la solucion a este problema aqui les dejo los errores:
Aqui las lineas que me provocan error:
No se si sera el Stock ya que trato de hacer un sistema dinamico de facciones en Y_ini aqui el Stock:
Aqui el Stock de registro de usuarios:
No se si es que en vez de usar playerid devo usar groupid no se mucho de pawn pero de los errores se aprenden y trato de hacer un sistema dinamico pero no se que he echo mal.
Sera estos stock y arrays que no me anda bien?,miren aqui:
Gracias por sus ayudas amigos que dios les bendiga.
Un saludo.
pawn Код:
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(329) : error 055: start of function body without function header
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(330) : error 010: invalid function or declaration
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(331) : error 010: invalid function or declaration
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(332) : error 021: symbol already defined: "INI_String"
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(332) : error 010: invalid function or declaration
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(333) : error 021: symbol already defined: "INI_String"
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(333) : error 010: invalid function or declaration
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(334) : error 021: symbol already defined: "INI_String"
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(334) : error 010: invalid function or declaration
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(335) : error 021: symbol already defined: "INI_String"
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(335) : error 010: invalid function or declaration
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(336) : error 021: symbol already defined: "INI_String"
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(336) : error 010: invalid function or declaration
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(337) : error 021: symbol already defined: "INI_String"
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(337) : error 010: invalid function or declaration
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(338) : error 021: symbol already defined: "INI_Int"
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(338) : error 010: invalid function or declaration
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(339) : error 021: symbol already defined: "INI_Int"
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(339) : error 010: invalid function or declaration
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(340) : error 021: symbol already defined: "INI_Int"
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(340) : error 010: invalid function or declaration
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(341) : error 021: symbol already defined: "INI_Int"
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(341) : error 010: invalid function or declaration
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(342) : error 021: symbol already defined: "INI_Int"
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(342) : error 010: invalid function or declaration
C:\Users\WxXCrazyXxW\Desktop\Severs\Texas\gamemodes\TexasRP.pwn(343) : error 021: symbol already defined: "INI_Int"
pawn Код:
forward CargarDatosFacciones_Data(playerid,name[],value[]);
public CargarDatosFacciones_Data(playerid,name[],value[]);
{
INI_String("%s" Facciones[playerid][NombreFaccion]);
INI_Int("%s" Facciones[playerid][Tipo]);
INI_String("%s" Facciones[playerid][NombreRango1]);
INI_String("%s" Facciones[playerid][NombreRango2]);
INI_String("%s" Facciones[playerid][NombreRango3]);
INI_String("%s" Facciones[playerid][NombreRango4]);
INI_String("%s" Facciones[playerid][NombreRango5]);
INI_String("%s" Facciones[playerid][NombreRango6]);
INI_Int("%s" Facciones[playerid][SkinRango1]);
INI_Int("%s" Facciones[playerid][SkinRango2]);
INI_Int("%s" Facciones[playerid][SkinRango3]);
INI_Int("%s" Facciones[playerid][SkinRango4]);
INI_Int("%s" Facciones[playerid][SkinRango5]);
INI_Int("%s" Facciones[playerid][SkinRango6]);
INI_Int("%s" Facciones[playerid][Miembros]);
INI_String("%s" Facciones[playerid][LiderOficial]);
return 1;
}
pawn Код:
FaccionPath(playerid)
{
new string[128],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
format(string,sizeof(string),PATH,playername);
return string;
}
pawn Код:
stock UserPath(playerid)
{
new string[128],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
format(string,sizeof(string),PATH,playername);
return string;
}
Sera estos stock y arrays que no me anda bien?,miren aqui:
pawn Код:
new facciones;
enum InfoFacciones
{
NombreFaccion[255],
Tipo,
NombreRango1[255],
NombreRango2[255],
NombreRango3[255],
NombreRango4[255],
NombreRango5[255],
NombreRango6[255],
SkinRango1,
SkinRango2,
SkinRango3,
SkinRango4,
SkinRango5,
SkinRango6,
Miembros,
LiderOficial[255],
}
;
new Facciones[MAX_FACCIONES][InfoFacciones];
stock NombreNormal(playerid)
{
new pName[25];
GetPlayerName(playerid, pName, sizeof(pName));
return pName;
}
stock IsPlayerConnectedEx(playerid)
{
if(IsPlayerConnected(playerid))
{
if(Logueado[playerid] == 1)
{
return 1;
}
else
{
return 0;
}
}
else
{
return 0;
}
}
stock IsInvalidSkin(skin)
{
#define MAX_BAD_SKINS 14
new badSkins[MAX_BAD_SKINS] =
{
3, 4, 5, 6, 8, 42, 65, 74, 86,
119, 149, 208, 273, 289
};
for (new i = 0; i < MAX_BAD_SKINS; i++)
{
if (skin == badSkins[i] || skin < 0 || skin >= 300) return true;
}
return false;
}
Un saludo.